Editor’s note: This is the first of a two-part series on Virtual I/O Server (VIOS) care and feeding.
VIOS is a critical component of any POWER virtualized environment. Best practices dictate it be kept current and backed up. This article focuses on backups and upgrades, while part two will provide tips and tricks as well as using file-backed optical (FBO).
To ensure structures for the volume groups (VGs) and virtual definitions are backed up, run a savevgstruct and viosbr prior to backing up a VIOS. Using savevgstruct writes a backup of the structure of the named VG to the /home/ios/vgbackups directory. This is automatically called for all active non-rootvg VGs or storage pools on a VIOS when backupios is run, however, run one anyway to be safe. A sample backup script might contain:
su - padmin -c "ioscli savevgstruct datavg" su - padmin -c "ioscli savevgstruct rootclients_vg" su - padmin -c "ioscli viosbr –backup –file /tmp/viosabr.backup” Mount the NFS repository for the backups (/nfsmnt) su – padmin –c “ioscli backupios –file /nfsmnt/vio2-jun2813.mksysb -mksysb”
The viosbr command can also be used to view or restore the structures as explained further by the IBM information center.
The previous script backs up the VIOS to a bootable mksysb file. To use the backup with NIM, replace the backupios above with:
mkdir /nfsmnt/nimbkups backupios -file /nfsmnt/nimbkups
This creates a nim_resources.tar file that can be used for restores as described here.
A VIOS can be installed using NIM, however, specific steps need to be taken when setting up the VIOS NIM environment:
cat /export/mksysb/vios2.2/mksysb_image /export/mksysb/vios2.2/mksysb_image2 /export/mksysb/vios2.2/mksysb_image3 >/export/mksysb/nim_vios2.2mksysb
You can now use bos_inst to perform a mksysb install once the partition profile is defined, as explained here.
A good strategy for updates starts with updating the Hardware Management Console (HMC), then the firmware, the VIOS and the LPARs. But first, check to ensure the various combinations along the way are compatible and supported.
The following installs all the fixes in the directory listed by -dev updateios -dev /nfsmount/vios2221 -install -accept. When using system support programs, the upgrade may hang at the end with:
installp: * * * A T T E N T I O N ! ! ! Software changes processed …….. effective.
Use ctrl-C to exit this. After the upgrade is complete:
ioslevel oem_setup_env oslevel -s instfix -i | grep ML All filesets for 6100-07_AIX_ML were found. All filesets for 6.1.0.0_AIX_ML were found. Not all filesets for 6100-08_AIX_ML were found.
If some file sets aren’t found, then some didn’t go on and get updated. Typically, this will be some of the language sets or the alt disk install images. These can be found with:
# oslevel -sq Known Service Packs ------------------- 6100-08-02-1316 6100-08-01-1245 # oslevel -s -l 6100-08-02-1316 Fileset Actual Level Service Pack Level ----------------------------------------------------------------------------- bos.alt_disk_install.boot_images 6.1.8.0 6.1.8.15 bos.loc.utf.ES_ES 6.1.7.15 6.1.8.15
These can either be updated or removed to get everything consistent. To update them, copy the necessary updates of the file sets into their own directory and use updateios pointing to that directory or use–remove flag to remove the file sets if they aren’t critical. Now set the bootlist after running bosboot:
bosboot -a -d hdisk0 bosboot -a -d hdisk1 bootlist –m normal hdisk0 hdisk1
Now, it’s time to reboot. Once both VIO servers are complete—and if all is well—run another backup. To save VIO information, see Code Sample 1 and look for part two for more tips and tricks, and how to use FBO.
su - padmin -c "ioscli ioslevel"
su - padmin -c "ioscli lsdev -type disk"
su - padmin -c "ioscli lsdev -type adapter"
su - padmin -c "ioscli lsdev -vpd"
su - padmin -c "ioscli lsdev -slots"
su - padmin -c "ioscli lsmap -all"
su - padmin -c "ioscli lsmap -all -npiv"
su - padmin -c "ioscli lsdev -virtual"
su - padmin -c "ioscli lsdev -virtual"
su - padmin -c "ioscli cfgnamesrv -ls "
su - padmin -c "ioscli entstat -all ent9 "
su - padmin -c "ioscli hostmap -ls"
su - padmin -c "ioscli lsuser"
su - padmin -c "ioscli netstat -routinfo"
su - padmin -c "ioscli optimizenet -list"
su - padmin -c "ioscli viosecure -firewall view"
su - padmin -c "ioscli viosecure -view -nonint"
oslevel -s
getlvodm -C > disktmp.txt
while read label line
do
echo "Hdisk is $label"
su - padmin -c "ioscli lsdev -dev $label -attr"
done <"disktmp.txt"
Article Number: 607
Posted: Wed, Jun 5, 2019 3:12 PM
Last Updated: Wed, Jun 5, 2019 3:14 PM
Online URL: http://kb.ictbanking.net/article.php?id=607