Volume management commands
Before you begin
- Ensure that the libvirt daemon is running on the host.
Procedure
-
Creating, modifying, and deleting volumes:
Functionality Command Create a volume for a storage pool from a volume configuration-XML file vol-create Remove a volume from a storage pool vol-delete Other useful commands to create volumes are: vol-create-as, vol-create-from, or vol-clone.
-
Monitoring volumes:
Functionality Command Display a list of the volumes of a storage pool vol-list Display the current libvirt-internal configuration of a storage volume vol-dumpxml Display information about a defined volume vol-info Display the key of a volume from its name or path vol-key Display the name of a volume from its key or path vol-name Display the path of a volume from its name or key vol-path Display the storage pool name or UUID which hosts the volume vol-pool