apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
1.83k stars 1.07k forks source link

Virtio-blk support fstrim #9299

Open havengit opened 6 days ago

havengit commented 6 days ago
ISSUE TYPE
COMPONENT NAME
UI 
CLOUDSTACK VERSION
4.15
4.18
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
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 ?
ACTUAL RESULTS