You are not logged in.

#1 2008-08-24 00:17:54

luuuciano
Member
Registered: 2007-01-27
Posts: 310

nfs in fstab do not autoload at boot up

Hi!

I have done all the steps of http://wiki.archlinux.org/index.php/Nfs
nfs is working ok...
I have added this "192.168.0.5:/home/user/shared /home/user2/shared nfs defaults 0 0" to the fstab...
if I do a mount -a it works ok...

but is not working at boot up...

someone told me about trying defauls,_netdev in the fstab line, but the same... do not work

any idea?


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#2 2008-08-24 18:28:04

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: nfs in fstab do not autoload at boot up

Did you add netfs to DAEMONS list in /etc/rc.conf?

Offline

#3 2008-08-27 20:05:33

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: nfs in fstab do not autoload at boot up

robertp wrote:

Did you add netfs to DAEMONS list in /etc/rc.conf?

yep, it is there

DAEMONS=(syslog-ng @network @hal @net-profiles portmap netfs nfslock @sensors @crond @cpufreq @alsa)

no idea what to do...
when netfs (or is it nfsd? I dont remember) tries to load at startup it shows:
mount: mount to NFS server '192.168.0.33' failed: System Error: Network  is unreacheable

and then, I do mount -a and it works...


in server /etc/conf.d/nfs:
STATD_OPTS="--no-notify"

in hosts.allow:
sshd: 192.168.0.34
nfsd: 192.168.0.34
portmap: 192.168.0.34
mountd: 192.168.0.34

hosts.deny:
ALL: ALL: DENY

rc.conf:
portmap netfs nfslock nfsd

exports:
/home/luciano/compartido 192.168.0.34(rw,sync,no_root_squash,subtree_check)

in client fstab:
192.168.0.33:/home/luciano/compartido /home/luciano/compartido nfs defaults,_netdev 0 0

rc.conf:
portmap netfs nfslock

Last edited by luuuciano (2008-08-27 20:13:36)


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#4 2008-08-27 20:57:45

mrcold
Member
Registered: 2008-01-24
Posts: 150

Re: nfs in fstab do not autoload at boot up

remove the @ from network..

It is probably not getting loaded before it tries nfs.. which then fails

Offline

#5 2008-08-27 22:30:08

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: nfs in fstab do not autoload at boot up

Same advice as mrcold, but also I don't think you can have both network and net-profiles. I think you should remove network and the @ before net-profiles.

Zl.

Offline

#6 2008-08-28 03:29:55

mrcold
Member
Registered: 2008-01-24
Posts: 150

Re: nfs in fstab do not autoload at boot up

also.. you should probably put nfslock before netfs (thats how i have it anyway, and it works)

Offline

#7 2008-08-28 03:54:27

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: nfs in fstab do not autoload at boot up

wow, thanks a lot to everyone of you!

it was all that... added ! to network, quit @ to wpa (two/three seconds to load!) and nfslock before netfs (if not nfslock fails)

thanks again!


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#8 2008-09-03 03:47:58

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: nfs in fstab do not autoload at boot up

one thing, that I do not know if it is normal...
at shotdown the system tries to unmount network filesystem, and it fails...

it is normal?


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#9 2008-09-04 18:29:54

ould
Member
Registered: 2007-05-22
Posts: 124

Re: nfs in fstab do not autoload at boot up

I was just researching the "Unmounting Network Filesystem Fail" message myself and I came across this bug http://bugs.archlinux.org/task/10484 I haven't tried the fix yet as I am at work but sounds like it should fix the issue for now.

Hope that helps,

Kevin

Offline

#10 2008-09-05 02:37:17

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: nfs in fstab do not autoload at boot up

Thanks a lot Kevin!

So, it just adds 5 seconds, to wait for the umount proccess...?


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

Board footer

Powered by FluxBB