[ovirt-users] Reclaim disk space of thin disks
Grundmann, Christian
Christian.Grundmann at fabasoft.com
Thu Mar 31 10:16:33 UTC 2016
Hi,
@1. Did you use the hook?
yes, without the hook fstrim would not start,
@2. Where did you see it's the same size? Should be looked at from the storage side (assuming, btw, it supports discard!)
I looked at the “actual Size” under Storage
I don’t know how ovirt handles FC storage and if this will allow discard.
Thx
Christian
Von: Yaniv Kaul [mailto:ykaul at redhat.com]
Gesendet: Donnerstag, 31. März 2016 12:13
An: Grundmann, Christian <Christian.Grundmann at fabasoft.com>
Cc: users at ovirt.org
Betreff: Re: [ovirt-users] Reclaim disk space of thin disks
On Thu, Mar 31, 2016 at 1:05 PM, Grundmann, Christian <Christian.Grundmann at fabasoft.com <mailto:Christian.Grundmann at fabasoft.com> > wrote:
Hi,
seems not to work with FC Storage,
I Zero filled the Disk with dd, removed the file and did a fstrim which told me it trimmed the right amount of space,
But the disk Image stays full size.
1. Did you use the hook?
2. Where did you see it's the same size? Should be looked at from the storage side (assuming, btw, it supports discard!)
Y.
Thx
Christian
Von: Yaniv Kaul [mailto:ykaul at redhat.com <mailto:ykaul at redhat.com> ]
Gesendet: Mittwoch, 30. März 2016 22:29
An: Grundmann, Christian <Christian.Grundmann at fabasoft.com <mailto:Christian.Grundmann at fabasoft.com> >
Cc: users at ovirt.org <mailto:users at ovirt.org>
Betreff: Re: [ovirt-users] Reclaim disk space of thin disks
On Wed, Mar 30, 2016 at 10:04 AM, Grundmann, Christian <Christian.Grundmann at fabasoft.com <mailto:Christian.Grundmann at fabasoft.com> > wrote:
Hi,
is there a way to „shrink“ a thin disk image to reclaim deleted space like using virt-sparsify?
Yes, if the underlying file system supports it (NFS, for example, might need to be 4.2 and above).
Or can it be done by making a snapshot and clone the VM to a new one?
Another suggestion: use the VDSM hooks for discard ('diskunmap') and run 'fstrim' from within the guest.
Y.
Thanks a lot
Christian
_______________________________________________
Users mailing list
Users at ovirt.org <mailto:Users at ovirt.org>
http://lists.ovirt.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160331/e4397d53/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5812 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160331/e4397d53/attachment-0001.p7s>
More information about the Users
mailing list