Simple problem nfs mount fstab

Associate
Joined
29 Dec 2007
Posts
1,414
Location
London
Hey guys, have a little problem, assuming something very obvious im missing.

I've set nfs up on a centos server, I'm attempting to connect clients automatically at boot via fstab

Host - Centos 5.4 - mounted locally at /mnt/SCSI

Client - Centos 5.5 - can mount manually with:
mount axda3hull007031:/mnt/SCSI /mnt/SCSI

current line in fstab:
axda3hull007031:/mnt/SCSI /mnt/SCSI nfs defaults 0 0

With the above in fstab i can mount perfectly fine by typing:
mount /mnt/SCSI

also tried:
axda3hull007031:/mnt/SCSI /mnt/SCSI nfs rw,sync 0 0

But I can't seem to get it to mount automatically at boot. Any ideas?

Thanks :)
 
Can you try it using the IP instead of axda3hull007031? It may be that during boot when fstab is processed axda3hull007031 can't be resolved.

Also, scan through the output of dmesg for mount errors, that should detail the problem.
 
Last edited:
No different by IP. scanned dmesg for nfs:

Installing knfsd (copyright (C) 1996 [email protected]).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory

scanned dmesg for mount:
EXT3-fs: mounted filesystem with ordered data mode.

scanned for 7031, the ip, SCSI - nothing. also scanned boot log.
 
This is embarrasing -

Netfs service wasn't set to run at any level. I'd got confused with the nfs service.

Argh, sorry for wasting your time. Haven't been around linux too long :(

Thanks :D
 
Back
Top Bottom