Re: Obtaining cephfs client address/id from the host that mounted it

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

 



On Fri, Feb 9, 2018 at 12:05 PM, Mauricio Garavaglia
<mauriciogaravaglia@xxxxxxxxx> 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@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