Adding new hdisks to a VIOS

I have a customer where they have an AIX 7.1 environment served by a NetApp providing storage. We use these hdisks as backing devices (disks) to serve LPARs we provision for their private cloud.

The configuration is fairly typical, the NetApp exposes storage via iSCSI LUNs to the VIOS.

The Virtual I/O Server is a software appliance that enables the sharing of physical resources among multiple logical partitions (LPARs). These physical resources are typically network and disk.

So once the LUNs have been created on the NetApp head (iSCSI target) and mapped to the VIOS (iSCSI initiator), we can do a hardware discovery to bring them in.

Log in to the VIOS as padmin

# ssh -l padmin VIOS_HOSTNAME

Switch to the root shell

$ oem_setup_env

Check to see how many hdisks are available

# lsdev | grep hdisk
 hdisk0 Available 00-08-00 SAS Disk Drive
 hdisk1 Available 00-08-00 SAS Disk Drive
 hdisk2 Available MPIO NetApp iSCSI Disk
 hdisk3 Available MPIO NetApp iSCSI Disk
 hdisk4 Available MPIO NetApp iSCSI Disk
 hdisk5 Available MPIO NetApp iSCSI Disk
 hdisk6 Available MPIO NetApp iSCSI Disk
 hdisk7 Available MPIO NetApp iSCSI Disk
 hdisk8 Available MPIO NetApp iSCSI Disk

Run the discovery

cfgmgr

Check to see if the new hdisks are now visible

# lsdev | grep hdisk
 hdisk0 Available 00-08-00 SAS Disk Drive
 hdisk1 Available 00-08-00 SAS Disk Drive
 hdisk2 Available MPIO NetApp iSCSI Disk
 hdisk3 Available MPIO NetApp iSCSI Disk
 hdisk4 Available MPIO NetApp iSCSI Disk
 hdisk5 Available MPIO NetApp iSCSI Disk
 hdisk6 Available MPIO NetApp iSCSI Disk
 hdisk7 Available MPIO NetApp iSCSI Disk
 hdisk8 Available MPIO NetApp iSCSI Disk
 hdisk9 Available MPIO NetApp iSCSI Disk
 hdisk10 Available MPIO NetApp iSCSI Disk
 hdisk11 Available MPIO NetApp iSCSI Disk
 hdisk12 Available MPIO NetApp iSCSI Disk
 hdisk13 Available MPIO NetApp iSCSI Disk

And that’s it.

Pretty easy to add hdisks on AIX once you know how.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: