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/html/managing_file_systems/discarding-unused-blocks_managing-file-systems ________________________________ From: mahnoosh shahidi <mahnooosh.shd@xxxxxxxxx> Sent: 07 August 2023 20:21 To: Simon Ironside <sironside@xxxxxxxxxxxxx> Cc: Ceph Users <ceph-users@xxxxxxx> Subject: 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@xxxxxxxxxxxxx> 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@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 > _______________________________________________ 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