Skip to contentSkip to conversation

Why is virt-resize designed to involve two disks?

Qemu-devel 吴志勇 2 participants 2 messages Sep 23, 2014

lore
Share & tools
lore

吴志勇

author
#0 lore raw

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

#1 lore raw
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