]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Add option to undefine storage with domains
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Sep 2011 12:48:47 +0000 (14:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 16 Dec 2011 10:42:12 +0000 (11:42 +0100)
commit3bb6bcfc795ff758fa0c696db250a7bdad27a1c0
treec08caaf6425d673792144b166d997f55a8aaa032
parentdaa8c962339450db56a78e0962a871fad146c86d
virsh: Add option to undefine storage with domains

Add an option for virsh undefine command, to remove associated storage
volumes while undefining a domain. This patch allows the user to remove
associated (libvirt managed ) storage volumes while undefining a domain.

The new option --storage for the undefine command takes a string
argument that consists of comma separated list of target or source path
of volumes to be undefined. Volumes are removed after the domain has
been successfully undefined,

If a volume is not part of a storage pool, the user is warned to remove
the volume in question himself.

Option --wipe-storage may be specified along with this, that ensures
the image is wiped before removing.

Option --remove-all-storage enables the user to remove all storage. The
name is chosen long as the users should be aware what they're about to
do.
tools/virsh.c
tools/virsh.pod