Storage pool management commands
Before you begin
- Ensure that the libvirt daemon is running on the host.
Procedure
-
Creating, modifying, and deleting a persistent storage pool definition:
Functionality Command Create a persistent definition of a storage pool configuration pool-define Edit the libvirt-internal configuration of a defined storage pool pool-edit Delete the persistent libvirt definition of a storage pool pool-undefine -
Managing the storage pool life cycle:
Functionality Command Enable or disable the automatic start of a storage pool when the libvirt daemon is started pool-autostart Start a defined inactive storage pool pool-start Update the volume list of a storage pool pool-refresh Shut down a storage pool - the pool can be restarted by using the virsh pool-start command pool-destroy Delete the volumes of a storage pool Attention: This command is intended for expert users. Depending on the pool type, the results range from no effect to loss of data. In particular, data is lost when a zfs or LVM group pool is deleted.pool-delete -
Monitoring storage pools:
Functionality Command View a list of all defined storage pools pool-list Display the current libvirt-internal configuration of a storage pool pool-dumpxml Display information about a defined storage pool pool-info Retrieve the name of a storage pool from its UUID pool-name Retrieve the UUID of a storage pool from its name pool-uuid