Re: NFS causing slooooow boot

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

 



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

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















--
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