Operating System - HP-UX
1829453 Members
725 Online
109992 Solutions
New Discussion

Multiple Identical NFS mounts of same filesystem

 
SOLVED
Go to solution
Stephen Stephanian
Occasional Advisor

Multiple Identical NFS mounts of same filesystem

In looking at list of mounted filesystems, I'm seeing the same NFS filesystems mounted to the same mount point multiple times, eg:

servera:/appl/data/fs1 mounted as /appl/data/fs1 - in one case, 28 times. fstab entry shows one "mount" for this system, ro, soft.

Any ideas why this is happening, and is it a bad thing? Running HPUX 11.11; Looking at /etc/rc.config.d/nfsconf, also note that we're NOT using AutoFS, but old automount.

8 REPLIES 8
Dave Olker
Neighborhood Moderator

Re: Multiple Identical NFS mounts of same filesystem

Hi Steve,

That should not be happening and the only reason I can imagine would be a bug in HP-UX to allow it. Once a filesystem is mounted at the VFS (Virtual File System) layer, there should not be a way for another filesystem to occupy the same area of the VFS.

At this point it's not clear if this is one filesystem being represented 28 times or 28 separate filesystems. In either case it's bad.

One suggestion that I make to every HP-UX customer running the old legacy automounter is to migrate to AutoFS. Since you're running 11.11, you can download the Enhanced AutoFS product from the Software Depot site: http://software.hp.com. This is a vastly improved automounter than the legacy one you're using. You can still do all the same things the dinosaur old automounter can do but it has the benefit of a much newer source code base, a much more supportable implementation, thousands of fewer bugs, etc.

My recommendation would be to install the Enhanced AutoFS product and see if that resolves your problem.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Patrick Wallek
Honored Contributor

Re: Multiple Identical NFS mounts of same filesystem

How are you looking at the list of mounted filesystems?

Stephen Stephanian
Occasional Advisor

Re: Multiple Identical NFS mounts of same filesystem

Thanks for the quick response....and looking further, sorry for any confusion.

Patrick, I'm actually using a script you modified that I got here at the forum; (bdfmegs? I think I renamed it) looking a little further, now, perhaps there's a bug? df -k with grep for filesystem comes up with 1 line; ditto cat/grep of /etc/mnttab. I have many NFS mounts, most show up multiple times in output but not consistently same number, most 1 - 4 times.

Dave, I have your book "Optimizing NFS performance", which led me down the automount/autofs path; will definitely look into changing over; thanks.
Patrick Wallek
Honored Contributor
Solution

Re: Multiple Identical NFS mounts of same filesystem

Ahh....Yes, there is a bug in that script. It has definite issues when dealing with NFS mounts. That script was originally posted by Bill Hassell, I believe. I remember a post from a few weeks ago where someone else spotted that bug and Bill is aware of it. I am not sure if it is fixed or not.
Patrick Wallek
Honored Contributor

Re: Multiple Identical NFS mounts of same filesystem

Attached is a modified version of bdfmegs that I just modified to fix the NFS mount issue.
Patrick Wallek
Honored Contributor

Re: Multiple Identical NFS mounts of same filesystem

Attached here is the fixed version that I modified to display the output in GB instead of MB.
Stephen Stephanian
Occasional Advisor

Re: Multiple Identical NFS mounts of same filesystem

Thank you!
Stephen Stephanian
Occasional Advisor

Re: Multiple Identical NFS mounts of same filesystem

Revised script fixes problem; AutoFS question answered.