Why is virt-resize designed to involve two disks?
HI,
As you've known, vhd-util and qemu-img both provide the capacity for resizing the original disk, but why is virt-resize designed to involve two disks, not only original disk? Is there any concern? Is it possible that only one original disk is involved in virt-resize?
--
Regards,
Zhi Yong Wu
Quoted 1 line · 吴志勇
HI,
[please configure your mailer to wrap long lines]
Quoted 1 line
As you've known, vhd-util and qemu-img both provide the capacity for
resizing the original disk, but why is virt-resize designed to involve two disks, not only original disk? Is there any concern? Is it possible that only one original disk is involved in virt-resize?
virt-resize is part of libguestfs, and as such is not maintained on this list. You'll get better answers about why virt-resize does not support in-place resizing by asking on that list. But the answer probably involves the fact that virt-resize is doing MUCH more than resizing the block device - it is also copying entire filesystems from the old location to the new resized location for optimal initial placement.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org