boot problem: NFS mounts before name server
Hi all, I have a small network where one machine runs a DHCP and a name server. This machine is also supposed to NFS mount certain directories from other machines in the network. There are appropriate entries for that in /etc/fstab. When I boot the machine, it tries to mount the NFS directories before the name server is started, so it can't resolve the names for the NFS servers and fails. Once the machine is up and running, I can do /etc/init.d/nfs restart, which will work. However, I would like to avoid that extra step. Any hints? Can I change the startup order of the name server and NFS client? Any drawbacks to this? How would I do it? Any other solution? Thanks for your help, Benjamin
On Mon, 2005-02-07 at 11:45, Benjamin Hornberger wrote:
Hi all,
I have a small network where one machine runs a DHCP and a name server. This machine is also supposed to NFS mount certain directories from other machines in the network. There are appropriate entries for that in /etc/fstab. When I boot the machine, it tries to mount the NFS directories before the name server is started, so it can't resolve the names for the NFS servers and fails. Once the machine is up and running, I can do /etc/init.d/nfs restart, which will work. However, I would like to avoid that extra step.
Any hints? Can I change the startup order of the name server and NFS client? Any drawbacks to this? How would I do it? Any other solution?
Thanks for your help, Benjamin
One possible way is to edit the /etc/init.d/nfs startup file and change the line: # Required-Start: $network $portmap to: # Required-Start: $network $portmap $named That should rearrange the start sequence and have named start before nfs starts. Any changes made may be over written by updates. YMMV. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 * Only reply to the list please* "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
On Monday 07 February 2005 18:45, Benjamin Hornberger wrote:
Hi all,
I have a small network where one machine runs a DHCP and a name server. This machine is also supposed to NFS mount certain directories from other machines in the network. There are appropriate entries for that in /etc/fstab. When I boot the machine, it tries to mount the NFS directories before the name server is started, so it can't resolve the names for the NFS servers and fails. Once the machine is up and running, I can do /etc/init.d/nfs restart, which will work. However, I would like to avoid that extra step.
I am running 9.1 with a similar configuration and have no problem. Try the following : There is an option '_netdev' that you can specify in /etc/fstab which makes the mount process only try to mount the disc after the network is ready. (Type 'man mount' to see the details). Additionally, there is an option in /etc/fstab for nfs, 'bg' that makes the mount process go into the background and retry until successful. If this does not work, then try the 'noauto' option and manually mount the drives from a script after the boot process Regards Paul -- Paul Hewlett (Linux #359543) Email:`echo az.oc.evitcaten@ttelweh | rev` Tel: +27 21 852 8812 Cel: +27 72 719 2725 Fax: +27 86 672 0563 --
participants (3)
-
Benjamin Hornberger
-
Ken Schneider
-
Paul Hewlett