1831225 Members
2778 Online
110021 Solutions
New Discussion

Re: NFS enh automounter

 
Peter Lachnitt
Advisor

NFS enh automounter

Hello,

I hav a problem with the automounter.
In case a NFS-Server is temporaly not aviable (8 Min.)The automounter give up gives up after 15 sec. to mount the requestet filesystem. How can I expand the timeout to retry the mount?
Configs:
- /etc/auto_master
/home /etc/auto_home -rw,hard,intr,quota,retry=5

- /etc/rc.config.d/nfsconf
AUTOFS=1
AUTOMOUNT_OPTIONS="-f $AUTO_MASTER -t 300"
AUTOMOUNTD_OPTIONS="-n"

- SW-Version Automounter
ENHAUTOFS B.11.11.01

Thanks

Peter
Peter Lachnitt
8 REPLIES 8
Enrico P.
Honored Contributor

Re: NFS enh automounter

Hi,
I think you need to increase the retrans=n value (default is 5).

- /etc/auto_master
/home /etc/auto_home -rw,hard,intr,quota,retry=5,retrans=n

See the man mount_nfs at the session "Background vs. Foreground" for clearify

Enrico
Jannik
Honored Contributor

Re: NFS enh automounter

Hey Peter try to change the -t 300 to -d a try it again.
As fare as i can seen the -t option is for mount_nfs and the -d option:

-d
Turn off the dynamic retransmit timeout estimator. This may be useful for UDP mounts that exhibit high retry rates, since it is possible that the dynamically estimated timeout interval is too short.

You could change the -t value to something else...
jaton
Enrico P.
Honored Contributor

Re: NFS enh automounter

Hi,
see http://docs.hp.com/en/B1031-90043/ch02s03.html
also for the timeo option.
It seem the good solution for you.

The -t option Specify a duration, in seconds, that a file system is to remain mounted when not in use and it is not for the situation which the server is down.

Enrico
Peter Lachnitt
Advisor

Re: NFS enh automounter

Hi,

now I tried this options in /etc/auto_master:
ro,hard,intr,quota,retry=5,retrans=20,timeo=20
then stop/start the nfs.client
But it is still the same, the automounter trys only 30 sec. to mount.

root # time cd /inaetc/httpd
/usr/bin/cd[7]: /inaetc/httpd: Permission denied.

real 30.0
user 0.0
sys 0.0
Peter Lachnitt
Enrico P.
Honored Contributor

Re: NFS enh automounter

Hi,
did you have restart the automount daemon for reload the master file configuration?

Run the automount command, also you need umount e remount the nfs filesystem

Enrico
Peter Lachnitt
Advisor

Re: NFS enh automounter

Hi Enrico,

yes I do that.

umount /inaetc/httpd

/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start

Regards Peter
Peter Lachnitt
Enrico P.
Honored Contributor

Re: NFS enh automounter

Hi,
you don' t need to restart the nfs client after a auto_master file modify, you only need to reload the automountd daemon with the "automount" command and probably to umount/mount the nfs filesystem.

Enrico
Peter Lachnitt
Advisor

Re: NFS enh automounter

Thanks Enrico & Jannik,

I found my failure.
In the /etc/auto_master the option retry=5 was set, but in the /etc/auto_inaetc I this option was ignorred because I set only the option -ro.
Fault auto_inaetc:
httpd -ro hp00000:/mnt11

Right:
httpd -ro,retry=5 hp00000:/mnt11

Regards Peter
Peter Lachnitt