Bug 1231171 - [RFE]- How to find total number of glusterfs client mounts?
Summary: [RFE]- How to find total number of glusterfs client mounts?
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: mainline
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On: 1231175 1231202 1231207
Blocks: 1408949 RHGS-usability-bug-GSS
TreeView+ depends on / blocked
 
Reported: 2015-06-12 10:34 UTC by Bipin Kunal
Modified: 2019-05-07 21:06 UTC (History)
8 users (show)

Fixed In Version: glusterfs-6.x
Clone Of:
: 1231175 (view as bug list)
Environment:
Last Closed: 2019-05-07 21:06:13 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1231202 0 unspecified CLOSED [RFE]- How to find total number of glusterfs nfs client mounts? 2021-02-22 00:41:40 UTC

Internal Links: 1231202

Description Bipin Kunal 2015-06-12 10:34:25 UTC
Description of problem:

We should be able to find total number of glusterfs client mounts from server nodes. It should list all the clients : fuse, nfs and samba client.


http://www.gluster.org/pipermail/gluster-devel/2015-June/045462.html

On Wednesday 03 June 2015 09:13 AM, Pranith Kumar Karampuri wrote:
>
>
> On 06/01/2015 11:07 AM, Bipin Kunal wrote:
> > Hi All,
> >
> >   Is there a way to find total number of gluster mounts?
> >
> >   If not, what would be the complexity for this RFE?
> >
> >   As far as I understand finding the number of fuse mount should be
> > possible but seems unfeasible for nfs and samba mounts.
> True. Bricks have connections from each of the clients. Each of
> fuse/nfs/glustershd/quotad/glfsapi-based-clients(samba/glfsheal) would
> have separate client-context set on the bricks. So We can get this
> information. But like you said I am not sure how it can be done in nfs
> server/samba. Adding more people.

Depends on why you would want to know about the clients:

1. For most of the use cases, admin might just need to know how many
Samba/NFS servers are currently using the given volume(Say just to perform umount everywhere).
In this case, each Samba/NFS server is just like a FUSE mount and we can use the same
technique that we would use for the above case that Pranith has mentioned.

2. If the requirement is to identify all the machines which are accessing a volume,
(probable use case:- you may want a end-user to close a file etc)
above method won't be sufficient. To get details of SMB clients, you would have to
run 'smbstatus' command on all SMB server nodes and it would output details of
connected SMB clients in this format.
PID     Username      Group         Machine            Protocol Version     Service      pid     machine       Connected at

Thanks,
Raghavendra Talur
>
> Pranith
> >
> >   Please let me know your precious thoughts on this.
> >
> > Thanks,
> > Bipin Kunal

Comment 1 Bipin Kunal 2015-06-15 08:01:30 UTC
Reply from Niels from nfs point of view:
http://www.gluster.org/pipermail/gluster-devel/2015-June/045640.html

Comment 2 Atin Mukherjee 2018-10-07 13:32:54 UTC
gluster v status <volname/all> client-list is already in place to get that feature now.


Note You need to log in before you can comment on or make changes to this bug.