Friday, 17 June 2016



Script to only select diskname and map to required vhost :
Step1 :  To get disk name only

lspv |grep -i hdiskpower |awk '{print $1}'

Step2 : use output of this command to map to particular vhost
for i in `lspv|grep -i hdiskpower|awk '{print $1}'
do
mkvdev -vdev $i  -vadapter vhostname
done


Note : You can use such scripts to remove disk from vhost for that you must pick vtscsi i.e VTD virtual Target Device

No comments:

Post a Comment