Installation guide

iSCSI-based storage pools
223
Pool guest_images_lvm defined
# virsh pool-build guest_images_lvm
Pool guest_images_lvm built
# virsh pool-start guest_images_lvm
Pool guest_images_lvm started
# vgs
VG #PV #LV #SN Attr VSize VFree
libvirt_lvm 1 0 0 wz--n- 465.76g 465.76g
# virsh pool-autostart guest_images_lvm
Pool guest_images_lvm marked as autostarted
# virsh pool-list --all
Name State Autostart
-----------------------------------------
default active yes
guest_images_lvm active yes
# virsh vol-create-as guest_images_lvm volume1 8G
Vol volume1 created
# virsh vol-create-as guest_images_lvm volume2 8G
Vol volume2 created
# virsh vol-create-as guest_images_lvm volume3 8G
Vol volume3 created
# virsh vol-list guest_images_lvm
Name Path
-----------------------------------------
volume1 /dev/libvirt_lvm/volume1
volume2 /dev/libvirt_lvm/volume2
volume3 /dev/libvirt_lvm/volume3
# lvscan
ACTIVE '/dev/libvirt_lvm/volume1' [8.00 GiB] inherit
ACTIVE '/dev/libvirt_lvm/volume2' [8.00 GiB] inherit
ACTIVE '/dev/libvirt_lvm/volume3' [8.00 GiB] inherit
# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
volume1 libvirt_lvm -wi-a- 8.00g
volume2 libvirt_lvm -wi-a- 8.00g
volume3 libvirt_lvm -wi-a- 8.00g
# vgs
VG #PV #LV #SN Attr VSize VFree
libvirt_lvm 1 3 0 wz--n- 465.76g 441.76g
vg_host2 1 3 0 wz--n- 465.27g 0
#
26.1.5. iSCSI-based storage pools
This section covers using iSCSI-based devices to store virtualized guests.
iSCSI (Internet Small Computer System Interface) is a network protocol for sharing storage devices.
iSCSI connects initiators (storage clients) to targets (storage servers) using SCSI instructions over the
IP layer. For more information and background on the iSCSI protocol refer to wikipedia's iSCSI article
1
.
26.1.5.1. Configuring a software iSCSI target
The scsi-target-utils package provides a tool for creating software-backed iSCSI targets.
1
http://en.wikipedia.org/wiki/ISCSI