[Bug 331615] New: shutdown hangs with autofs
https://bugzilla.novell.com/show_bug.cgi?id=331615 Summary: shutdown hangs with autofs Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: mkoenig@novell.com ReportedBy: detlef@die-mafia.de QAContact: qa@suse.de CC: werner@novell.com Found By: --- I use autofs to import nfs-shares, but if i shutdown and a share is mounted, the shutdown hangs. Output in messages: Oct 7 10:20:11 detlef-pc rpc.statd[4784]: Version 1.1.0 Starting Oct 7 10:20:11 detlef-pc rpc.statd[4784]: Flags: Oct 7 10:20:11 detlef-pc rpc.statd[4784]: unable to register (statd, 1, udp). Oct 7 10:20:52 detlef-pc rpc.statd[4789]: Version 1.1.0 Starting Oct 7 10:20:52 detlef-pc rpc.statd[4789]: Flags: Oct 7 10:20:52 detlef-pc rpc.statd[4789]: unable to register (statd, 1, udp). .. An old /etc/init.d/autofs (from rc1, don't know ;)), seems to work fine. This is the old stop-function: function stop() { count=0 while [ -n "`pidof $DAEMON`" -a $count -lt 15 ] ; do /sbin/killproc -TERM $DAEMON RETVAL=$? [ $RETVAL = 0 -a -z "`pidof $DAEMON`" ] || sleep 3 count=`expr $count + 1` done return $RETVAL } -- 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=331615#c1
Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=331615#c2
--- Comment #2 from Detlef Reichelt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c3
--- Comment #3 from Detlef Reichelt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c4
--- Comment #4 from Detlef Reichelt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c5
Tobias Abt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c6
Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=331615#c7
--- Comment #7 from Tobias Abt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c8
--- Comment #8 from Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=331615#c9
--- Comment #9 from Tobias Abt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c10
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c11
--- Comment #11 from Tobias Abt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c12
--- Comment #12 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c13
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c14
--- Comment #14 from Detlef Reichelt
https://bugzilla.novell.com/show_bug.cgi?id=331615
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c16
--- Comment #16 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c17
--- Comment #17 from Detlef Reichelt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c18
--- Comment #18 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c19
--- Comment #19 from Detlef Reichelt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c20
--- Comment #20 from Detlef Reichelt
https://bugzilla.novell.com/show_bug.cgi?id=331615
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c21
--- Comment #21 from Detlef Reichelt
https://bugzilla.novell.com/show_bug.cgi?id=331615#c22
--- Comment #22 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c23
--- Comment #23 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c24
--- Comment #24 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c25
--- Comment #25 from Tobias Abt
Please could you add portmap to the RequiredStart line of autofs and run the insserv command afterwards. Does this work for you or is the enabled nfs service mandatory for you regardless of having portmap witin the RequiredStart line of autofs?
With portmap in the RequiredStart line autofs gets inserted in the portmap depend.stop line and portmap is ended after autofs. As it should. I would however put it in ShouldStart. I know people that like to disable portmap on principle... :-) -- 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=331615#c26
--- Comment #26 from Tobias Abt
I would however put it in ShouldStart. I know people that like to disable portmap on principle... :-)
On second thought, put it in RequiredStart. In an environment where someone would disable portmap autofs does not make any sense either. -- 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=331615#c27
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=331615#c28
Tobias Abt
Please could you remove the portmap from RequiredStart of autofs and add nfs to the TARGETS of /etc/init.d/.depend.stop and /etc/init.d/.depend.start with the help of e.g. vi. Afterwards you should not call insserv but reboot to see if this works.
I removed the RequiredStart, did an insserv -r nfs and added nfs to the mentioned TARGET vars. Then I accessed my NFS server and rebooted. The shutdown order is not ok, portmap is ended before autofs. Therefore the system got stuck. (To be sure, I tried it again right after that, same result.) -- 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=331615#c29
--- Comment #29 from Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=331615#c32
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com