[openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?
Richard W.M. Jones
rjones at redhat.com
Tue Jun 17 15:05:54 UTC 2014
On Tue, Jun 17, 2014 at 10:56:36AM -0400, Russell Bryant wrote:
> On 06/17/2014 10:43 AM, Richard W.M. Jones wrote:
> > On Fri, Jun 13, 2014 at 06:12:16AM -0400, Aryeh Friedman wrote:
> >> Theoretically impossible to reduce disk unless you have some really nasty
> >> guest additions.
> >
> > True for live resizing.
> >
> > For "dead" resizing, libguestfs + virt-resize can do it. Although I
> > wouldn't necessarily recommend it. In almost all cases where someone
> > wants to shrink a disk, IMHO it is better to sparsify it instead
> > (ie. virt-sparsify).
>
> FWIW, the resize operation in OpenStack is a dead one.
<advert>
In >= 1.26, `virt-sparsify --in-place' is very fast, doesn't copy, and
doesn't need mountains of temporary space (unlike the copying mode
virt-sparsify).
http://libguestfs.org/virt-sparsify.1.html#in-place-sparsification
</advert>
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
More information about the OpenStack-dev
mailing list