[Bugs] [Bug 1231175] New: [RFE]- How to find total number of glusterfs samba client mounts?

bugzilla at redhat.com bugzilla at redhat.com
Fri Jun 12 10:38:44 UTC 2015


            Bug ID: 1231175
           Summary: [RFE]- How to find total number of glusterfs samba
                    client mounts?
           Product: GlusterFS
           Version: mainline
         Component: gluster-smb
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: bkunal at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com
        Depends On: 1231171

+++ This bug was initially created as a clone of Bug #1231171 +++

Description of problem:

We should be able to find total number of glusterfs samba client mounts from
server nodes. It should list all the  samba client.


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
(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
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

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

Referenced Bugs:

[Bug 1231171] [RFE]- How to find total number of glusterfs client mounts?
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

More information about the Bugs mailing list