[sheepdog-users] reclaim space with virtio-scsi discard

Maxim Terletskiy terletskiy at emu.ru
Mon Aug 25 16:13:41 CEST 2014


Tested. Everything works fine now.

25.08.2014 16:37, Maxim Terletskiy пишет:
> Looks like I forgot about enabling discard in libvirt xml definition:
> <disk type='file' device='disk'>
> <driver name='qemu' type='raw' discard='unmap'/>
> ...
> </disk>
>
> Going to test and report.
>
> 25.08.2014 14:43, Maxim Terletskiy пишет:
>> Just tried to use "discard" feature of virtio-scsi and noticed that 
>> before my test vdi had 1,3Gb allocated due to "dog vdi list" output 
>> and after downloading-deleting some iso files inside VM there are 
>> 2,8Gb allocated. FS is ext4, mounted with flag "discard". Tried to do 
>> fstrim with the same result.
>>
>> Is it means that discard isn't supported by sheepdog?
>




More information about the sheepdog-users mailing list