On 05.06.2015 07:58, smiling dream wrote:
Thanks for you reply .
So if I understand you correctly you want to reduce the space a thin provision
disk takes up on the NFS share because you deleted files within the VM?
Yes
Is there any others way to reclaim disk space ,
Since thin provision in this case
relates to sparse files you cannot
delete files in the VM and have the disk space reclaimed.
But ovirt since v. 3.5 is using qemu-img to copy disk images. IRC this
process should very well result in a smaller image. So, just use disk
move and move the disk images to a new storage domain and it should do
the trick.
Another quite elegant way might be to use [fstrim]. But is is highly
depended of your VM config, storage domain, and needs virtio-scsi to my
knowlage.
Another way to avoid this altogether is to to use a compressing file
system like ZFS for your storage domain.
HTH
[fstrim]
http://dustymabe.com/2013/06/11/recover-space-from-vm-disk-images-by-usin...
coz i have bulks of vm under
thin provision manual process kind of impossible . As i know Vmware
have this
kind of facility to reclaim from thin provision .
On Fri, Jun 5, 2015 at 11:48 AM, Alex McWhirter <alexmcwhirter(a)triadic.us
<mailto:alexmcwhirter@triadic.us>> wrote:
Sorry, I must have misunderstood.
So if I understand you correctly you want to reduce the space a thin
provision disk takes up on the NFS share because you deleted files within
the VM?
I'm pretty sure that thin provisioned disks can only grow. Once they have
been expanded there's no way to reclaim that space on the NFS share.
The only thing I think you can do is create a new thin provisioned disk and
copy the old data over at the file level, not the block level. Afterwards
you could delete the original disk.
Sent from my iPhone
On Jun 5, 2015, at 1:19 AM, smiling dream <smiling.dream(a)gmail.com
<mailto:smiling.dream@gmail.com>> wrote:
> I mean vm internal disk space .
> All of VM under thin provision . If i delete files and free space from VM
> still ovirt stroage showing vm disk space is used . How to reclaim disk
> space from guest VM .
>
> On Fri, Jun 5, 2015 at 11:14 AM, Alex McWhirter <alexmcwhirter(a)triadic.us
> <mailto:alexmcwhirter@triadic.us>> wrote:
>
> From what I understand, ovirt simply reports the available storage
> that the NFS server says it is free. Ovirt itself doesn't control the
> storage.
>
> Under the storage tab click on the storage domain you're having issues
> with and check to see if the images themselves have been deleted or if
> they are still there. When you delete a virtual machine you have the
> option to delete the virtual image as well.
>
> If a virtual machine has more than one image then I'm not sure how
> this is handled as I've only used single images for virtual machines.
> Any additional storage I need I handle over NFS directly to the
> virtual machine.
>
> Perhaps ovirt doesn't automatically delete secondary images? Either
> way you should be able to delete them manually and reclaim space.
>
> Sent from my iPhone
>
> > On Jun 5, 2015, at 12:39 AM, smiling dream <smiling.dream(a)gmail.com
> <mailto:smiling.dream@gmail.com>> wrote:
> >
> > I have ovirt 3.5.1 installed with VDSM 4.16.14 EL6 node and NFS as
> storage . In my infrastructure i have multiple instance of centos /
> windows vm under ovirt and once guest vm disk space is used ovirt is
> not release guest vm disk space after delete .
> > Looking for help .
> >
> > Regards
> > Suvro
> > _______________________________________________
> > Users mailing list
> > Users(a)ovirt.org <mailto:Users@ovirt.org>
> >
http://lists.ovirt.org/mailman/listinfo/users
>
>
--
Daniel Helgenberger
m box bewegtbild GmbH
P: +49/30/2408781-22
F: +49/30/2408781-10
ACKERSTR. 19
D-10115 BERLIN
www.m-box.de www.monkeymen.tv
Geschäftsführer: Martin Retschitzegger / Michaela Göllner
Handeslregister: Amtsgericht Charlottenburg / HRB 112767