From cd2b18968d0c070caa8526506d3f755895b8c5b8 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Wed, 9 Jun 2010 01:00:24 +1000 Subject: [PATCH] virsh: add the volume commands to the virsh man page This patch also includes the new vol-pool command. --- tools/virsh.pod | 105 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/tools/virsh.pod b/tools/virsh.pod index cf27e17a31..b54003c3f9 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -757,6 +757,111 @@ Returns the UUID of the named I. =back +=head1 VOLUME COMMANDS + +=item B I I + +Create a volume from an XML . +I is the name or UUID of the storage pool to create the volume in. +I is the XML with the volume definition. An easy way to create the +XML is to use the B command to obtain the definition of a +pre-existing volume. + +B + + virsh vol-dumpxml --pool storagepool1 appvolume1 > newvolume.xml + edit newvolume.xml + virsh vol-create differentstoragepool newvolume.xml + +=item B I I [optional I<--inputpool> +I] I + +Create a volume, using another volume as input. +I is the name or UUID of the storage pool to create the volume in. +I is the XML with the volume definition. +I<--inputpool> I is the name or uuid of the storage pool the +source volume is in. +I is the name or key or path of the source volume. + +=item B I I I optional +I<--allocation> I I<--format> I I<--snapshot-source-vol> +I I<--snapshot-source-format> I + +Create a volume from a set of arguments. +I is the name or UUID of the storage pool to create the volume +in. +I is the name of the new volume. +I is the size of the volume to be created, with optional k, M, G, or +T suffix. +I<--allocation> I is the initial size to be allocated in the volume, with +optional k, M, G, or T suffix. +I<--format> I is used in file based storage pools to specify the volume +file format to use; raw, bochs, qcow, qcow2, vmdk. +I<--snapshot-source-vol> I is the source backing +volume to be used if taking a snapshot of an existing volume. +I<--snapshot-source-format> I is the format of the snapshot backing volume; +raw, bochs, qcow, qcow2, vmdk. + +=item B [optional I<--pool> I] I I + +Clone an existing volume. Less powerful, but easier to type, version of +B. +I<--pool> I is the name or UUID of the storage pool to create the volume in. +I is the name or key or path of the source volume. +I is the name of the new volume. + +=item B [optional I<--pool> I] I + +Delete a given volume. +I<--pool> I is the name or UUID of the storage pool the volume is in. +I is the name or key or path of the volume to delete. + +=item B [optional I<--pool> I] I + +Wipe a volume, ensure data previously on the volume is not accessible to future reads. +I<--pool> I is the name or UUID of the storage pool the volume is in. +I is the name or key or path of the volume to wipe. + +=item B [optional I<--pool> I] I + +Output the volume information as an XML dump to stdout. +I<--pool> I is the name or UUID of the storage pool the volume is in. +I is the name or key or path of the volume to output the XML of. + +=item B [optional I<--pool> I] I + +Returns basic information about the given storage volume. +I<--pool> I is the name or UUID of the storage pool the volume is in. +I is the name or key or path of the volume to return information for. + +=item B I<--pool> I + +Return the list of volumes in the given storage pool. +I<--pool> I is the name or UUID of the storage pool. + +=item B I + +Return the pool for a given volume. +I is the key or path of the volume to return the pool name for. + +=item B [optional I<--pool> I] I + +Return the path for a given volume. +I<--pool> I is the name or UUID of the storage pool the volume is in. +I is the name or key of the volume to return the path for. + +=item B I + +Return the name for a given volume. +I is the key or path of the volume to return the name for. + +=item B I + +Return the volume key for a given volume UUID. +I is the UUID of the volume to return the volume key for. + +=back + =head1 SECRET COMMMANDS The following commands manipulate "secrets" (e.g. passwords, passphrases and -- GitLab