Pages

Friday, January 18, 2013

How to upgrade AIX using alt_disk and patches.

How to upgrade AIX using alt_disk and patches.

0. Clean and make an extra disk.
# alt_disk_install -X      
# alt_disk_install -BCV -e /etc/exclude.rootvg  (hdiskx)

1. wake up alt_rootvg
# alt_rootvg_op -W -d (hdiskx)

2. Confirm installed ifixes
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -l
# e.g.
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV07730s03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV09922s03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV12612s03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV12629m03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV13803m03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV13873s03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV13891s03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV16603m03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV17536s03
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV19158
INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -r -L IV20864s03

3. Commit Current applied Fileset
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/installp -s
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/installp -cpgX all
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/installp -cgX all
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/installp -s
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lppchk -v

4. Install AIX SP
# alt_rootvg_op -C -b update_all -I pa -l (patch directory) -V
# alt_rootvg_op -C -b update_all -I agXY -l (patch directory) -V
# INUCLIENTS=1 chroot /alt_inst /usr/bin/oslevel -s
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lppchk -v
 

4.1 Remove Unnecessary fileset.
#INUCLIENTS=1 chroot /alt_inst /usr/bin/oslevel -rl 6100-08
#INUCLIENTS=1 chroot /alt_inst /usr/sbin/installp -u devices.msg.en_US.chrp.IBM.HPS.rte
#INUCLIENTS=1 chroot /alt_inst /usr/sbin/installp -u devices.msg.en_US.chrp.IBM.HPS.hpsfu
#INUCLIENTS=1 chroot /alt_inst /usr/bin/oslevel -rl 6100-08

# INUCLIENTS=1 chroot /alt_inst /usr/bin/oslevel -s

5. Install PowerHA SP
# alt_rootvg_op -C -b update_all -I pa -l (patch directory) -V
# alt_rootvg_op -C -b update_all -I agXY -l (patch directory) -V
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lslpp -l cluster.*
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lppchk -v


6. Add vmo parameter "numperm_global" into /etc/tunables/nextboot file
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/vmo -FL numperm_global
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/vmo -p -o numperm_global=0
# INUCLIENTS=1 chroot /alt_inst /usr/bin/cat /etc/tunables/nextboot

7. Remove xmdaily from inittab.
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/lsitab xmdaily
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/rmitab xmdaily
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/lsitab xmdaily

8. Check applied Patch and Updated SW
# INUCLIENTS=1 chroot /alt_inst /usr/bin/oslevel -s
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lppchk -v
# INUCLIENTS=1 chroot /alt_inst /usr/sbin/emgr -l
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lslpp -l | grep -i cluster
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lslpp -l rsct.core.hostrm
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lslpp -l rsct.core.fsrm
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lslpp -l rsct.core.errm
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lslpp -l rsct.basic.rte
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lslpp -l rsct.core.utils
# INUCLIENTS=1 chroot /alt_inst /usr/bin/lslpp -l rsct.core.rmc

9. Sleep altinst_rootvg; Create a bootimage
# alt_rootvg_op -S -t
# lspv | grep root ; only the rootvg is active.
# ps -ef | grep -i alt _ ; no /alt file system mounted.

10. Check & Change a bootlist
# bootlist -m normal -o
# bootlist -m normal hdiskY hdiskZ
# shutdown -Fr

EOF

No comments:

Post a Comment