I have test the virtio-blk has supported fstrim. But in cloudstack only the root controller set to scsi(virtio-scsi), the disk discard mode is unmap. if not , will be Hypervisor default.
Whether can add a parameter in vm setting allow users to customize
Or there are other ways to do it now, using virtio-blk and using unmap for discard mode ?
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
Cloudstack KVM ceph
OS / ENVIRONMENT
ubuntu20.04 ubuntu22.04
SUMMARY
I have test the virtio-blk has supported fstrim. But in cloudstack only the root controller set to scsi(virtio-scsi), the disk discard mode is unmap. if not , will be Hypervisor default.
https://chrisirwin.ca/posts/discard-with-kvm-2020/
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS