Discussion:
[ceph-users] get cephfs mounting clients' infomation
Zhenshi Zhou
2018-11-19 06:40:18 UTC
Permalink
Hi,

I have a cluster providing cephfs and it looks well. But as times
goes by, more and more clients use it. I wanna write a script
for getting the clients' informations so that I can keep everything
in good order.

I google a lot but dont find any solution which I can get clients
information. Is there a way for me to get statistics, such as clients'
IP or mounting point and etc, so that I can deal with it.

Thanks.
Yan, Zheng
2018-11-19 06:50:31 UTC
Permalink
'ceph daemon mds.xx session ls'
Post by Zhenshi Zhou
Hi,
I have a cluster providing cephfs and it looks well. But as times
goes by, more and more clients use it. I wanna write a script
for getting the clients' informations so that I can keep everything
in good order.
I google a lot but dont find any solution which I can get clients
information. Is there a way for me to get statistics, such as clients'
IP or mounting point and etc, so that I can deal with it.
Thanks.
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Zhenshi Zhou
2018-11-19 07:07:03 UTC
Permalink
Many thanks Yan!

This command can get IP, hostname, mounting point and kernel version. All
of these data are exactly what I need.
Besides, is there a way I can get the sub directory's usage other than the
whole
cephfs usage from the server. For instance, I have /docker, /kvm, /backup,
etc.
I wanna know how much space is taken up by each of them.

Thanks.
Post by Yan, Zheng
'ceph daemon mds.xx session ls'
Post by Zhenshi Zhou
Hi,
I have a cluster providing cephfs and it looks well. But as times
goes by, more and more clients use it. I wanna write a script
for getting the clients' informations so that I can keep everything
in good order.
I google a lot but dont find any solution which I can get clients
information. Is there a way for me to get statistics, such as clients'
IP or mounting point and etc, so that I can deal with it.
Thanks.
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Yan, Zheng
2018-11-19 07:08:30 UTC
Permalink
Post by Zhenshi Zhou
Many thanks Yan!
This command can get IP, hostname, mounting point and kernel version. All
of these data are exactly what I need.
Besides, is there a way I can get the sub directory's usage other than the whole
cephfs usage from the server. For instance, I have /docker, /kvm, /backup, etc.
I wanna know how much space is taken up by each of them.
'getfattr -d -m - sub-dir'
Post by Zhenshi Zhou
Thanks.
Post by Yan, Zheng
'ceph daemon mds.xx session ls'
Post by Zhenshi Zhou
Hi,
I have a cluster providing cephfs and it looks well. But as times
goes by, more and more clients use it. I wanna write a script
for getting the clients' informations so that I can keep everything
in good order.
I google a lot but dont find any solution which I can get clients
information. Is there a way for me to get statistics, such as clients'
IP or mounting point and etc, so that I can deal with it.
Thanks.
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Zhenshi Zhou
2018-11-19 08:06:40 UTC
Permalink
Hi Yan,

I can get the usage of sub dirctory on the client side. Is there a way I
can get
it from the server?

Thanks.
Post by Zhenshi Zhou
Post by Zhenshi Zhou
Many thanks Yan!
This command can get IP, hostname, mounting point and kernel version. All
of these data are exactly what I need.
Besides, is there a way I can get the sub directory's usage other than
the whole
Post by Zhenshi Zhou
cephfs usage from the server. For instance, I have /docker, /kvm,
/backup, etc.
Post by Zhenshi Zhou
I wanna know how much space is taken up by each of them.
'getfattr -d -m - sub-dir'
Post by Zhenshi Zhou
Thanks.
Post by Yan, Zheng
'ceph daemon mds.xx session ls'
Post by Zhenshi Zhou
Hi,
I have a cluster providing cephfs and it looks well. But as times
goes by, more and more clients use it. I wanna write a script
for getting the clients' informations so that I can keep everything
in good order.
I google a lot but dont find any solution which I can get clients
information. Is there a way for me to get statistics, such as clients'
IP or mounting point and etc, so that I can deal with it.
Thanks.
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Loading...