We’re working on moving from an old Netapp to a new Netapp. Before doing so, we need to make sure that no systems have any mount points on the old filer still mounted.
On a regular/unix nfs server, you would login to the box and run “showmount -a” which queries the mount daemon. The netapp systems don’t offer the showmount command though.
I found a mailing list article that explained you can run “showmount -a XYZ” where XYZ is the hostname/ip of your netapp filer.
roadrunner:~ # showmount -a 172.16.2.6 All mount points on 172.16.2.6: 10.1.112.17:/vol/root 172.16.13.16:/vol/space/offsite.backup 172.16.13.18:/vol/space/offsite.backup 172.16.13.5:/vol/space/db.preprod 172.16.13.5:/vol/space/offsite.backup 172.16.13.7:/vol/space/offsite.backup 172.16.23.1:/vol/space/endeca.preprod 172.16.23.6:/vol/space/db.preprod 172.16.23.6:/vol/space/offsite.backup 172.16.3.6:/vol/root mailhost:/vol/space/imagemgr roadrunner:~ #
Now I know what hosts I need to check before deprovisioning this Netapp.
Update: From the article, I missed the caveat. NFS is stateless, so some unix hosts could still have the system mounted, but not actively use the mount.
As suggested, I turned the nfs.per_client_stats.enable bit on, and now I’ll just wait and see who is actively using the Netapp.
netapp> options nfs [...] nfs.netgroup.strict off nfs.per_client_stats.enable off nfs.require_valid_mapped_uid off [...] netapp> options nfs.per_client_stats.enable on netapp> nfsstat -l 172.16.2.2 <hostname unknown> NFSOPS = 6 ( 0%) 172.16.3.2 mailhost NFSOPS = 8 ( 0%) netapp>