Bug 1231202
Summary: | [RFE]- How to find total number of glusterfs nfs client mounts? | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Bipin Kunal <bkunal> |
Component: | nfs | Assignee: | bugs <bugs> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | mainline | CC: | bkunal, bugs, ndevos, sasundar, vbellur |
Target Milestone: | --- | Keywords: | RFE, Triaged |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1231175 | Environment: | |
Last Closed: | 2018-11-19 05:20:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1231171 |
Description
Bipin Kunal
2015-06-12 11:40:07 UTC
Reply from Niels from nfs point of view: http://www.gluster.org/pipermail/gluster-devel/2015-June/045640.html Gluster/NFS supports the 'showmount' command (over the MOUNT RPC protocol). It can be used to list all the NFS-clients that have a volume/subdir mounted. This list should not be 100% trusted though. NFSv3 uses the MOUNT RPC protocol to get the file-handle for the mountpoint. After that, the NFSv3 protocol can use the export until it wants to. When the NFS-client unmounts the export, it sends the UMNT procedure to the NFS-server what causes the NFS-client/export combination to be removed from the client-list (showmount output). A client that does not send a UMNT, will not be removed from the list of active clients. This can happen when a client does a umount during network issues, or a client spontaneously reboots (or kernel panic or ..). Very similar are clients that mount the exact same export/subdir in multiple mountpoints. The NFS-server can not differentiate between a client that did not set a UMNT, or a client that mounts the same export/subdir more than once. These clients will only be listed once. HTH, Niels Does comment #1 not provide a solution for you? Niels, Ya that do provide me a solution. But showmount will list all the nfs mount irrespective of gluster volume mount. We can use "showmount" output and display only the gluster mount information. I have opened this bug as a child bug of https://bugzilla.redhat.com/show_bug.cgi?id=1231171. BZ: 1231171 addresses a tool which will list all the gluster mounts (In reply to Bipin Kunal from comment #3) > Ya that do provide me a solution. But showmount will list all the nfs mount > irrespective of gluster volume mount. We can use "showmount" output and > display only the gluster mount information. It is not really clear to me what the expected result is if this bug. You can use 'showmount' to display which NFS-clients mounted a volume/subdir. Is there anything else needed? Note that you can set nfs.rmtab to a file on a Gluster/FUSE mountpoint. In that case, you can do a 'showmount' against one Gluster server, and all the clients from all servers will be listed. This comes with a performance cost while mounting, though. Mount-storms can get delayed quite a bit due to that option (Try to boot a whole HPC-cluster with hundreds of clients at once, mounting will get serialized.) Migrated to github: https://github.com/gluster/glusterfs/issues/566 Please follow the github issue for further updates on this bug. |