diff --git a/tools/virsh.pod b/tools/virsh.pod index 761199396c..9d69a75244 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -4265,17 +4265,29 @@ the first volume found by the path will be used. [I<--allocate>] [I<--delta>] [I<--shrink>] Resize the capacity of the given volume, in bytes. + +I is the name or key or path of the volume +to resize. + +I is a scaled integer (see B above) for the volume, +which defaults to bytes if there is no suffix. + 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 resize. The new capacity might be sparse unless I<--allocate> is -specified. Normally, I is the new size, but if I<--delta> -is present, then it is added to the existing size. Attempts to shrink -the volume will fail unless I<--shrink> is present; I cannot -be negative unless I<--shrink> is provided, but a negative sign is not -necessary. I is a scaled integer (see B above), which -defaults to bytes if there is no suffix. This command is only safe -for storage volumes not in use by an active guest; see also -B for live resizing. +is in. If the volume name is provided instead of the key or path, then +providing the pool is necessary to find the volume to be uploaded into; +otherwise, the first volume found by the key or path will be used. + +The new I might be sparse unless I<--allocate> is specified. + +Normally, I is the new size, but if I<--delta> +is present, then it is added to the existing size. + +Attempts to shrink the volume will fail unless I<--shrink> is present. +The I cannot be negative unless I<--shrink> is provided, but +a negative sign is not necessary. + +This command is only safe for storage volumes not in use by an active +guest; see also B for live resizing. =back