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

Maxim Terletskiy terletskiy at emu.ru
Mon Aug 25 14:37:15 CEST 2014

Looks like I forgot about enabling discard in libvirt xml definition:
<disk type='file' device='disk'>
<driver name='qemu' type='raw' discard='unmap'/>

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