Getting NFS clients to retry mount if NFS server down when client boots

Posted by z0mbix on Server Fault See other posts from Server Fault or by z0mbix
Published on 2009-11-02T10:36:49Z Indexed on 2010/05/24 14:32 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

I have an NFS server that several clients mount. I am using the following in my /etc/exports on the server:

/content                *(rw,no_root_squash)

and on the clients in my /etc/fstab I have:

content.prd.domain.tld:/content /content         nfs     rw,hard,intr    0 0

If the clients boot while the NFS server is down, the share does not get mounted. I read in the NFS man page that the retry defaults should handle this:

retry=n The number of minutes to retry an NFS mount operation in the foreground or background before giving up. The default value for forground mounts is 2 minutes. The default value for background mounts is 10000 minutes, which is roughly one week.

I have tested this, but it doesn't appear to work. Am I missing something?

All servers are RHEL 5.4.

Cheers z0mbix

© Server Fault or respective owner

Related posts about redhat

Related posts about boot