==========CREATE A VIRTUAL TARGETE DEVICE ON A VIO SERVER AND MAPS TO PHYSICAL VOLUME=============
==========CREATE A VIRTUAL TARGETE DEVICE ON A VIO SERVER AND MAPS TO PHYSICAL VOLUME=============
1. Check the availability of virtual scsi adapter on VIO Server (vhost?)
$lsdev -virtual | grep vhost*
$lsmap -all
Find the adapter VTD is "NO VIRTUAL TARGET DEVICE FOUND"
vhost is not mapped to any device
2. List the available physical volumes.
$lspv
3. Create a virtual target device, which maps the virtual scsi adapter "vhost0", to physical volume "hdisk1"
syntax: mkvdev -vdev target device -vadapter virtual SCSI adapter
$mkvdev -vdev hdisk1 -vadapter vhost0
4. List the newly, create virtual target device
$lsdev -virtual
5. Display the mapping information of vhost0
$lsmap -vadapter vhost0
6. Delete the virtual target device vtscsi0 (it remove mapping between virtual scsi adapter "vhost0" and physical device hdisk1
$rmvdev -dev vtscsi0