| Advertise on warmetal.nl! Click for more information about advertising here. |
Did you find this website useful? Did I save you a lot of time? |
|
So to clearify, if you look to the overview below the step taken here is the mapping from the virtual SCSI server adapter to the physical storage:
$ oem_setup_env #
Notice that the prompt has changed into #, the standard prompt for root. You only have to do this when necessary, for example, you want to do something in smitty.
$ lspv NAME PVID VG STATUS hdisk0 000bf7e12866eaf1 rootvg active hdisk1 000bf7e1288405d5 None
$ mkvdev -vdev hdisk1 -vadapter vhost0 vtscsi0 Available
In case you don't want to map the entire disk you'll first have to create logical volumes. After you've done so you can map the logical volume to the virtual server adapter.
$ lsmap -all SVSA Physloc Client Partition ID --------------- -------------------------------------------- ------------------ vhost0 U8204.E8A.65BF7E1-V3-C12 0x00000017 VTD vtscsi0 Status Available LUN 0x8100000000000000 Backing device hdisk1 Physloc U7311.D20.650442C-P1-C04-T2-L9-L0 SVSA Physloc Client Partition ID --------------- -------------------------------------------- ------------------ vhost1 U8204.E8A.65BF7E1-V3-C13 0x00000000 VTD NO VIRTUAL TARGET DEVICE FOUND SVSA Physloc Client Partition ID --------------- -------------------------------------------- ------------------ vhost2 U8204.E8A.65BF7E1-V3-C14 0x00000000 VTD NO VIRTUAL TARGET DEVICE FOUND
$ lsdev -virtual name status description ent3 Available Virtual I/O Ethernet Adapter (l-lan) vasi0 Available Virtual Asynchronous Services Interface (VASI) vhost0 Available Virtual SCSI Server Adapter vhost1 Available Virtual SCSI Server Adapter vhost2 Available Virtual SCSI Server Adapter vsa0 Available LPAR Virtual Serial Adapter vtscsi0 Available Virtual Target Device - Disk
mkvdev -vdev cd0 -vadapter vhost0
This will create a virtual target 'vtopt0'
rmvdev -vtd vtopt0
Note that vtd stands for virtual target device.
Discussion