[SOLVED] NFS mount in fstab: howto retry if server is down
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When cold starting an sever and its clients, it seems that the clients don't retry the mount if the server is still down (or the nfs server process has not started yet) when they boot. In the client fstab I have:
retry=n The number of minutes to retry an NFS mount operation in
the foreground or background before giving up. The
default value is 10000 minutes, which is roughly one
week.
retry=n The number of minutes to retry an NFS mount operation in
the foreground or background before giving up. The
default value is 10000 minutes, which is roughly one
week.
Cheers,
Josh
Yeah, I saw that before, but the default of 10000 minutes seems super reasonable. We're talking a question of minutes here. Just to double-check that the ubuntu configuration did not use some other default I added retry=1000 to the options. It made no difference though.
Well, it seems, as far as I can tell, that just about every linux distribution out there is fundamentally broken w.r.t. handling boot time nfs mounts ;-)
In any case, a work around is presented in https://bugs.launchpad.net/ubuntu/+s...l/+bug/836533/ . I skipped the upstart bit, and just made my /etc/rc.local call the ensure-nfs-mounted script attached to that issue.
Oh ok, that works then. And sorry, I didn't see the notification for your thread. I am subscribed to a LOT of threads on these forums.... But anyways, glad to see you got it working. Mark your thread as solved if you can, thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.