Mailinglist Archive: opensuse (1461 mails)

< Previous Next >
Re: [opensuse] Mounting NFS Shares During Boot
On Sat, 2009-05-16 at 16:45 +0200, Anders Johansson wrote:
On Saturday 16 May 2009 16:29:42 Randall R Schulz wrote:
From the header of /etc/init.d/nfs:

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $network $portmap
# Required-Stop: $network $portmap
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: NFS client services
# Description: All necessary services for NFS clients
### END INIT INFO


I believe that's meant to keep nfs from running until the network and
the port mapper are initialized.

The portmapper (or in 11.1 rpcbind) listens to "all available interfaces".
This means it can start even if only localhost is up.

Unless you added your network interface to MANDATORY_DEVICES in
/etc/sysconfig/network/config, either by editing the config file directly or
by setting the interface as mandatory in YaST, the startup script is not
going
to wait for it, it will allow it to initialize in the background.

1)
hence my previous suggestion to raise
WAIT_FOR_INTERFACES="20" to 120
in/etc/sysconfig/network/config.
Then it will bg after 120 seconds, instead of 20.

2)
It might also be educational to make a little command that does a ping
command, just before the nfs-client is started.
If icmp fails, no point in trying anything else

3)
Perhaps also trying to use the ip-address instead of the name...
(problems at that early moment with name-resolving?)
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups