Virsh vol-delete: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
</pre>
</pre>


{{Warn|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.}}
{{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=


<pre>
<syntaxhighlight lang='bash'>
virsh vol-delete test-volume main-storage-pool
virsh vol-delete test-volume main-storage-pool
</pre>
</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