POWER7 information

Enabling the logical unit backed storage

You can enable the logical unit backed storage by using the Virtual I/O Server (VIOS) command-line interface.

To display the virtual physical volumes that the logical units represent in the client environments and enable the logical unit backed storage, complete the following steps:

  1. Log in to the client as root user.
  2. Enter the following commands in the Korn shell:
    cfgmgr
    lspv
    lsdev -c adapter -F 'name physloc'
    lsdev -t vdisk  -F 'name physloc' 
    The cfgmgr command reassembles device configuration information and picks up the new mapping for the virtual Small Computer Serial Interface (SCSI) adapter. The lspv and lsdev commands on the client, and the lsdev command on the VIOS can be used to verify the association of the hdiskX physical volume and the vscsiX virtual SCSI adapter to the vhostY virtual server adapter on the VIOS partition (where, X and Y are appropriate instance numbers). After the vscsiX to hdiskX mapping is verified, the normal volume group, file system management, and I/O can proceed on the client partitions, as if the hdiskX physical volume is another direct connection SCSI device. Other than establishing the client virtual physical volume association with a VIOS path, no further action is required on the client. Hence, you can exit the client shell.
    These steps are unique to the AIX® client. The Linux operating system also supports adding new storage devices dynamically. Run the following commands:
    ls -vscsi
    lsscsi
    echo "- - -" > /sys/class/scsi_host/hostX/scan
    lsscsi
    cat /sys/class/scsi_host/hostX/partition_name
    The ls -vscsi command displays all virtual SCSI host adapters. The partition_name attribute displays the connected VIOS partition. Replace hostX with the host number to which storage has been added. The lsscsi command displays all attached SCSI disks.
    Note: When new data is written to the hdiskX physical volume, the VIOS logical partition monitors for overruns of threshold limits. A shell connection to each of the logical partitions must be maintained to observe threshold alerts in the VIOS error log. Alerts can also be captured by using management tools. The threshold limit can be changed to avoid or delay the alerts.


Send feedback Rate this page

Last updated: Thu, April 05, 2018