subscribe iconSubscribe to this information
POWER7 information

Configuring the VIOS for client storage

You can configure the Virtual I/O Server (VIOS) partition for client storage by using the VIOS command line.

To configure the VIOS partition and map the disks to the target client partition, complete the following steps:

  1. On the VIOS command line type the following command to list the SCSI protocol devices of the Fibre Channel adapter that are configured on the VIOS partition:
    lsdev | grep fscsi
    Output similar to the following is displayed:
    fscsi0 Available FC SCSI I/O Controller Protocol Device
    fscsi1 Available FC SCSI I/O Controller Protocol Device
    where, fscsi0 and fscsi1 are the Small Computer Serial Interface (SCSI) protocol devices of the Fibre Channel adapter that are configured on the first VIOS partition.
  2. To enable dynamic tracking and fast failover, update the attributes of the SCSI protocol device by entering the following commands:
    chdev -dev fscsi0 -attr dyntrk=yes fc_err_recov=fast_fail
    chdev -dev fscsi1 -attr dyntrk=yes fc_err_recov=fast_fail
    Note: If the SCSI protocol device of the Fibre Channel adapter is busy, append the -perm flag to the command, as shown in the following example. The attributes are not applied to the device until the VIOS partition is rebooted.
    chdev -dev fscsi0 -attr dyntrk=yes fc_err_recov=fast_fail -perm
  3. Configure the disks on the VIOS by typing cfgdev.
  4. List the disks on the VIOS partition and show the disk type:
    lsdev -type disk
    Output similar to the following is displayed:
    Name   Status    Description
    hdisk0 Available SAS Disk Drive
    hdisk1 Available SAS Disk Drive
    hdisk2 Available MPIO DS4800 Disk
    hdisk3 Available MPIO DS4800 Disk
    hdisk4 Available MPIO DS4800 Disk
    hdisk5 Available MPIO DS4800 Disk
    hdisk6 Available MPIO DS4800 Disk
    hdisk7 Available MPIO DS4800 Disk
  5. Confirm the logical unit number (LUN) ID in the storage area network (SAN) on the VIOS partition for each disk by entering the following command:
    lsdev -dev hdiskX -attr | grep -i -E "reserve|unique_id"
    Output similar to the following is displayed:
    reserve_policy single_path Reserve Policy True
    unique_id 3E213600A0B8000114632000092784EC50F0B0F1815 FAStT03IBMfcp Unique
    device identifier False
  6. For users with EMC disks and disks that use local Multipath I/O (MPIO), deactivate the SCSI reserve lock on the disk by entering the following command:
    chdev -dev hdisk6 -attr reserve_policy=no_policy
  7. Determine the virtual adapter name of the virtual SCSI adapter:
    lsdev -vpd | grep "Virtual SCSI"
    Output similar to the following is displayed:
    vhost0 U8233.E8B.061AB2P-V1-C101 Virtual SCSI Server Adapter
  8. Map the hdisk6 disk to the CLIENT1 client partition:
    mkvdev -vdev hdisk6 -vadapter vhost0
    Output similar to the following is displayed:
    vtscsi0 Available
  9. List the devices that are mapped to the vhost0 virtual SCSI adapter:
    lsmap -vadapter vhost0
    Output similar to the following is displayed:
    SVSA            Physloc                                      Client Partition ID
    --------------- -------------------------------------------- ------------------
    vhost0          U8233.E8B.061AB2P-V1-C101 0x0000000a
    
    VTD                   vtscsi0
    Status                Available
    LUN                   0x8100000000000000
    Backing device        hdisk6
    Physloc               U5802.001.0087356-P1-C2-T1-W202200A0B811A662-L5000000000000
    Mirrored              false
  10. Configure the second VIOS partition. See Configuring the VIOS for a client network for instructions.


Send feedback Rate this page

Last updated: Wed, October 08, 2014