14.12.7. Re-sizing Storage Volumes
--poolpool-or-uuid vol-name-or-path pool-or-uuid capacity
This command command re-sizes the capacity of the given volume, in bytes. The command requires
--pool pool-or-uuid which is the name or UUID of the storage pool the volume is in. This command also requires vol-name-or-key-or-path is the name or key or path of the volume to re-size.
The new capacity may create a sparse file unless the
--allocate option is specified. Normally, capacity is the new size, but if
--delta is present, then it is added to the existing size. Attempts to shrink the volume will fail unless the
--shrink option is present.
Note that capacity cannot be negative unless the
--shrink option is provided and a negative sign is not necessary. capacity is a scaled integer which defaults to bytes if there is no suffix. Note too that this command is only safe for storage volumes not in use by an active guest. Refer to Section 14.5.17, “Using blockresize to Change the Size of a Domain Path” for live re-sizing.