worth also mentioning that there are several ways to discard data (automatically, timed, manually) all with their own caveats. We find it's easiest to simply mount with the discard option and take the penalty up front on deletion. Redhat has a good explanation of all the options: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/htm... ________________________________ From: mahnoosh shahidi <mahnooosh.shd@gmail.com> Sent: 07 August 2023 20:21 To: Simon Ironside <sironside@caffetine.org> Cc: Ceph Users <ceph-users@ceph.io> Subject: [ceph-users] Re: RBD Disk Usage CAUTION: This email originates from outside THG Thanks for your explanation! On Mon, 7 Aug 2023, 18:45 Simon Ironside, <sironside@caffetine.org> wrote:
When you delete files they're not normally scrubbed from the disk, the file system just forgets the deleted files are there. To fully remove the data you need something like TRIM:
fstrim -v /the_file_system
Simon
On 07/08/2023 15:15, mahnoosh shahidi wrote:
Hi all,
I have an rbd image that `rbd disk-usage` shows it has 31GB usage but in the filesystem `du` shows its usage is 40KB.
Does anyone know the reason for this difference?
Best Regards, Mahnoosh _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io