Hi,

fin out the inode number, identify from the data pool all the object that 
belong to this inode and then run the ceph osd map {pool} {objectname} for each 
of them and this will tell you about all the PGs your inode objects are located 
in.

printf '%x\n' $(stat -c %i {filepath})
10000000000
rados -p {data-pool} ls | grep {hex-inode}
10000000000.00000000
ceph osd map {data-pool} 10000000000.00000000
... '10000000000.00000000' -> pg 3.f0b56f30 (3.30) -> up ([1,2], p1) ...

Bold and undeline is your PG.
Regards
JC

> On Aug 20, 2019, at 13:32, Fyodor Ustinov <u...@ufm.su> wrote:
> 
> Hi!
> 
> How to find out in which pg's located file on cephfs?
> 
> WBR,
>    Fyodor.
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to