Hi, If you have a spare guest you may consider temporarily attaching the said cow2 image to that guest and use the partition tools (like parted , fdisk,cfdisk etc) and filesystem tools (like xfs_grow , resize2fs etc) to grow the filesystem. use partprobe to reread the partition table into the kernel once partition editing tools are used. re-read of mounted root partions mostly do not work for me. hence i suggested using a separte vm for the image. Regards, Rajesh Kumar Mallah Tel. 91-11-46710500 (Ext:303) Cell +919811255597 Website: http://www.tradeindia.com/ \|/ \|/ \|/ stop printing \|/ \|/ \|/ | | | start planting | | | ----- "Chandana De Silva" <chandana@xxxxxxxxxxxxx> wrote: | From: "Chandana De Silva" <chandana@xxxxxxxxxxxxx> | To: libvirt-users@xxxxxxxxxx | Sent: Sunday, October 28, 2012 8:13:50 AM | Subject: Re-sizing qcow2 images | | Hello All, | | I am using Centos 6.3 with libvirt 0.910 and qemu-kvm 0.12 | | I had to resize a qcow2 disk, and came across several issues; | | I used this command to resize the image: | | sudo -i /usr/bin/qemu-img /var/lib/libvirt/images/mydisk.img resize | +100G . The disk is attached using virtio. | | I then tried to use parted from within the guest to resize the | partition. | | The first problem was that the guest os did not see the increase disk | size. | Is there something that I need to do, to force the guest to see the | higher disk size ? | I got round this by re-starting the guest, but it would be better if | there is some way to force the guest to see the new size. | | The second problem was that parted gave an error : Error: Filesystem | has | an incompatible feature enable. | Some reading showed that this was caused by the "resize_inode" feature | | on the file system. I removed this feature using debugfs, and rans | fsck, | but parted still gave the same error: Error: Filesystem has an | incompatible feature enable. | | I would like some advice on how this is supposed to be done. | | Thanks in advance. | | Chandana | | | _______________________________________________ | libvirt-users mailing list | libvirt-users@xxxxxxxxxx | https://www.redhat.com/mailman/listinfo/libvirt-users _______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users