zstackio / zstack-utility

Agents and tools for project ZStack http://zstack.org (国内用户请至 http://zstack.io)
Apache License 2.0
62 stars 80 forks source link

VirtIO-SCSI-Ceph UNMAP #374

Open mchtech opened 6 years ago

mchtech commented 6 years ago

Allow to recycle unused space of Ceph Virtual Disk to Ceph RBD.

  1. Enable VirtIOSCSI on (root)Volume 【CreateSystemTag 'capability::virtio-scsi' with type 'VolumeVO' on rootVolumeUuid】
  2. Enable Discard support on guest OS 【set 'issue_discards = 1' in /etc/lvm.conf on Linux; do nothing on Windows】
  3. Run command on guest OS 【fstrim -av or fstrim -v SOMEMOUNTPOINT on Linux, defrag.exe /L C: on Windows】
MatheMatrix commented 6 years ago

Thanks for your patch! Patch for virtio-scsi is also welcome.

Your patch is testing on our CI system, it will merge if CI passed.