[Bug 679212] New: NFS shares not mounted at boot in openSUSE 11.4
https://bugzilla.novell.com/show_bug.cgi?id=679212 https://bugzilla.novell.com/show_bug.cgi?id=679212#c0 Summary: NFS shares not mounted at boot in openSUSE 11.4 Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: software@legisign.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI) AppleWebKit/5333 (KHTML, like Gecko) rekonq Safari/533.3 NFS mounts are not done at boot time in openSUSE 11.4 even if appropriate lines are in /etc/fstab. When done manually in terminal, “Starting rpc.statd ... done” output is shown. Using this as a clue I managed to pinpoint the problem: the directory /var/lib/nfs has 700 permissions instead of the expected 755: under that directory are subdirectories and files that should be user-readable. Changing the permissions to 755 was enough to get NFS shares mounted at boot time. Reproducible: Always Steps to Reproduce: 1. Add an NFS mount to /etc/fstab 2. Boot the machine 3. Try “mount” or “df” or similar to see if NFS shares are there. Actual Results: No NFS shares are mounted. Expected Results: NFS shares should be mounted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c1
--- Comment #1 from Tommi Nieminen
Using this as a clue I managed to pinpoint the problem: the directory /var/lib/nfs has 700 permissions instead of the expected 755: under that directory are subdirectories and files that should be user-readable. Changing the permissions to 755 was enough to get NFS shares mounted at boot time.
OK – now even this isn’t enough. I tried to give go+rX rights to all the files in /var/lib/nfs as well with no results. It looks like the problem is in the rpc.statd part, since that is always started separately when I’m forced to do “sudo mount /nfs_mount_point” at the prompt. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c2
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c3
--- Comment #3 from Tommi Nieminen
There must be some reason that the filesystems aren't being mounted.
However is the network configured on this machine? By 'networkmanager' or ifup?
By ifup (wired network), so that rules out the rest of your suggestion. The problem still remains :( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c4
--- Comment #4 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c5
--- Comment #5 from Tommi Nieminen
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c6
--- Comment #6 from Tommi Nieminen
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c7
Robert Nurnberg
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c8
--- Comment #8 from Robert Nurnberg
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c9
Robert Nurnberg
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c10
--- Comment #10 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c11
--- Comment #11 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c11
--- Comment #11 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c12
--- Comment #12 from Robert Nurnberg
Defaultvers=3
did not help. Same behaviour as before. And yes, both the /usr/local and the /home mount fail at boot time. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c13
--- Comment #13 from Robert Nurnberg
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c14
--- Comment #14 from Tommi Nieminen
Could you please edit /etc/nfsmount.conf, and set "Defaultvers=3".
Find the line:
# Defaultvers=4
and change it to
Defaultvers=3
Then reboot and see if the nfs filesystems get mounted.
Didn’t work for me either. I also tried giving Nfsvers=3 as a server-specific option – that is, I created a “[ Server "habermas" ]” section and added it there, but to no avail. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c15
Neil Brown
From looking at your fstab and sysconfig/nfs files it looks like /etc/init.d really must be running mount -at nfs,nfs4
which should succeed - but it doesn't succeed at boot, yet does succeed later. My only guess is that some aspect of the network isn't quite working yet. Do you get any error messages during boot? You should see: Starting NFS client services: sm-notify idmapd Mounting network file systems ... and then possibly some errors?? It might be easiest to edit /etc/init.d/nfs and change mount -at nfs,nfs4 || rc_failed 1 to mount -at nfs,nfs4 > /tmp/mount.log 2>&1 || rc_failed 1 and then have a look at /tmp/mount.log after boot. Maybe it is a name-service lookup thing - You could try putting IP addresses in rather then domain names. Do you have IPv6 enabled at all? Do the server names have IPv6 addresses? That probably shouldn't matter, but at the moment any odd details would be worth following up. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c16
--- Comment #16 from Tommi Nieminen
Do you get any error messages during boot?
Not constantly. On a wide screen it’s somewhat difficult to say which service reports “Done” and which something else, but at least yesterday when I tried the only service that “Failed” was mcelog – and after another boot even that reported “Done”. I’ve also tried to grep relevant strings (“nfs”, the server name, etc.) from /var/log/* but nothing has shown up.
Do you have IPv6 enabled at all? Do the server names have IPv6 addresses? That probably shouldn't matter, but at the moment any odd details would be worth following up.
I actually suspected this previously, and disabled IPv6 in YaST. No results. After that, I enabled IPv6 again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c17
Robert Nurnberg
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c18
arjan ten hoopen
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c19
--- Comment #19 from arjan ten hoopen
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c20
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c21
--- Comment #21 from Tommi Nieminen
Turns out that /etc/init.d/nfs was not run at boot time at all. .. I have now activated NFS via YaST -> System -> System Services (Runlevel).
This worked for me too – ONCE, just after the first boot after making the change. On subsequent boots NFS shares are again not mounted. There’s one difference however: when I now mount the shares manually, I do not get the “Starting rpc.statd... Done” message. Looks like that process is already started. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c22
arjan ten hoopen
Hi Arjan, are you using network-manager to configure your network, or ifup?
If network manager, then /etc/NetworkManager/dispatcher.d/nfs should be mounting your filesystems for you. Maybe put some echo >> /tmp/log ..... in there to see what is happening.
If you are using ifup, then as network is started at position '02':
/etc/init.d/rc5.d/S02network and nfs at position '05' /etc/init.d/rc5.d/S05nfs
the network should be up. Maybe put some 'echo's in /etc/init.d/network to find out what is happening in there.
It turned out that a switch was given my trouble (the system switched to wireless instead). After resetting the switch the problem disappeared. Thanks for the support!! Arjan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c23
--- Comment #23 from Neil Brown
I could swear that in previous openSUSE installs I did not have to set this service manually. Is this a change in policy?
Hi Robert, glad you found a simple fix. I'm surprised that they were not enabled by default. Looking through the logs I find there was a policy change: ---------------- Wed Jan 12 12:15:31 UTC 2011 - lnussel@suse.de - don't enable nfs init script by default. The yast nfs module makes sure the script gets enabled when adding mounts ---------------- Did you add entries to /etc/fstab by hand? If so that might explain it. If you think this is a regression we could set need-info to lnussel and ask.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c24
Neil Brown
(In reply to comment #17)
Turns out that /etc/init.d/nfs was not run at boot time at all. ... I have now activated NFS via YaST -> System -> System Services (Runlevel).
This worked for me too – ONCE, just after the first boot after making the change. On subsequent boots NFS shares are again not mounted.
There’s one difference however: when I now mount the shares manually, I do not get the “Starting rpc.statd... Done” message. Looks like that process is already started.
So it seems that you have two problems. One is that the nfs script wasn't even running - that has been fixed. The other is that when it runs it fails to mount for some reason. Again it would be helpful to look for error messages, possibly as describe in comment #15. Does that reveal anything useful? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c25
--- Comment #25 from Robert Nurnberg
Did you add entries to /etc/fstab by hand? If so that might explain it. If you think this is a regression we could set need-info to lnussel and ask..
Neil, this was a new installation on a machine that had a working openSUSE 11.3 install. So the /etc/fstab was inherited from the previous installation. I would suggest that this should be spotted and nfs should be enabled automatically. Ideally the same should happen when /etc/fstab was edited manually. Please go ahead with your suggested actions. Thanks, Robert -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c26
--- Comment #26 from arjan ten hoopen
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c27
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c28
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c29
--- Comment #29 from Robert Nurnberg
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c30
--- Comment #30 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=679212
https://bugzilla.novell.com/show_bug.cgi?id=679212#c31
Neil Brown
participants (1)
-
bugzilla_noreply@novell.com