2010年4月28日

Increasing the number of open file descriptors – LINUX

Increasing the number of open file descriptors – LINUX, take 131072 as example.

1, increase this to 131072 for all users


vi /etc/security/limits.conf



* soft nofile 131072



* hard nofile 131072



2, ulimit –n 131072



3, You may have to modify ssh and login in pam.d. Because if not, you open a session using ssh, it will not take effect.



vi /etc/pam.d/sshd



Add



session required /lib/security/pam_limits.so



vi /etc/pam.d/login



Add



session required /lib/security/pam_limits.so



4, service sshd restart


Full Text

2010年4月21日

Replacing a failed drive in a Sun Server

Per our friend George Pagan we should be using the following procedure to replace failed/failing disks in Sun Servers:

Replacing failed sun disk

sudo vxdiskadm

Option 4 to remove the disk

Then from the OS

sudo cfgadm -f -y -c unconfigure controller::dsk/target

For example if c1t0d0 is the disk to be removed:

sudo cfgadm -f -y -c unconfigure c1::dsk/c1t0d0

This will turn on either an amber light on older machines or a blue light

on newer machines. Then it is safe to remove the drive.

After you insert the drive you run, for example:

sudo cfgadm -c configure c1::dsk/c1t0d0

Then do

devfsadm

vxdctl enable

And then option 5 in vxdiskadm to replace the disk.


Full Text

2010年4月16日

ERROR: V-3-21268: /dev/vx/dsk/dgD280silo1/orgvol is corrupted. needs checking

 

Sometime when you migrate from primary to secondary, the volume might be corrupted, just use fsck to fix it:

 

fsck -F vxfs /dev/vx/rdsk/dgD280silo1/orgvol
log replay in progress
replay complete - marking super-block as CLEAN
# mount -F vxfs /dev/vx/dsk/dgD280silo1/orgvol /orgvol


Full Text