You are not logged in.

#1 2012-09-03 08:59:11

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

NFS mount fails at boot; netcfg needs to wait for dhcp lease?

I have a feeling this should have been already asked, but my Googlefu is not giving me anything.

My NFS mounts fail to mount at boot; I suspect because I haven't obtained my DHCP lease before 'netfs' daemon is run. Is there a way I can make netcfg wait for the lease before returning for boot to continue with the rest of the daemons (including netfs)?

My DAEMONS:

DAEMONS=( @syslog-ng net-profiles iptables rpcbind netfs @crond @sshd dbus @mpd @xinetd @sensors @smartd @mdadm ptal-init @cupsd @ntpd)

The NFS shares mount fine after boot by issuing `mount -a`

Offline

#2 2012-09-03 12:47:32

solamir
Member
From: Yaroslavl, Russia
Registered: 2012-09-02
Posts: 26
Website

Re: NFS mount fails at boot; netcfg needs to wait for dhcp lease?

nfs-common?

Offline

#3 2012-09-03 23:22:00

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: NFS mount fails at boot; netcfg needs to wait for dhcp lease?

Ooops.

Why do they mount fine after boot though? I don't manually start nfs-common.

Offline

#4 2012-09-04 09:19:34

solamir
Member
From: Yaroslavl, Russia
Registered: 2012-09-02
Posts: 26
Website

Re: NFS mount fails at boot; netcfg needs to wait for dhcp lease?

It doesn't need to use daemons for manual mount nfs directories. I think kernel's module  kernel/fs/nfs/nfs.ko.gz perfoms the client function.

About year ago you could write only one daemon nfs-common. Rpcbind is started as dependence.

Last edited by solamir (2012-09-04 10:21:05)

Offline

#5 2012-09-04 09:46:42

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: NFS mount fails at boot; netcfg needs to wait for dhcp lease?

I used to get around this by putting netfs in POST_UP in my profile - worked fine, apart from initscripts nagging me about using one daemon to start another. smile

Alternatively, switch to systemd. which handles this automatically.

Offline

#6 2012-09-04 23:22:07

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: NFS mount fails at boot; netcfg needs to wait for dhcp lease?

solamir wrote:

About year ago you could write only one daemon nfs-common. Rpcbind is started as dependence.

I'll try swapping rpcbind for nfs-common and see how that goes.

tomk wrote:

Alternatively, switch to systemd.

lol.

Offline

Board footer

Powered by FluxBB