Tnx Gregory, Doesn't sound too safe then. Only reason to discover these orphans via scanning would be to delete the files again and I know all these files were at least one year old... so, I wonder if I could somehow do something like: 1) do forward scrub with a custom tag 2) iterate over all the objects in the pool and delete all objects without the tag and older than one year Is there any tooling to do such an operation? Any risks or flawed logic there? ...or any other ways to discover and get rid of these objects? Cheers! --------------------------- Olli Rajala - Lead TD Anima Vitae Ltd. www.anima.fi --------------------------- On Tue, May 14, 2024 at 9:41 AM Gregory Farnum <gfarnum@xxxxxxxxxx> wrote: > The cephfs-data-scan tools are built with the expectation that they'll > be run offline. Some portion of them could be run without damaging the > live filesystem (NOT all, and I'd have to dig in to check which is > which), but they will detect inconsistencies that don't really exist > (due to updates that are committed to the journal but not fully > flushed out to backing objects) and so I don't think it would do any > good. > -Greg > > On Mon, May 13, 2024 at 4:33 AM Olli Rajala <olli.rajala@xxxxxxxx> wrote: > > > > Hi, > > > > I suspect that I have some orphan objects on a data pool after quite > > haphazardly evicting and removing a cache pool after deleting 17TB of > files > > from cephfs. I have forward scrubbed the mds and the filesystem is in > clean > > state. > > > > This is a production system and I'm curious if it would be safe to > > run cephfs-data-scan scan_extents and scan_inodes while the fs is online? > > Does it help if I give a custom tag while forward scrubbing and then > > use --filter-tag on the backward scans? > > > > ...or is there some other way to check and cleanup orphans? > > > > tnx, > > --------------------------- > > Olli Rajala - Lead TD > > Anima Vitae Ltd. > > www.anima.fi > > --------------------------- > > _______________________________________________ > > 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