Virsh vol-delete: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= * [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Deployment_and_Administration_Guide/sect-Storage_Volume_Commands-De...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
virsh vol-delete <volume-name> <storage-pool-name> | virsh vol-delete <volume-name> <storage-pool-name> | ||
</pre> | </pre> | ||
{{Warn|WARNING! vol-delete will '''delete the content of the underlying storage''', not just removes the storage volume definition from the pool, so you risk losing state if the underlying storage was not backed up previously.}} | |||
=Example= | =Example= | ||
< | <syntaxhighlight lang='bash'> | ||
virsh vol-delete test-volume main-storage-pool | virsh vol-delete test-volume main-storage-pool | ||
</ | </syntaxhighlight> |
Latest revision as of 00:14, 7 December 2020
External
Internal
Overview
virsh vol-delete <volume-name> <storage-pool-name>
WARNING! vol-delete will delete the content of the underlying storage, not just removes the storage volume definition from the pool, so you risk losing state if the underlying storage was not backed up previously.
Example
virsh vol-delete test-volume main-storage-pool