[Bug 598681] New: nfsd: rcnfsserver restart does not update binds
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c0 Summary: nfsd: rcnfsserver restart does not update binds Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@medozas.de QAContact: qa@suse.de Found By: Beta-Customer Blocker: --- When adding a new NFS4 export: /srv/nfs4/foo *(ro,bind=/foo) Then `rcnfsserver reload` will not install the bind mount like `rcnfsserver restart` would do. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |nfbrown@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c Jan Engelhardt <jengelh@medozas.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|nfsd: rcnfsserver restart |nfsd: rcnfsserver reload |does not update binds |does not update binds -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c1 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID --- Comment #1 from Neil Brown <nfbrown@novell.com> 2010-05-06 06:26:20 UTC --- It appear to me that this does work in current 10.3. This is thanks to the following lines in /etc/init.d/nfsserver reload|force-reload) echo -n "Reload kernel based NFS server" # Unfortunately, there's no sane way of doing this: nfs4_unbind_mounts; nfs4_bind_mounts I tested this and it works as expected. If it still doesn't work for you please report which version of the nfs-kernel-server package you have installed, and run sh -x /etc/init.d/nfsserver reload > /tmp/log 2>&1 and attach the file "/tmp/log". -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c2 Jan Engelhardt <jengelh@medozas.de> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|nfbrown@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com --- Comment #2 from Jan Engelhardt <jengelh@medozas.de> 2010-05-06 06:57:53 UTC --- There seem to be two issues at hand. First being that some kernel thread seems to hold a reference on /srv/nfs4/home (nfsd itself?), so it can't be umounted, and causing it to be bound twice in the end. # rcnfsserver start Starting kernel based NFS server: idmapd mountd statd nfsd sm-notify done # cat /etc/exports /srv/nfs4 *(ro,no_subtree_check,fsid=0) /srv/nfs4/home *(ro,no_subtree_check,bind=/home) /home 127.0.0.2(ro,no_subtree_check) # df -Tah Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/home xfs 199G 175G 25G 88% /home /home none 199G 175G 25G 88% /srv/nfs4/home rpc_pipefs rpc_pipefs 0 0 0 - /var/lib/nfs/rpc_pipefs # rcnfsserver reload Reload kernel based NFS serverumount: /srv/nfs4/home: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) done # df -Tah Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/home xfs 199G 175G 25G 88% /home /home none 199G 175G 25G 88% /srv/nfs4/home rpc_pipefs rpc_pipefs 0 0 0 - /var/lib/nfs/rpc_pipefs /home none 199G 175G 25G 88% /srv/nfs4/home # ofl /srv/nfs4/home # (ofl is a 'better' lsof/fuser -m in that ofl does an exact substring match only; from hxtools.) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c3 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |nfbrown@novell.com Resolution|INVALID | AssignedTo|bnc-team-screening@forge.pr |nfbrown@novell.com |ovo.novell.com | --- Comment #3 from Neil Brown <nfbrown@novell.com> 2010-05-06 07:14:38 UTC --- Ahh.. ok Please try this. in /etc/init.d/nfsserver, in the nfs4_unbind_mounts function, change umount $mountpoint to umount -l $mountpoint and see if that fixes it for you. Thanks. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c4 --- Comment #4 from Jan Engelhardt <jengelh@medozas.de> 2010-05-06 07:53:22 UTC --- Well, umount -l works around everything :) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c5 --- Comment #5 from Jan Engelhardt <jengelh@medozas.de> 2010-05-06 07:54:26 UTC --- You also need to add quotes. At best: do it consistently everywhere. umount -l $mountpoint is going to blow up easily. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c6 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #6 from Neil Brown <nfbrown@novell.com> 2010-05-09 23:11:29 UTC --- The lack of quotes will only cause a problem if the file name contains a wild card character - spaces will have causes problems much earlier. However I agree that using quotes here is best. I have submitted an update which added the quotes and the -l. Thanks. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c Jan Engelhardt <jengelh@medozas.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=598681 http://bugzilla.novell.com/show_bug.cgi?id=598681#c7 --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (598681) was mentioned in https://build.opensuse.org/request/show/39703 Factory / nfs-utils -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com