https://bugzilla.novell.com/show_bug.cgi?id=825150
https://bugzilla.novell.com/show_bug.cgi?id=825150#c5
Neil Brown changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
InfoProvider| |maintenance@opensuse.org
--- Comment #5 from Neil Brown 2013-06-16 18:21:11 UTC ---
Hi Maintenance:
It seems that the recent nfs-utils update for openSUSE-12.3 has a problem.
The problem is really in the earlier version. If a particular configuration is
in effect (bind= in /etc/exports) then running "rcnfsserver stop" will unmount
all filesystems!
This has probably been happening ever since it was released but as it only
happens at shutdown time, no-one noticed.
However installing an update causes "rcnfsserver restart" to be run which does
the "stop" then a "start" which causes the problem. So after an update
everything might be unmounted.
The problem can be simply fixed by a reboot, but avoiding that need would
obviously be best.
So: can we either disable the current update, or expedite a new release?
As it is the *new* rcnfsserver which is run, I can put something in to stop old
state causing a problem. In particular that patch below will cause updates to
happen without incident.
Index: nfsserver.init
===================================================================
--- nfsserver.init (revision 93e3962c070c76f4afcb3b3cca91f2df)
+++ nfsserver.init (working copy)
@@ -118,7 +118,7 @@
nfs4_unbind_mounts() {
sort -r -k2 $NFSD_BIND_MOUNTS |
while read src mountpoint crap; do
- umount -l "$mountpoint"
+ [ -n "$mountpoint" ] && umount -l "$mountpoint"
done
> $NFSD_BIND_MOUNTS
}
I tried branching "openSUSE:12.3:Update:Test/mdadm" but it didn't like that, so
I branched "openSUSE:12.3:Update/mdadm" and created a maintenance request from
there (179220).
Just to clarify: the problem is caused by the earlier nfs-utils writing garbage
to /run/nfs/bind.mounts, and particularly writing a blank line. If bind.mounts
contains a blank line, the above "nfs4_unbind_mounts" function runs
umount -l ''
which surprisingly unmounts everything.
If it is possible to prevent people using the current update, either by
disabling it or replacing it, that would be great.
Thanks.
--
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.