You can list the objects in the pool and get their parent xattr, from there, 
decode that attribute and see its location in the tree. Only the objects with 
an all 0 suffix after the . should have a parent attribute.

This came from the mailing list some time ago:
rados --pool $pool_name getxattr  $object_name parent | ceph-dencoder type 
inode_backtrace_t import - decode dump_json

As for the rest, I don't know how ceph reacts to expected but missing data in 
the data pools.

--
Adam

________________________________________
From: Vladimir Brik <vladimir.b...@icecube.wisc.edu>
Sent: Thursday, July 21, 2022 8:54
To: ceph-users
Subject: [ceph-users] Identifying files residing in a cephfs data pool

This email originated from outside of K-State.


Hello

I would like to remove one of the data pools of my cephfs
filesystem, but after deleting all the files I thought were
stored in that pool, the pool still has about 1k objects.

Is there a way to identify which files are stored in that
pool? (so I can delete them)

What will happen if I rm_data_pool with objects from cephfs?
Will I just get an i/o error accessing those files or will
it lead to bigger problems?


I would appreciate any help with this

Vlad
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to