The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Network and Storage Protocols

NFS: Finding mounted host information

baijulal

Hi All,

A NAS qtree is exported to all hosts in a NFS environment (this is an exception, as exports are done to specific hosts usually) with 1000s of linux hosts.

Qtree is reporting NFS activity and we need to find the hosts and unmount on all of them to decommission this NAS mount.

Could you suggest any method to identify the hosts mounting the NFS share  (IP/hostname) from ONTAP?

Thanking you,

BL.

2 REPLIES 2

rwelshman

You can get some info via netstat -a (on the filer) and showmount -a (from a linux server on the network), but it may not be 100%. But it might be close enough to help narrow down the possibilities.

billshaffer

This has been asked several times before, but I don't think there has ever been a good method.

You can turn on nfs.mountd.trace, but then you'd have to wait for a remount, and filter out all the other volumes.

You can turn on nfs.per_client_stats.enable, use nfsstat to list all NFS clients, and filter out hosts that appear elsewhere in the NFS exports, though this assumes there are no duplicates, which is unlikely.

Ideally, with that many hosts, there should be some sort of management (or at least shared ssh keys) that would let you check each one's mount tabs - though there you're assuming it's not dynamically mounted in a script or something.

Good luck!

Bill

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public