Libvirt Storage Volume Renaming: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
1. Shutdown all the virtual machines that use the volume. | 1. Shutdown all the virtual machines that use the volume. | ||
2. Delete the storage volume from the pool with [[virsh vol-delete]]. | 2. Delete the storage volume from the pool with [[virsh vol-delete]]. Note that [[virsh vol-delete]] does not delete the ''content'' of the underlying storage, it just removes the storage volume definition from the pool. |
Revision as of 15:08, 30 June 2017
Internal
Overview
There is no virsh command to rename a volume, but it can be achieved via the following sequence of steps:
1. Shutdown all the virtual machines that use the volume.
2. Delete the storage volume from the pool with virsh vol-delete. Note that virsh vol-delete does not delete the content of the underlying storage, it just removes the storage volume definition from the pool.