This section shows how to create disk volumes inside a block based storage pool.
# virsh vol-create-as guest_images_disk
volume1
8
G
Vol volume1 created
# virsh vol-create-as guest_images_disk
volume2
8
G
Vol volume2 created
# virsh vol-create-as guest_images_disk
volume3
8
G
Vol volume3 created
# virsh vol-list guest_images_disk
Name Path
-----------------------------------------
volume1 /dev/sdb1
volume2 /dev/sdb2
volume3 /dev/sdb3
# parted -s /dev/sdb
print
Model: ATA ST3500418AS (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
2 17.4kB 8590MB 8590MB primary
3 8590MB 17.2GB 8590MB primary
1 21.5GB 30.1GB 8590MB primary
#