Re: file location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <ufm@xxxxxx> wrote:

Hi!

How to find out in which pg's located file on cephfs?

WBR,
   Fyodor.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

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

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux