Re: Discard / Trim does not shrink rbd image size when disk is partitioned

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, have you checked ‚rbd sparsify‘ to reclaim unused space?

Zitat von Boris Behrens <bb@xxxxxxxxx>:

Hi everybody,

we just stumbled over a problem where the rbd image does not shrink, when
files are removed.
This only happenes when the rbd image is partitioned.

* We tested it with centos8/ubuntu20.04 with ext4 and a gpt partition table
(/boot and /)
* the kvm device is virtio-scsi-pci with krbd
* Mount option discard is set
* command to create large file: dd if=/dev/zero of=testfile bs=64M
count=1000
* the image grows in the size we expect
* when we remove the testfile the rbd image stays at the size
* we wen recreate the deleted file with the command the rbd image grows
further
* using fstrim does not work
* adding a new disk and initialize the ext4 directly on the disk (wihtout
partitioning) the trim does work and the rbd image shrinks back to a couple
GB
* we use ceph 14.2.21

Does anybody experienced the same issue and maybe know how to solve the
problem?

--
Die Selbsthilfegruppe "UTF-8-Probleme" trifft sich diesmal abweichend im
groüen Saal.
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux