On this tutorial we will see how to map a vSCSI assigned to VIO Client to the physical disk on the VIO with example. In the following example HMC name is HMC1, VIO server name is VIOS01 , Client Partition name is webmanual01 and we are going to determine the mapping of virtual scsi disk, hdisk2 present in Client partition webmanual01
Task 1: On the VIO client webmanual01 run the following command to see the location of hdisk2
# lscfg -vl hdisk1 hdisk1 U9117.55A.10B22AG-V3-C12-T1-L810000000000 Virtual SCSI Disk Drive |
On the above output V3 is the LPAR ID means 3 , C12 is the slot and 12 is the slot number, and L21 is the LUN ID. Keep a note of it.
Task 2: Determine the client SCSI adapter name on webmanual01 using location of hdisk2 that is V3-C12-T1
# lscfg -v|grep V3-C12-T1 vscsi2 U9117.55A.10B22AG-V3-C12-T1 Virtual SCSI Client Adapter Device Specific.(YL)…….. U9117.55A.10B22AG-V3-C12-T1 hdisk1 U9117.55A.10B22AG-V3-C12-T1-L810000000000 Virtual SCSI Disk Drive |
Here from the above output we can see vscsi2 is the client SCSI adapter.
Task 3: On the HMC, the managed system name 911755APROD has the VIOS01 server . Run the following command to obtain the LPAR name associated with the LPAR ID
# lshwres -r virtualio –rsubtype scsi -m 911755APROD –level lpar … lpar_name=webmanual01,lpar_id=3,slot_num=12 state=1,is_required=0,adapter_type=client,remote_lpar_id=10,remote_lpar_name=VIOS01, remote_slot_num=20 ,backing_devices=none … |
Take note of the remote_lpar_id =10 and the remote_slot_num =20. In the same output, locate the line that corresponds to “lpar_id 10, slot # 20
lpar_name=VIOS01,strong>lpar_id=10,strong>slot_num=20,state=1,is_required=0,adapter_type=server,remote_lpar_id=any,remote_lpar_name=,remote_slot_num=any,backing_devices=none … |
So in our example VIO server VIOS01 is serving virtual scsi disk hdisk2 to VIO client webmanual.
Task 4: On the VIO Server VIOS01 , login as padmin, run the following command to display the mapping, which should match the mapping obtained from the HMC obtained above.
$ lsmap -all|grep V10-C20 |
where V10 is the VIO server lpar_id and C20 is the slot #
The cmd will return something similar to
vhost10 U9117.55A.10B22AG-V3-C12 0×00000003 |
Here vhost10 is the server SCSI adapter mapped to our VIO client lpar id 3 (0×00000003).
Task 5 : List the mapping for the vhost10 obtained previously.
$ lsmap -vadapter vhost10 SVSA Physloc Client Partition ID————— ——————————————– —————— vhost10 U9117.55A.10B22AG-V3-C12 0×00000003 VTD webmanaul01_vdisk20 LUN 0×8100000000000000 Backing device hdisk20 Physloc |
Please observe the LUN number 8100000000000000 .In the above example the backing device mapped to virtual scsi disk, hdisk20, is whole disk hdisk20 and it is associated with Virtual Target Device, webmanaul01_vdisk20.
The post How to map the virtual SCSI disk on the VIO client partition to the physical disk on the VIO server appeared first on web-manual.net.