1748181 Members
3551 Online
108759 Solutions
New Discussion юеВ

Re: NFS mounting

 
Mike Burk
Advisor

NFS mounting

How can I set up my NFS clients to continue to boot if the NFS server is not alive. I have set the mounts as "soft" and it will eventually finish booting but it takes 20 minutes. If the server is alive it only takes 3 minutes to boot? I would like the client to try for 30 seconds and then go on.

Thanks,

Mike
7 REPLIES 7
Mark Vollmers
Esteemed Contributor

Re: NFS mounting

Mike-

I've wondered about the same thing, but I havn't really had time to play with it. I suppose that in the rc script where it mounts, you could add your own conditions, something that would be like

if successful contact with server then run mount command else skip

I'm sure that someone out there probably has it written already. Myself, I'm not sure how to do the check for positive connection. step in the right direction, I guess.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Pete Randall
Outstanding Contributor

Re: NFS mounting

Mike,

I used to have this problem back in the 10.20 days. I now use hard mounts in 11.0 and 11.i and don't have the problem. Perhaps you need to get current on NFS and/or patches.

Good luck,
Pete

Pete
S.K. Chan
Honored Contributor

Re: NFS mounting

I think you can use the "timeo" option in your fstab file. A default for soft NFS TCP mount is ..
timeo=600
i.e 60 secs. However I have not try this before, so couldn't comment much.
Sachin Patel
Honored Contributor

Re: NFS mounting

Hi Mike,
With timeo you can use retrans and retry for faster recovery.

if you only have timeo then
timeo=600 = 60 seconds then if it can't mount then it will try 120 second then 240second then 480second then it will timeout. that is because value of retrans is 4 so it is retransmitting 4 times
Also you can specity retry option the default is 1.

Sachin
Is photography a hobby or another way to spend $
BSSG
Frequent Advisor

Re: NFS mounting

Try putting a "retry={some number} in your /etc/auto_master file. It should tell it to stop after so many minutes of trying. Couldn't hurt.
sven verhaegen
Respected Contributor

Re: NFS mounting

depending on what causes you issue there are limited ways to get around it , if the server is just slow to reply , you could play with the retrans values , if however the server is down the simplest is to use soft mounting option it will timeout on a mount request after a while (limited time), for sure DO NOT USE 'timeo' in udp environments , this parameter in a UDP environment isn't advised to be used at all and I can tell becuase I've seen some problems with it before , you can use it effectively in a NFS TCP environment as there it's functionality does become effective
...knowing one ignores a greath many things is the first step to wisdom...