Product data

Chapter 2. Core procedures 25
The first lsmap command in the following command output shows us that
vhost6 is mapped to server slot C17 (as previously defined on the HMC) and
currently has no virtual target device mapped to it. Noting the slot number is a
good way to verify that you have selected the correct server adapter before
proceeding. For the purpose of this example, the physical hdisk6 is the disk
that the client partition should eventually use. To achieve this, run the mkvdev
command, as shown below, to map hdisk6 to the client partition. The second
lsmap command shows us that vhost6 now has hdisk6 as its backing device.
$ lsmap -vadapter vhost6
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost6 U8204.E8A.10FE411-V2-C17 0x00000000
VTD NO VIRTUAL TARGET DEVICE FOUND
$ mkvdev -vdev hdisk6 -vadapter vhost6
vtscsi2 Available
$
$ lsmap -vadapter vhost6
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost6 U8204.E8A.10FE411-V2-C17 0x00000004
VTD vtscsi2
Status Available
LUN 0x8100000000000000
Backing device hdisk6
Physloc U78A0.001.DNWGCV7-P1-C4-T1-W201300A0B811A662-L0
On the client partition
6. Once activated, the client partition will now have available to it a virtual boot
disk. (Note that in certain situations, a SCSI reserve will prevent the
destination client partition from using the migrated disk. In this case, the SCSI
reserve must be released before attempting to use the SCSI device on the
destination client partition.) Once the partition has booted up, the lscfg
command may be used if required for final validation as in the command
output below.
# lscfg -vl hdisk1
hdisk1 U8204.E8A.10FE401-V2-C9-T1-L8100000000000000 Virtual
SCSI Disk Drive
#
In the previous output, C9 is our client slot number and 8100000000000000
matches the value of the LUN field in the lsmap command performed on the
Virtual I/O Server. This serves as additional confirmation that the mapping of
physical disk to virtual disk on the client was successful.