[CentOS-virt] How do I reduce a disk size of a particular VM?

Victor Padro vpadro at gmail.com
Fri Aug 27 05:38:08 EDT 2010


On Fri, Aug 27, 2010 at 4:31 AM, Poh Yong Hwang <yongsan at gmail.com> wrote:
> Hi,
> Using KVM, qemu.
> Thanks!
> Yongsan
>
> On Fri, Aug 27, 2010 at 5:30 PM, Victor Padro <vpadro at gmail.com> wrote:
>>
>> On Fri, Aug 27, 2010 at 4:10 AM, Poh Yong Hwang <yongsan at gmail.com> wrote:
>> > Hi,
>> > But I would like the diskspace to be release to the hardware node so
>> > that i
>> > can create another VM as my hardware node is running out of diskspace. I
>> > presume that using Gpart only reduce the diskspace on the VM but it will
>> > not
>> > be release to the hardware node?
>> > Thanks!
>> > YongSan
>> >
>> > On Fri, Aug 27, 2010 at 4:58 PM, Victor Padro <vpadro at gmail.com> wrote:
>> >>
>> >> On Fri, Aug 27, 2010 at 3:51 AM, Poh Yong Hwang <yongsan at gmail.com>
>> >> wrote:
>> >> > Hi,
>> >> > As per subject, is there a way to reduce diskspace for a VM. I have a
>> >> > VM
>> >> > with 200GB but would like to reduce the diskspace to 100GB.
>> >> > Please advise.
>> >> > Thanks!
>> >> > Yongsan
>> >> > _______________________________________________
>> >> > CentOS-virt mailing list
>> >> > CentOS-virt at centos.org
>> >> > http://lists.centos.org/mailman/listinfo/centos-virt
>> >> >
>> >> >
>> >>
>> >> Perhaps shriking the partition using gparted inside the VM?
>> >>
>> >> Otherwise I can't figure out how to shrink a raw, qcow file under KVM
>> >> for example...
>> >>
>> >>
>> >> --
>> >> Linux User #452368
>> >> http://twitter.com/vpadro
>> >>
>> >> "Everything that irritates us about others can lead us to an
>> >> understanding of ourselves"
>> >> _______________________________________________
>> >> CentOS-virt mailing list
>> >> CentOS-virt at centos.org
>> >> http://lists.centos.org/mailman/listinfo/centos-virt
>> >
>> >
>> > _______________________________________________
>> > CentOS-virt mailing list
>> > CentOS-virt at centos.org
>> > http://lists.centos.org/mailman/listinfo/centos-virt
>> >
>> >
>>
>> What are you using to virtualize those VMs?
>>
>> --
>> Linux User #452368
>> http://twitter.com/vpadro
>>
>> "Everything that irritates us about others can lead us to an
>> understanding of ourselves"
>> _______________________________________________
>> CentOS-virt mailing list
>> CentOS-virt at centos.org
>> http://lists.centos.org/mailman/listinfo/centos-virt
>
>
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt at centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt
>
>

I can only think of creating a smaller qcow file, clonning using dd
the contents of the oversized qcow/raw HD to that newly qcow
file...although is not the best solution.

Maybe someone else could bring a better solution because there's no
much info on KVM just a little under Xen... :(



-- 
Linux User #452368
http://twitter.com/vpadro

"Everything that irritates us about others can lead us to an
understanding of ourselves"


More information about the CentOS-virt mailing list