Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Tuesday, 29 October 2013

VIO upgradation activity

VIO Upgrade commands:

On the VIOS: Save the output of
            pcmpath query adapter |tee pcmpath_query_adapter..preUpg

            lsmap -all |tee lsmap..preUpg
            lspv  |tee lspv..preUpg
                       
            unmirrorios hdisk1  -> break the mirror first (coz on VIOS hdisk0 and hdisk1 are mirrored)
            reducevg rootvg hdisk1 -> remove the hdisk1 from rootvg
           
            alt_root_vg -target hdisk1  -> Now create the alternate rootvg on hdisk1, so if migration fails, we
                                                         will be able to boot from the hdisk1 with old VIOS version 1.5.
           
            bootlist -mode normal hdisk0  -> Now change the boot list / boot sequence
            bootlist -mode service hdisk0 ->  Change the service mode to hdisk0
           
            Now Check the boot sequence or boot list:
            Bootlist –mode normal


            On the Client LPARs:
                        check the Paths, make sure no paths are Failed, Disabled or Missing
                                    lspath | sort -n -t2
                                   
                        If any paths are not enabled then enable them and recheck the path status
                                    lspath -s failed | awk '{print "chpath -l "$2" -s enabled"}' |sh
                       
                        Check for any eFixes
                                    emgr -l
                       
                        Reject any eFixes
                                    emgr -e -L
                       
                        Set the disk priority and Health Check Interval
mount -o soft 162.53.40.26:/export/tools  /mnt;  /mnt/vioc_disk_path_setting.ksh; umount  /mnt
                                   
            On the VIOS:
                        Check for Active SEA adapters:
                                    netstat -v | grep Active
                                   
                        Put all SEA adapters to standby state
                                    chdev -dev -attr ha_mode=standby
                                   
                        Check the status of the SEA adapters to make sure they are in standby mode
                                    netstat -v | grep Active
           
On the Client Lpars:
            Set the path to the VIOS to defined state:
                        rmdev -l vscsi# -R  -> if we are upgrading vios2 first then look at the SCSI this is serving
                                                         the client Lpars, in our case Clients are using VSCSI0  through
                                                                   VIOS1 and VSCSI1 through the VIOS2, so go to all the lpars and set
                                                         the path to define state with the above command or use script to
                                                        do so.
                                   
            <Follow the SDDPCM upgrade document>
           
            After the upgrade of the VIOS, patch the VIOS to the required fix pack and reboot
                        mount  162.53.103.108:/nim/vios  /mnt
                        updateios -commit
                        updateios -accept -install -dev /mnt/viosfp21  -> it will install the Fix Pack 21 on the VIOS
           
            After reboot of the VIOS, check the following:
                        lppchk -vm3
                        ioslevel
                        errpt
                        instfix -i | grep ML                  
                        /etc/ssh/sshd_config     Comment out “Address Family inet6 and restart ssh”
                        vi .profile   -> get the last lines from the vios1 and edit vios2 with that
                        pcmpath query adapter
                        lsmap -all | grep Status            
                       
            Once everything is confirmed to be working ok, proceed to mirror the rootvg:
           
                        Remove the altinst_rootvg
                                    alt_disk_install -X
           
                        Extendvg rootvg to hdisk1
                                    extendvg -f rootvg hdisk1
                                   
                        Mirror the rootvg
                                    mirrorios hdisk1
                                   
                        IMP:    After mirroring is complete, reboot the VIOS
                       
            After VIOS is rebooted:
                        Put the SEA to auto mode
                                    chdev -dev -attr ha_mode=auto
                                   
            On the client LPARs
                        Run cfgmgr to renable the path to the disks
                       
                        Run the lspath command and make sure that all the paths are enabled

No comments:

Post a Comment