2012.12.20
1. 查看一个文件属于哪个rpm (CentOS 6.2)
#rpm -qf /usr/bin/ssh //这里要使用绝对路径
openssh-clients-3.9p1-8.RHEL4.24
2. 查看哪些进程占用的CPU高(Solaris 10)
#prstat -avm
3. mount CIFS in Linux (CentOS 6.2)
#yum install cifs-utils
#mount -t cifs -o username=XXX@XX.com.cn,password=XXX //192.168.1.1/common /mnt
关于cifs-utils, (原来是samba中的一部分。)
http://pserver.samba.org/samba/ftp/cifs-cvs/linux-cifs-client-guide.pdf
选项中的用户,密码,domain可以放到一个文件中来避免直接在/etc/fstab中写入密码。
使用 -o ro,credentials=/etc/cifsauth 。然后在/etc/cifsauth中
username=XX@XX.com.cn
password=XX
在password这行的最后,不能出现回车。如出现,也将视为password的一部分。目前我还没有找到加密这个文件中密码的方法。把这个文件权限改到400,也算是提高了一点点安全性吧。
4. NAS vs SAN
NAS uses file-based protocols such as NFS (popular on UNIX systems), SMB/CIFS (Server Message Block/Common Internet File System) (used with MS Windows systems), AFP (used with Apple Macintosh computers), or NCP (used with OES and Novell NetWare). NAS units rarely limit clients to a single protocol.
NAS provides both storage and a file system. This is often contrasted with SAN (Storage Area Network), which provides only block-based storage and leaves file system concerns on the "client" side. SAN protocols include SCSI, Fibre Channel, iSCSI, ATA over Ethernet (AoE), or HyperSCSI.
From: http://en.wikipedia.org/wiki/Network-attached_storage#NAS_vs._SAN
5. SCAN in 11gR2 Oracle RAC.
http://www.mydbspace.com/?p=324
Client Request -> SCAN Listener -> Node Listener ( with Virtual IP ) -> Instances.
Benefit: Don't need to change Client side configuration when add or remove node in cluster.