nfs does not mount at boot

I use a RAIDON unit (SL3610/3620-2S-LB2 - set up with RAID1 and NFS) as a file server and want it to mount at boot. My /etc/fstab entry is
10.10.10.2:/mnt/md1/ulimnt /home/uli/ulimnt nfs rw,hard,intr 0 0
But the system does not mount at boot.
SO after the system booted up the command (as root)
mount -t nfs 10.10.10.2:/mnt/md1/ulimnt /home/uli/ulimnt
mounts the system without problems
Of course I can add a login script - but why does it not work at boot
System is opensuse 11.0 - network with if up
Any ideas?
Uli

I have just noticed that it works from my laptop which runs opensuse 11.0 - network with if up. Only difference there is that I have LXDE as desktop.

Maybe the exports file is not configured to let anybody mount it at boot…
I’ll check if there is no “export” entries the default behaviour is to never mount any nfs ressource at boot…

To share a part of your file system you must add a specification to /etc/exports

for example:

/mnt/md1/ulimnt (rw,no_root_squash)

allows everybody, every hosts to mount the directory with read-write access and even if the user is root (uid 0).

If you want to mount it from a host you have to specify your host in this way:

/mnt/md1/ulimnt yourhost(ro) for read only access (add no_root_squash) if you want to let root access to this mount point.

This is not just fstab (on the host) but the pair of fstab (on the host) and exports (on the server) that let nfs working properly.

Tell me if it solves something :slight_smile:

Don’t have much time, please search the forums for NFS on 11.3, there’s some trouble over NFS4 and NFS3.

I don’t know if it’s related … but I experienced a similar problem on Ubuntu 10.04, but not in the previous releases and not in openSUSE (any release). I don’t mount nfs from /etc/fstab but over a script called from /etc/rc.local (Ubuntu). NFS shared don’t get mounted but it’s actually a portmap issue. The solution I found was to stop and restart portmap before mounting nfs. So I added in my /etc/rc.local :
service portmap stop
service portmap start.
There must be something started in the wrong order in the initd process.

On 2010-08-18 05:36, fuerstu wrote:
>
> I use a RAIDON unit (SL3610/3620-2S-LB2 - set up with RAID1 and NFS) as
> a file server and want it to mount at boot. My /etc/fstab entry is
> 10.10.10.2:/mnt/md1/ulimnt /home/uli/ulimnt nfs
> rw,hard,intr 0 0
> But the system does not mount at boot.
> SO after the system booted up the command (as root)
> mount -t nfs 10.10.10.2:/mnt/md1/ulimnt /home/uli/ulimnt
> mounts the system without problems

You should use simply:

mount /home/uli/ulimnt

to check that the fstab line is correct - no need to give any options.

If that works, then check the boot log for clues, if there was an error it should be logged there.
Check also the logs on the server.

> Of course I can add a login script - but why does it not work at boot
> System is opensuse 11.0 - network with if up

11.0? You know that version it is out of maintenance?


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

That sounds right !
Is there a syslog in /var/log/messages ??

try a more /var/log/messages | grep nfs

I will dig the Knurpht proposition… and try it on 11.2 system but I’m working on windows now… since wednesday I’ll be free to make tests under linux…