As I remember discard is not supported by virtio bus, so you need to use
virtio-scsi instead. In that case it will be necessary to add virtio-scsi
controller to vm definition.

I had similar problems with discard and missing blocks at 0.8.0, so I think
it is some kind of long last bug. Additionally I had problem with
virtio-scsi attached disks in case of reconnection to cluster after cluster
unavalability. With simple virtio when io is stuck, vm is just waiting for
cluster responding, trying to reconnect and so on. With virtio-scsi my vms
were always diying with kernel panics even during short periods of cluster
unavailibility.

2015-07-09 14:40 GMT+02:00 Valerio Pachera <[email protected]>:

>
>
> 2015-07-09 13:08 GMT+02:00 Vasiliy Tolstov <[email protected]>:
>
>> inside vm you need to mount -o remount,discard /
>> after that fstrim -v / (that create massive write for sheepdog) after
>> that each delete inside vm create discard request to sheepdog.
>>
>
> I get  'the discard operation is not supported'.
> The guest is debian 8.
> I tried with ext4 and xfs.
>
> --
> sheepdog mailing list
> [email protected]
> https://lists.wpkg.org/mailman/listinfo/sheepdog
>
>
-- 
sheepdog mailing list
[email protected]
https://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to