Operating System - HP-UX
1834533 Members
2642 Online
110069 Solutions
New Discussion

Re: NFS - keep losing mount

 
Adam Noble
Super Advisor

NFS - keep losing mount

Hi all,

We have an SAP serviceguard environment where we use hanfs and AUTOFS to mount certain filesystems using NFS. On the application server this all works fine initially. /usr/sap/trans is mounted from the package ip but the problem we are having is that the mount keeps dissapearing. Now I appreciate with AUTOFS u have to go intot the filesystem before it is visible however I am not able to do this. If I manually mount the filesystem again all is fine. Is there any sort of timeout if the mountpoint is not accessed for a certain period of time?

Cheers
7 REPLIES 7
Peter Nikitka
Honored Contributor

Re: NFS - keep losing mount

Hi,

that's one of the purposes of the automounter: Mount a filesystem when it is needed, umount it after some period of inactivity.
You should not interfere with the automounter in manually mounting filesystems, which normally are managed by the automouter!

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Adam Noble
Super Advisor

Re: NFS - keep losing mount

Yeh I appreciate this but the point being when the application goes to use that area and its not there and u get permission denied it fails. Thing is as soon as I manually mount all is fine!!!
Steven E. Protter
Exalted Contributor

Re: NFS - keep losing mount

Shalom,

The cause of most problems with automounter or even hard coded mounts going stale is a network problem of some kind.

Logs such as /var/adm/syslog/syslog.log need to be analyzed and the source of the problem needs to be found. Logs should be checked first on the client and then the server at the time stamp of the loss of service.

This is an investigatory process and there are no short cuts or magic tricks to find the cause here.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Adam Noble
Super Advisor

Re: NFS - keep losing mount

shalom indeed. I do not believe the mount is going stale. I am just wondering if an automounted filesystem does not get accessed for a period of time does it need re-mounting.
TwoProc
Honored Contributor

Re: NFS - keep losing mount

Adam, for what it's worth - I've had similar troubles in the past, and had to change those mounts to be hard coded. I just didn't have solid results with the automounter. It was rare that it failed me, but to alleviate the occasional pain, I just made the mounts permanent. I hated to do that, and fought the good fight for a couple of years - b/c to me the automounter just made more sense, that is, only to mount when needed.
We are the people our parents warned us about --Jimmy Buffett
Dave Olker
Neighborhood Moderator

Re: NFS - keep losing mount

Hi Adam,

Some background first - what OS are these systems running? Which Automounter/AutoFS are they running?

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
Adam Noble
Super Advisor

Re: NFS - keep losing mount

well I found the problem. I really am a fool at times. My issue was a one letter typo in my autodirect file. Therefore when the mount effectively timed out when I went to access it I'd get permission denied because the automount was set incorrectly. Human error I'm afraid!!!!