vol-key

Displays the key of a volume from its name or path.

Syntax


1  vol-key
2.1 <vol-path>
2.1    --pool
2.2.1 <pool-name>
2.2.1 <pool-UUID> <vol-name>
Where:
<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 commands

Example

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