Re: resize raw images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 28, 2012 at 6:14 PM, Lentes, Bernd
<bernd.lentes@xxxxxxxxxxxxxxxxxxxxx> wrote:
> I also have to create some new vm's. What is when disk space is running out ? My idea is to create the new vm's in raw images. Inside the vm, filesystems will reside in logical volumes. When disk space is running out, i resize the raw image using:
>
> - qemu-img create -f raw additional.raw <size>
> - cat additional.raw >> vm.raw
> - inside the vm, resize the filesystems easily with lvm tools und resize2fs.

You don't need to create and concatenate an empty raw image file.

To grow the raw image file in a single step:

$ qemu-img resize test.img +10G

This only grows the virtual disk size.  Inside the guest you still
need to resize partitions, logical volumes, and file systems like you
mentioned.

Stefan
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux