[CentOS-virt] Resizing EXT3 partition in guest instance CentOS5

Poh Yong Hwang yongsan at gmail.com
Sun Feb 6 14:15:15 EST 2011


Hi,

Thanks but my issue is i do not have enough diskspace to create another
partition of the size that i needed. Is there a way for me to reduce the
actual image size?

Thanks!

On Mon, Feb 7, 2011 at 3:09 AM, compdoc <compdoc at hotrodpc.com> wrote:

> Well, I can tell you how I do it. Might help…
>
>
>
> 1) create a new storage volume of the size you want with Virtual Manager.
> (Host details>Storage tab)
>
>
>
> 2) shut down the VM and add the new volume to the VM ( it now has two
> virtual drives - the original and the new)
>
>
>
> 3) boot with clonezilla, clone one drive to the other. Then boot gparted
> and resize as needed
>
>
>
> 4) delete both drives from the vm, and then add back the new volume. Boot.
>
>
>
> 5) keep the old, smaller volume around for a while as backup.
>
>
>
>
>
> When you add a volume, Virtual Manager assigns a device name to it: hda to
> the first drive, hdb to the second, ect.
>
>
>
> So, you have to delete them both to get Virtual Manager to assign hda to
> the new one, otherwise the OS will not be able to boot.
>
>
>
>
>
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt at centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos-virt/attachments/20110207/d67f4f2a/attachment.html 


More information about the CentOS-virt mailing list