Installation guide

</source>
<target>
<path>/dev/disk/by-path</path>
</target>
</pool>
Save this XML code to a file named iscsirhel5.xml and load it into libvirt using the pool-
define command:
# virsh pool-define iscsirhel5.xml
Pool kvmguest defined from iscsirhel5.xml
# virsh pool-list --all
Name State Autostart
-----------------------------------------
default active yes
kvmguest inactive no
2. St art in g t h e st o rag e p o o l
The configuration is saved, but the iSCSI target has not yet been logged into, so no LUNs will
be visible on the host at this point. Use the pool-start command to make the LUNs visible
with the vol-list command.
# virsh pool-start kvmguest
Pool kvmguest started
# virsh vol-list kvmguest
Name Path
-----------------------------------------
10.0.0.1 /dev/disk/by-path/ip-192.168.122.2:3260-iscsi-iqn.2004-
04.rhel:rhel5:iscsi.kvmguest-lun-1
10.0.0.2 /dev/disk/by-path/ip-192.168.122.2:3260-iscsi-iqn.2004-
04.rhel:rhel5:iscsi.kvmguest-lun-2
3. Q uerying LUN in fo rmat ion
Further information about each LUN can be obtained using the vol-info and vol-
dumpxml commands:
# virsh vol-info /dev/disk/by-path/ip-192.168.122.2:3260-iscsi-iqn.2004-
04.rhel:rhel5:iscsi.kvmguest-lun-1
Name: 10.0.0.1
Type: block
Capacity: 10.00 GB
Allocation: 10.00 GB
# virsh vol-dumpxml /dev/disk/by-path/ip-192.168.122.2:3260-iscsi-iqn.2004-
04.rhel:rhel5:iscsi.kvmguest-lun-1
<volume>
<name>10.0.0.1</name>
<key>/dev/disk/by-path/ip-192.168.122.2:3260-iscsi-iqn.2004-
04.rhel:rhel5:iscsi.kvmguest-lun-1</key>
<source>
</source>
<capacity>10737418240</capacity>
<allocation>10737418240</allocation>
<target>
<path>/dev/disk/by-path/ip-192.168.122.2:3260-iscsi-iqn.2004-
Red Hat En t erp rise Lin ux 5 Virt ualizat ion Guid e
252