vol-key
Displays the key of a volume from its name or path.
Syntax
- <pool-name>
- Is the name of the storage pool.
- <pool-UUID>
- Is the UUID of the storage pool.
- <vol-name>
- Is the name of the volume.
- <vol-path>
- Is the path of the volume.
Selected options
- --pool
- Specifies the storage pool.
Usage
Volume management commandsExample
This example displays the volume key of vol1 as a volume of storage pool
pool1.
# virsh vol-key --pool pool1 vol1 /var/lib/libvirt/images/federico.img