hot swap a SCSI hd
# echo “scsi remove-single-device 0 0 1 0″ > /proc/scsi/scsi // 删除硬盘
Add comment January 5, 2008
bonding
DEVICE=bond0 <= change DEVICE=bond0
BOOTPROTO=static
IPADDR=172.31.0.13
NETMASK=255.255.252.0
BROADCAST=172.31.3.254
ONBOOT=yes
TYPE=Ethernet
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
# cat ifcfg-eth1
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
options bond0 miimon=100 mode=1 <==mode 1 fault tolerance , mode 0 = load balancing
route add -net 172.31.3.254 netmask 255.255.255.0 bond0
Add comment January 5, 2008
ntp
restrict default noquery notrust nomodify notrap
# fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
restrict 127.0.0.1
server stdtime.gov.hk prefer
restrict stdtime.gov.hk noquery
restrict asia.pool.ntp.org noquery
server ntp.obspm.fr
restrict ntp.obspm.fr noquery
server ntp.metas.ch
restrict ntp.metas.ch noquery
# server tick.ucla.edu
# restrict tick.ucla.edu noquery nomodify
# restrict ntp.cuhk.edu.hk noquery nomodify
# server tick.usno.navy.mil
# restrict tick.usno.navy.mil noquery nomodify
# server time-b.nist.gov
# restrict time-b.nist.gov noquery nomodify
# requestkey 15
# controlkey 15
# trustedkey 3 4 5 6 14
logfile /var/log/ntp
statsdir /var/log/ntpstats
Add comment January 5, 2008
basic lesson
Add comment January 5, 2008
sendmail and mailx
Add comment January 5, 2008
veritas volume manager – add/remove disk
vxdiskadm
vxdb rmdisk dbdg09
format
“select the disk number”
type
format
save
quit
Add comment January 5, 2008
ifconfig aliases
add addition ip on the same netcard
# ifconfig hme0:1 202.6.192.27 netmask 255.255.255.0 up
Add comment January 5, 2008
how to start nfs service
nfs server side
eg. /nfs-server
#/sbin/rc2.d/K35nfs start <– start service
#mountd
#nfsd -t 8 -u 8 <– start nfs port
#rpcinfo -p <– show the shared port
#showmount -e <– show export list
client side
#mount -t nfs <server-ip>:/nfs-server /mnt/nfs-server
PS. portmap is required to start
Add comment January 5, 2008