How to Backup and Upgrade a Virtual I/O Server
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).
Backing up the VIOS
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:
backupios -file /nfsmnt/nimbkups
This creates a nim_resources.tar file that can be used for restores as described here.
Integrating VIOS Installs With NIM
A VIOS can be installed using NIM, however, specific steps need to be taken when setting up the VIOS NIM environment:
- Add the VIOS partition as a NIM client.
- Copy the VIOS mksysb image from the CD to your NIM master.
- VIOS 2.2 media now contain three images—the third is on DVD 2—so copy all three images individually to a directory and then use cat to combine them:
- Now, define the mksysb resource to NIM master.
- Define the SPOT on NIM master with the source being the combined mksysb file. (The SPOT cannot be created from an lpp_source.)
- Copy the bosinst.data from the DVD and create a viosbosinst resource.
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.
- Download the updates and cross-check compatibility by using FLRT.
- Read the VIOS upgrade README file. This is critical and will prevent many problems as it includes the steps required prior to installation.
- Check that there are no problems currently with stale physical partitions (PPs), missing disks, etc.
- Ensure all paths are redundant so when the VIOS is rebooted the LPARs stay up.
- Use HMC Scanner or mksysplan to document the environment:
- lsvg rootvg checks for stale PPs and physical volumes.
- lsvg -pv rootvg looks for missing disks.
- lspath checks for missing paths.
- netstat –cdlistats determines if link status is up on all used interfaces.
- errpt checks for errors.
- Run the savescript (A) and before backing up the VIOS.
- Mount the NFS mountpoint or use the DVD and assign to the VIOS:
- Use updateios –commit to commit any uncommitted updates.
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:
instfix -i | grep ML
All filesets for 6100-07_AIX_ML were found.
All filesets for 188.8.131.52_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
# oslevel -s -l 6100-08-02-1316
Fileset Actual Level Service Pack Level
bos.alt_disk_install.boot_images 184.108.40.206 220.127.116.11
bos.loc.utf.ES_ES 18.104.22.168 22.214.171.124
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
Reboot and Backup
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.
comments powered by