How to Maintain a Virtual I/O Server With FBO Part II

How to Maintain a Virtual I/O Server With FBO



Editor’s Note: This is the second of a two-part series on Virtual I/O Server (VIOS) care and feeding.

Part one discussed how to perform backups of the VIOS and update it. This installment offers a few tips and tricks that can help maintain a VIOS, including how to take advantage of file backed optical (FBO).

Useful Commands and Tips

In production, a best practice is to run dual VIO servers. This allows for maximum redundancy for networking and storage while still having the flexibility to perform upgrades without an outage. Dual VIO servers allow the use of Link Aggregation Control Protocol (LACP) or other aggregation on the shared Ethernet adapter (SEA) without network interface backup (NIB). As long as each VIOS is connected to a separate network switch, full redundancy is provided with SEA failover. And the full bandwidth of the network adapters on the primary VIOS is now available for use.

SEA failover performance can be improved by setting portfast trunk on the switch ports and by activating dead gateway detection with a ping time of two seconds. (To learn more, see the PowerVM User Group session 5 on PowerVM Best Practices.)

SEA failover performance can be improved by setting portfast trunk on the switch ports and by activating dead gateway detection with a ping time of two seconds. (To learn more, see the PowerVM User Group session 5 on PowerVM Best Practices.)

When configuring the fibre channel (FC) adapters, num_cmd_elems and max_xfer_size might have to be tuned for each. For N-Port ID Virtualization (NPIV), the VIOS must be set to at least as high a value as any client LPARs. Keep in mind that the padmin account is able to gain root privileges, so ensure that the password is well protected. With root privileges the user has access to anything root can see. There’s no need to become root to run the topas utility—simply type in topas_nmon –f or topas_nmon -? (the -? provides a list of options).

If asked to gather data for IBM, it will be necessary to set a debug mode to gather the data. The steps involved in capturing debug output from padmin for IBM are described here.

As padmin, it’s possible to get a command history (using the fc -l command) as well as the contents of the global command log (lsgcl) so the actions taken can be reviewed.

$ fc -l
725     lsrep
726     backupios -file /usr/local/backups/b750viobkp
727     exit
728     lsmap -vadapter vhost0
729     fc –l

$ lsgcl | grep "Aug  9 2013"
Aug  9 2013, 08:25:35 root     ioslevel 
Aug  9 2013, 08:59:22 padmin   license  -swma
Aug  9 2013, 09:00:29 padmin   lsmap  -vadapter vhost0
Aug  9 2013, 09:01:29 padmin   lsgcl 

For advice on a VIOS configuration, consider running the VIOS Advisor, which is now part of the latest VIOS but can also be downloaded here.

Finally, there’s an undocumented way to redirect output when running commands on a VIOS as padmin. The trick is to use tee:

lsmap –all –npiv  | tee npivdata.txt


FBO is a great way to provide DVD access to LPARs without having to move the CD around. My VIOS normally boots from internal disk with two disks mirrored to each other in rootvg. I add a third disk and put it into its own volume group (VG), which I use as a repository. Whenever I get DVDs with software, I rip them to an ISO image that is then uploaded to the repository. Additionally, a mksysb image can be loaded and an LPAR can be booted from it.

So using hdisk2 as my third disk I create a VG:

mkvg –y datavg hdisk2
mkrep –sp datavg –size 10G

This can be increased later and creates:

/dev/VMLibrary     10.00      5.85   42%        7     1% /var/vio/VMLibrary

We can now load images into the repository from an ISO we have on NFS:

mkvopt -name rhelboot64  -file /usr/local/nfsmnt/rhel-64bit-basedvd.iso

This takes the ISO and copies it as follows:

$ ls -l /var/vio/VMLibrary
-rw-------    1 root     staff     237981696 Jul 25 13:14 rhelboot64

To list the repository:

$ lsrep
Size(mb) Free(mb) Parent Pool         Parent Size      Parent Free
   10199     5989 datavg                   279552           157696
Name                                                  File Size Optical         Access 
rhelboot64                                                  227 None            rw     

In order to use the repository, the virtual host has to be assigned a virtual SCSI FBO adapter; do so with:

mkvdev -fbo -vadapter vhost0
vtopt0 available

Multiple vtopt devices for a client can be created, if desired:

loadopt -vtd vtopt0 -disk rhelboot64 

This example would mount rhelboot64 as if it were a local CD. To unmount it, use:

unloadopt -vtd vtopt0

Also, rmvopt removes an image; rmrep removes a repository; and lsvopt lists the state of the vtopts:

$ lsvopt
VTD             Media                                                 Size(mb)
vtopt0          No Media                                                   n/a

Consistency and Discipline

Maintaining a VIOS isn’t a difficult job. It just requires some consistency and a disciplined approach. The use of dual VIO servers makes maintenance far simpler because it allows for updating one VIOS at a time without taking an outage. A well-maintained VIOS will make a huge difference to the stability and success of the virtualized environment it supports. These tips should help ensure the VIOS is well maintained.

0 (0)
Article Rating (No Votes)
Rate this article
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX, Monitoring, Networking, Red Hat, Security, System Admin↑ Determining type of system remotely
Viewed 2038 times since Fri, Apr 19, 2019
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 3965 times since Wed, Jun 19, 2019
AIX, Networking Etherchannel failover testing
Viewed 2357 times since Fri, Apr 19, 2019
Firmware Assisted Dump sysdump
Viewed 1794 times since Mon, Jul 16, 2018
Tunneling With SSH to Your Destination
Viewed 3939 times since Wed, May 30, 2018
List of 10 Must Know Oracle Database Parameters for Database Administrator
Viewed 115693 times since Thu, Jun 21, 2018
Migrating AIX User Environments
Viewed 2036 times since Wed, May 30, 2018
Script HW/SW AIX
Viewed 8816 times since Mon, Jun 4, 2018
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 4680 times since Thu, Nov 29, 2018
Mount CD/DVD & ISO image in AIX 6.1
Viewed 3805 times since Tue, Jul 17, 2018