[libvirt] iscsi support?
Harald Dunkel
harald.dunkel at aixigo.de
Thu Jul 15 09:11:40 UTC 2010
Hi Dave,
Sorry for the delay. See below
On 07/12/10 20:23, Dave Allan wrote:
>
> Hi Harri,
>
> I spun up a Debian testing box with the versions of libvirt, iet&
> open-iscsi that you're using, and it works fine for me. My pool xml
> is:
>
> <pool type="iscsi">
> <name>iscsitest</name>
> <source>
> <host name="localhost"/>
> <device path="iqn.2001-04.com.example:foobarbaz"/>
> </source>
> <target>
> <path>/dev/disk/by-path</path>
> </target>
> </pool>
>
> Gives the 3 configured LUs as volumes:
>
> Name Path
> -----------------------------------------
> 3.0.0.0 /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2001-04.com.example:foobarbaz-lun-0
> 3.0.0.1 /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2001-04.com.example:foobarbaz-lun-1
> 3.0.0.2 /dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2001-04.com.example:foobarbaz-lun-2
>
In my environment the new volume is not listed by virsh
vol-list, even though /dev/disk/by-path shows the iscsi
block devices:
# virsh vol-list --pool iscsi.dpcl064
Name Path
-----------------------------------------
# ls -al /dev/disk/by-path/
total 0
drwxr-xr-x 2 root root 320 Jul 15 10:56 .
drwxr-xr-x 6 root root 120 Jul 15 2010 ..
lrwxrwxrwx 1 root root 9 Jul 15 10:56 ip-172.19.97.183:3260-iscsi-iqn.2010-07.de.aixigo.ac.dpcl064:storage-lun-0 -> ../../sdd
lrwxrwxrwx 1 root root 10 Jul 15 10:56 ip-172.19.97.183:3260-iscsi-iqn.2010-07.de.aixigo.ac.dpcl064:storage-lun-0-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jul 15 10:56 ip-172.19.97.183:3260-iscsi-iqn.2010-07.de.aixigo.ac.dpcl064:storage-lun-0-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 9 Jul 15 09:32 pci-0000:00:03.0-usb-0:2:1.0-scsi-0:0:0:0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Jul 15 09:33 pci-0000:01:0e.0-scsi-0:0:0:0 -> ../../sda
:
:
The virt-manager GUI knows about the defined iscsi volume,
so I would guess this is just a minor bug in virsh.
Regards
Harri
More information about the libvir-list
mailing list