Friday, April 9, 2010

Files to backup before rebooting an lpar/server

First and important thing to check the alt_disk is available


How To Boot From Alternate Drive.
**********************************
Cases there when Primary Boot Device on Unix server gets corrupted. This will enable the System Administrator to choose the appropriate alternate booting device and bring the server up. It will be used to bring the server up on the alternate Drive incase the primary devices is corrupted and for any other problem.

IBM:
Check for altinst_rootvg:

# lspv
hdisk0 000ffa6d6a891be2 rootvg
hdisk1 000ffa6d546b51bc altinst_rootvg
hdisk2 000ffa6da42b24f7 abcvg
hdisk3 000ffa6da42b3377 cdevg
hdisk4 000ffa6da42b365e efgvg
hdisk5 none None
Set the new boot disk.:

# bootlist -m normal

Note: hdisk# = Physical Volume from step 1 (hdisk1 in this case).
Reboot the server to bring the box up on the alternate drive.:

# shutdown -Fr
Bring server to ok prompt

Note: Normally in our enviornments we will add a alt disk script on crontab and will check if the last alt_disk is successful or not.

There is obviously a risk involved in rebooting a lpar without alt-disk successful, worst case we need to take that risk. :D

The important files we need to take backup before rebooting an lpar

df -k | tee /var/tmp/upg/df-k.out
lspath | tee /var/tmp/upg/lspath.out
powermt display | tee /var/tmp/upg/pmtdisplay.out
powermt display dev=all | tee /var/tmp/upg/pmtdisplaydev.out
powermt display paths | tee /var/tmp/upg/pmtdisplaypaths.out
/usr/lpp/EMC/Symmetrix/bin/inq.*| tee /var/tmp/upg/inq.out
lspv | tee /var/tmp/upg/lspv.out
lsvg | tee /var/tmp/upg/lsvg.out
#Save volume group info
vgs=`lsvg -o`
for vg in $vgs
do
lsvg $vg | tee /var/tmp/upg/$vg.out
lsvg -l $vg | tee -a /var/tmp/upg/$vg.out
lsvg -p $vg | tee -a /var/tmp/upg/$vg.disk.out
done
lsdev -Cc disk | tee /var/tmp/upg/lsdevdsk.out
lsdev -C | tee /var/tmp/upg/lsdev.out
cp /etc/filesystems /var/tmp/upg/filesystems.B4
netstat -rn | tee /var/tmp/upg/netstat.out
netstat -in | tee /var/tmp/upg/netstati.out
ifconfig -a | tee /var/tmp/upg/ifconfig.out
lscfg -v | tee /var/tmp/upg/lscfg.out
lsattr -El inet0 | tee /var/tmp/upg/inet0.out

No comments:

Post a Comment