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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]