Bug 156947

Summary: NFS Client does not re-attach to server upon reboot
Product: [openSUSE] SUSE Linux 10.1 Reporter: David Wright <david.wright>
Component: NetworkAssignee: Robert Love <rml>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten_js_DutmDZD, suse-beta
Version: Beta 6   
Target Milestone: ---   
Hardware: PC   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Network Manager log 10.1 Beta 6
Beta 8 Boot Logs with NM enabled.
NetworkManager Log for 10.1 Beta 8
Boot.msg from Beta 9
NetworkManager log from Beta 9
NetworkManagerDispatcher script to restart NFS on interface up
NetworkManagerDispatcher script to restart NFS on interface up (fixed)

Description David Wright 2006-03-10 09:15:53 UTC
I set up two connections to my main server for sharing data and home directories for personal data - but as it is a beta machine, the networked home directories aren't mounted under /home, but under /nethome.

server: 192.168.0.1 remote: /data Local: /data Options: default
server: 192.168.0.1 remote: /home Local: /nethome Options: default

When the Beta workstation is re-booted the NFS mount points aren't mounted. Restarting the network services does mount the NFS mount points correctly.

Is this a duplicate of 119855 or 140124? Sounds similar, but not 100% the same.
Comment 1 Michael Gross 2006-03-13 15:14:00 UTC
This might be the same problem as in 119855. Do you have any erros during the mount? Any relevant output in the boot messages?
Comment 2 David Wright 2006-03-17 07:07:01 UTC
Argh! Somehow I had turned on the network manager during the Beta 6 install, on the other Beta's I had not enabled it.

Turning off the network manager and running in traditional mode, the NFS shares seem to re-attach normally.
Comment 3 Michael Gross 2006-03-17 12:24:49 UTC
I see so this might be connected to NetworkManager, please attach /var/log/NetworkManager here.
Comment 4 David Wright 2006-03-17 12:32:09 UTC
Created attachment 73685 [details]
Network Manager log 10.1 Beta 6

OK, turning off Network Manager allows the NFS shares to be attached normally during boot.
Comment 5 Robert Love 2006-03-21 19:06:18 UTC
I don't see why NM is related (the logs look fine), unless there is a race between the start of rcnetwork when using NM and nfs (I presume /etc/init.d/nfs is the thing you are seeing fail).

What if, after booting up and not seeing your NFS shares attached, you do, as root, `/etc/init.d/nfs restart` ?

Are the shares now properly attached?
Comment 6 David Wright 2006-03-22 09:22:43 UTC
Restarting nfs after the boot is complete worked.

I've upgraded to Beta 8 and without NM enabled. Doing an update at the moment. I'll switch NM on after the update and see if I can replicate the problem under Beta 8... Without NM the NFS starts fine.
Comment 7 Robert Love 2006-03-22 21:52:16 UTC
Alright, let me know.  Thanks.
Comment 8 David Wright 2006-03-23 09:23:08 UTC
OK, re-enabled NetManager and the PC boots without NFS mount points...

/etc/init.d/nfs restart does give me the mount points correctly.

I'm also attaching a tar.gz of the boot logs, let me know if you need anything else.
Comment 9 David Wright 2006-03-23 09:24:10 UTC
Created attachment 74674 [details]
Beta 8 Boot Logs with NM enabled.
Comment 10 David Wright 2006-03-23 09:25:54 UTC
Created attachment 74675 [details]
NetworkManager Log for 10.1 Beta 8

Thought you'd probably need the Net Manager logs as well ;-)
Comment 11 David Wright 2006-04-10 08:28:55 UTC
For info, just tried this again under Beta 9, still having the same problem, NFS is not attaching anything on boot-up, a quick "rcnfs restart" from a terminal window works fine.

Disabling NetworkManager also solves the problem, as before.
Comment 12 David Wright 2006-04-10 08:32:07 UTC
Created attachment 77433 [details]
Boot.msg from Beta 9
Comment 13 David Wright 2006-04-10 08:33:37 UTC
Created attachment 77434 [details]
NetworkManager log from Beta 9
Comment 14 Robert Love 2006-04-13 17:07:24 UTC
David: Can you stick the file attached below (nfs) in /etc/NetworkManager/dispatcher.d/ and mark it executable (chmod 0755 /etc/NetworkManager/dispatcher.d/nfs) and reboot?

This gives NM the functionality to restart NFS when an interface change occurs.

Please confirm if this fixes the problem on boot.  Thanks!
Comment 15 David Wright 2006-04-13 17:45:38 UTC
Hmm, Robert couldn't find an attachment.

I copied /etc/init.d/nfs to /etc/NetworkManager/dispatcher.d/nfs

That didn't help though, sorry. If that wasn't the nfs you meant, can you try attaching again.
Comment 16 Robert Love 2006-04-13 17:53:02 UTC
Weird, I don't see the attachment either.  I will reattach.

/etc/init.d/nfs is not what I wanted.
Comment 17 Robert Love 2006-04-13 17:53:37 UTC
Created attachment 78363 [details]
NetworkManagerDispatcher script to restart NFS on interface up

Please save as /etc/NetworkManager/dispatcher.d/nfs, chmod to mode 0755, and reboot.
Comment 18 Robert Love 2006-04-13 17:54:06 UTC
Please retest with the file in comment #17.  Sorry about that!
Comment 19 David Wright 2006-04-13 18:12:09 UTC
ok, downloaded it and copied it, but it didn't make any difference, sorry.
Comment 20 Robert Love 2006-04-13 18:14:58 UTC
Hrm, bummer.  It should basically have had the same effect of manually running "nfs restart", which you said worked.

You did `chmod 0755 /etc/NetworkManager/dispatcher.d/nfs` after saving the file there?
Comment 21 Robert Love 2006-04-13 18:15:42 UTC
Oh, stupid me.  The line to restart is preceded by an "echo".  Reattaching.
Comment 22 Robert Love 2006-04-13 18:16:30 UTC
Created attachment 78367 [details]
NetworkManagerDispatcher script to restart NFS on interface up (fixed)

Please save as /etc/NetworkManager/dispatcher.d/nfs, chmod to mode 0755, and reboot.
Comment 23 Robert Love 2006-04-13 19:50:49 UTC
Alright, the version in Comment #22 should work correctly.

Apologies for the earlier mishap.

Please let me know if the problem is solved!
Comment 24 David Wright 2006-04-13 20:37:35 UTC
DOH! Downloaded the file on my main workstation and tried to copy it via the NFS directory... It hadn't been loaded because of this bug :-P

Anyway restarted NFS, copied file, rebooted and...

Yes, that does the trick :-) a quick ls and the files and folders are there.
Comment 25 Robert Love 2006-04-13 20:55:30 UTC
Updated NetworkManager package submitted to STABLE.
Comment 26 Robert Love 2006-04-13 20:55:47 UTC
Thank you for the debugging help, David!