AIX > Administrator > LPAR

Mapping Virtual SCSI Disk on VIO Servers


I recently received a request to increase a file system space. After a quick look at the AIX LPAR, I noticed that I needed to add more SAN disk (aka LUNs) to my AIX LPAR. The LUNs on the AIX LPAR are virtualized through the VIO servers using virtual SCSI. Let’s walk through the process of mapping a virtual SCSI disk to an AIX LPAR and I’ll include some tips.

Step 1: Request the LUNs to be mapped to the VIO servers
First, we need the LUNs to be mapped to the VIO Servers. If you’re lucky, you may be the storage administrator and can turn this around quickly. However in my case, I needed the assistance of the storage administrator to provision, zone and map the LUNs to the VIO servers.

Information that a storage administrator may require is the WWN (World Wide Name) of the Fibre Channel adapter used by the VIO servers. The WWN is used to identify which Fibre Channel adapter the new LUN will be mapped to.

Step 2: Scan and configure the LUNs on the VIO Servers
Login as padmin to both the VIO Server – you shouldn’t need to login to the unrestricted shell – and scan the LUNs provisioned by the storage administrator using the cfgdev command.

Step 3: Identify the new disk
Once the new disks has been scanned and detected, use the lspv command with the –free flag to identify the new disks.

On VIO Server 1:

$ lspv -free
NAME            PVID                                SIZE(megabytes)
hdisk30         none                                256000
hdisk31         none                                256000

On VIO Server 2:

$ lspv -free
NAME            PVID                                SIZE(megabytes)
hdisk30         none                                256000
hdisk31         none                                256000

As you can see from the command output, the two new disks on both VIO servers are hdisk30 and hdisk31. The disks are 250 gigabytes in size and they haven’t been assigned with a Physical Volume Identifier (PVID).

For more on the lspv –free command, refer to my article “Identifying Free Disk on VIO Servers.”

Adrian Mahendrata is an AIX, PowerVM and PowerHA specialist in Melbourne, Australia.



Like what you just read? To receive technical tips and articles directly in your inbox twice per month, sign up for the EXTRA e-newsletter here.


comments powered by Disqus

Advertisement

Advertisement

2019 Solutions Edition

A Comprehensive Online Buyer's Guide to Solutions, Services and Education.

IBM Systems Magazine Subscribe Box Read Now Link Subscribe Now Link iPad App Google Play Store
IBMi News Sign Up Today! Past News Letters