Getting NFS clients to retry mount if NFS server down when client boots
- by z0mbix
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