Subject: kern/9241: automount daemon causes unclean filesystem during system shutdown
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.zhadum.de>
List: netbsd-bugs
Date: 01/19/2000 04:48:53
>Number:         9241
>Category:       kern
>Synopsis:       automount daemon causes unclean filesystem during system shutdown
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 19 04:48:00 2000
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                            http://www.sighardstrasse.de/~tron/
>Release:        2000/01/18
>Environment:
System: NetBSD lyssa.zhadum.de 1.4P NetBSD 1.4P (LYSSA) #1: Wed Jan 19 13:28:35 CET 2000 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386


>Description:
For a long time - I started before NetBSD 1.4 - I observe problems with
unmounting filesystems during system shutdown which lead to long lasting
filesystem checks on the next system startup. Until a few weeks ago these
problems only occured if I used "shutdown" but now they even show up
if "halt" or "reboot" is used.

For some reason I didn't knew it never happened if I bring the system to
single user mode with "shutdown" and use "halt" or "reboot" afterwards but
it was obviously related to some kind of process not beeing terminated
properly. Today I tried killing "amd" manually before calling "reboot"
and my system was properly able to sync and unmount all filesystems. I
suppose there is a locking problem if userland NFS servers are not
terminated properly.

>How-To-Repeat:
Boot a system which starts "amd", use "reboot" to reboot it. Watch "fsck"
doing a lot of work during next reboot.

>Fix:
Sorry, I don't know.
>Audit-Trail:
>Unformatted: