hi there,

while debugging metadata servers reporting slow requests, we took a stab
at pinning directories of a cephfs like so:

setfattr -n ceph.dir.pin -v 1 /tubfs/kubernetes/
setfattr -n ceph.dir.pin -v 0 /tubfs/profiles/
setfattr -n ceph.dir.pin -v 0 /tubfs/homes

on the active mds for rank 0, we can see all pinnings like expected:

ceph daemon /var/run/[rank0].asok get subtrees | jq -c
'.[]|select(.dir.path|contains("/"))|[.dir.path, .export_pin, .auth_first]'
["/kubernetes",1,1]
["/homes",0,0]
["/profiles",0,0]

while the active mds for rank 1 reports back its own pinnings only:

ceph daemon /var/run/[rank1].asok get subtrees | jq -c
'.[]|select(.dir.path|contains("/"))|[.dir.path, .export_pin, .auth_first]'
["/kubernetes",1,1]
["/.ctdb",-1,1]

is this to be expected? anecdotical data indicate that the pinning does
work as intended.

thank you very much & with kind regards,
thoralf.

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to