oVirt 3.4 disks can be online expansion, but for the disk within a file system requires a separate support for Linux and Windows lists commonly used method in this expansion.
Linux file system expansion (libguestfs)
For details, please refer to libguestfs site .
- View disk
# Virt-filesystem --all --long -h -a hda.img
- Expansion disk copy to be created, while the expansion of 10G (Assuming the original disk size is 10G)
For RAW format:
# Truncate -r hda.img hda-new.img # Truncate -s + 10G hda-new.imgFor QCOW2 and other compressed formats:
# Qemu-img create -f qcow2 -o preallocation = metadata hda-new.img 20G
- Extended partition size
Ordinary extended partition, / boot partition expansion 200M, all the rest to the / partition:
# Virt-resize --resize / dev / sda1 = + 200M --expand / dev / sda2 hda.img hda-new.img
LVM partition expansion, expansion lv_root logical volume:
# Virt-resize --expand / dev / sda2 --LV-expand / dev / vg_livecd / lv_root hda.qcow2 hda-new.qcow2
Thanks,
Punit