Bug 221037 - [RFE] [PATCH] Wait for NFS server(s) to boot
Summary: [RFE] [PATCH] Wait for NFS server(s) to boot
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: F9Target
TreeView+ depends on / blocked
 
Reported: 2006-12-30 22:14 UTC by Pierre Ossman
Modified: 2014-03-17 03:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-14 14:25:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
nfswait (1.16 KB, text/plain)
2006-12-30 22:14 UTC, Pierre Ossman
no flags Details
nfswait.patch (2.01 KB, patch)
2007-05-08 15:06 UTC, Pierre Ossman
no flags Details | Diff

Description Pierre Ossman 2006-12-30 22:14:57 UTC
A common scenario for smaller installations is that all servers reside on the
same UPS. This poses a problem when power comes back and all machines boot at
the same time. The machines depending on the NFS server will try a mount, get a
"connection refused" back, and give up.

What I'd like is for the machines to patiently wait for the NFS server to come
up, then proceed with the startup.

This could of course be extended to other network file systems, but NFS is my
particular itch.

Comment 1 Pierre Ossman 2006-12-30 22:14:57 UTC
Created attachment 144586 [details]
nfswait

Comment 2 Pierre Ossman 2006-12-30 22:16:22 UTC
Ooops...

		if [ $[ $now - $start ] -gt 120 ]; then

should of course be

		if [ $[ $now - $start ] -gt $RETRANS ]; then


Comment 3 Bill Nottingham 2007-01-02 04:22:12 UTC
Hm, might be simpler to wire it into netfs rather than a separate script.

Comment 4 Pierre Ossman 2007-01-02 05:50:02 UTC
Perhaps. The advantage of a separate service is that you can easily turn the
function on and off. But a variable somewhere in sysconfig could also do that job.

Comment 5 Pierre Ossman 2007-03-09 20:45:07 UTC
Any comments on this or something more I'd need to do? Would be nice to have
this in standard FC.

Comment 6 Bill Nottingham 2007-04-16 23:08:13 UTC
I'd rather have a variable in sysconfig somewhere and do the wait in netfs itself.

Comment 7 Pierre Ossman 2007-05-08 15:06:39 UTC
Created attachment 154340 [details]
nfswait.patch

Sorry for taking so long.

How about this patch?

Comment 8 Bill Nottingham 2007-05-08 21:11:30 UTC
Aside from the logic seeming backwards (wait iff WAITFORNFS = "no"?), seems ok.
Will merge something along those lines post-F7.

Comment 9 Pierre Ossman 2007-05-09 05:40:09 UTC
The backwards logic is actually intentional. The idea is that the function is on
by default, and you turn it off via sysconfig.

Comment 10 Pierre Ossman 2007-11-14 09:53:25 UTC
Since we're now post-F8, I was hoping to see this feature. Any progress?

Comment 11 Pierre Ossman 2008-01-01 15:02:28 UTC
re-ping

Comment 12 Bill Nottingham 2008-01-07 19:35:50 UTC
Putting on tracker. Sorry about the delay.

Comment 13 Jon Stanley 2008-04-23 20:29:01 UTC
Adding FutureFeature keyword to RFE's.

Comment 14 Lukáš Nykrýn 2013-03-14 14:25:54 UTC
Initscripts no longer handle this -> close.


Note You need to log in before you can comment on or make changes to this bug.