Many thanks for the info.
We don't need that option. How we can disable that? just only uncheck that
property box ? Is there any downtime?
What happens if we delete that VM and recreate it? All space will reclaim?
Thanks,
Ranesh..
On Mon, Jul 12, 2021 at 3:46 AM Nir Soffer <nsoffer(a)redhat.com> wrote:
On Mon, Jul 12, 2021 at 12:27 AM Ranesh Tharanga Perera
<raneshtharanga(a)gmail.com> wrote:
>
> We have enabled both options discard-after delete and wipe after delete
but nothing is working , I have tried to creating small disk ( like 1 GB ).
after deleting that disk space has reclaimed succsuuufully.
> Seems this happens for larger size disk
If it worked for 1g disk, it should work for a bigger disk.
If you can reproduce this again, please file a ovirt/vdsm bug and attach
vdsm logs and /var/log/messages (or output of journalcltl).
BTW, do you have a real need for wipe-after-delete? This can make
deletion much slower, since it may need to allocate the entire disk on
the server side for writing zeroes just to deallocate all space right
after that when we discard the disk.
This option is needed only if you want to ensure that sensitive data
cannot leak to another disk on the same storage, maybe used by
another tenant.
> On Mon, Jul 12, 2021 at 1:10 AM Nir Soffer <nsoffer(a)redhat.com> wrote:
>>
>> On Sun, Jul 11, 2021 at 5:03 PM Ranesh Tharanga Perera
>> <raneshtharanga(a)gmail.com> wrote:
>> >
>> > I have attached 7TB disk ( pre allocated) for VM ( Redhat 8 ).. Due
to some space issue we have unattached disk from VM and deleted it.
>>
>> Did you enable the "discard after delete" option in the storage
domain
>> advanced options?
>>
>> If you did not, the logical volume is deleted, but the blocks
allocated on the
>> server side from this logical volume are not discarded.
>>
>> Since you deleted the logical volume, it is not possible to discard it
>> now, but you
>> do this:
>>
>> Try this:
>> - Put the storage domain to maintenance
>> - Enable "discard-after delete"
>> - Active the storage domain
>> - Create new raw preallocated disk filling the entire domain
>> - Delete the disk
>>
>> Nir