How do I add a local logical volume to an instance? Rather than using ISCSI

asked 2017-08-25 11:38:35 -0500

zijian1012 gravatar image
[root@compute03 cinder]# virsh domblklist instance-00000135
Target     Source
------------------------------------------------
vda        vms/77761818-0eb4-48ce-a6d0-86c16eac798e_disk
vdb        /dev/disk/by-path/ip-172.16.201.234:3260-iscsi-iqn.2010-10.org.openstack:volume-22bf3934-69c1-4a7b-be3a-f62b5e9c13d1-lun-1

Default, the instance's volume is remotely connected via iscsi,Is there a way to use the lv volume on the host where instance is located,bypass iscsi,as follows

[root@compute03 cinder]# virsh domblklist test1
Target     Source
------------------------------------------------
vda        /dev/vms/77761818-0eb4-48ce-a6d0-86c16eac798e_disk
vdb        /dev/vms/volume-d3851f21-71d1-4ebd-8381-f88f85d95b67
edit retag flag offensive close merge delete