On Fri, Feb 9, 2018 at 12:05 PM, Mauricio Garavaglia
<mauriciogaravag...@gmail.com> wrote:
> Hello,
> Is it possible to get the cephfs client id/address in the host that mounted
> it, in the same way we can get the address on rbd mapped volumes looking at
> /sys/bus/rbd/devices/*/client_addr?

Assuming you're talking about the kernel client, you can get the
client's ID like this:
cat 
/sys/kernel/debug/ceph/4a9a218d-e299-4a9c-bf7d-4e2efc6ff807.client3180438/mds_sessions
global_id 3180438
name "admin"
mds.0 open

However, you can generally manage clients quite easily without knowing
the ID from the client side, because cephfs clients have metadata
including the hostname etc (see "ceph tell mds.0 session ls").

John




>
> Thanks
>
>
> _______________________________________________
> 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