Re: NFS causing slooooow boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



R. G. Newbury wrote:
On Wed, 30 Sep 2009 11:33:00 -0700
Rick Stevens wrote:

> There is.  Read below.

As I point out in another reply, there really isn't any such
option. The "bg" option insists on waiting around to timeout
once before it is willing to background the operation.


There may be a way around this.

Comment out the nfs mount lines in fstab.
Boot will proceed using only the local mounts.

Write a small script file which contains the
command line versions of required 'mount' lines.

Call this script at the end of /etc/rc.d/rc.local with a '&' in the call line

Other thoughts: Using 'noauto' allows all of the mount info to reside in fstab and be used by the script, so it only needs to know the mount points, providers are all in fstab. Use of automount daemon comes to mind, don't bother with the mount unless you need it, then do it on demand. I would regard that as optimal if there are times when the data are not needed.

The nfs call will run in background and will not return until nfs has timed out, but it will be backgrounded throughout, and other boot processes (loading X, etc) will continue.

You can test this with a script file containing: 'date', 'mount -a', 'date', and changing your /etc/fstab to attempt to NFS mount from a computer which does not exist (ie, mung the hostname of one of your existing machines). You will see from the output that it will take the full minute to return.
Geoff

















--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux