[libvirt] Re: [Libvir] ISCSI howto, example, etc?

Stefan de Konink skinkie at xs4all.nl
Wed May 14 10:37:59 UTC 2008



On Tue, 6 May 2008, Daniel P. Berrange wrote:

> As a simple example...

>   - Create an XML definition for the iSCSI target you want to access,

I have created:

<pool type="iscsi">
<name>netapp</name>
<source>
<host name="172.16.103.200"/>
<device
path="iqn.1992-08.com.netapp:sn.118046347:vf.88fa4694-0ba6-11dd-b8a9-00a09807592f"/>
</source>
<target>
<path>/dev/disk/by-path</path>
</target>
</pool>

>   - Define the pool
>
>      # virsh pool-define virt.xml

xen01 netapp # virsh pool-define virt.xml
Pool netapp defined from virt.xml


>   - Activate the pool (this step logs into the server)
>
>      # virsh pool-start virtimages

xen01 netapp # virsh pool-start netapp
Pool netapp started

>   - List the LUNs available
>
>      # virsh vol-list virtimages

xen01 netapp # virsh vol-list netapp
Name                 Path
-----------------------------------------

<< pretty empty >>


But when I look in /dev/disk/by-path:

lrwxrwxrwx 1 root root  9 May 14 12:35
ip-172.16.103.200:3260-iscsi-iqn.1992-08.com.netapp:sn.118046347:vf.88fa4694-0ba6-11dd-b8a9-00a09807592f-lun-0
-> ../../sdc
lrwxrwxrwx 1 root root  9 May 14 12:35
ip-172.16.103.200:3260-iscsi-iqn.1992-08.com.netapp:sn.118046347:vf.88fa4694-0ba6-11dd-b8a9-00a09807592f-lun-1
-> ../../sdd
lrwxrwxrwx 1 root root  9 May 14 12:35
ip-172.16.103.200:3260-iscsi-iqn.1992-08.com.netapp:sn.118046347:vf.88fa4694-0ba6-11dd-b8a9-00a09807592f-lun-2
-> ../../sde

Something is present, thus the login was succesfull. How to get this to
work with the libvirt storage pool?

I have tried to change the target path. But it doesn't give me any output.
I'll now look in the C code to see what you are giving as command for this
list.



Stefan




More information about the libvir-list mailing list