Subject: kern/26435: soft-dependencies cause kernel hangs on system shutdown
To: None <gnats-bugs@gnats.NetBSD.org>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-bugs
Date: 07/26/2004 18:56:55
>Number:         26435
>Category:       kern
>Synopsis:       soft-dependencies cause kernel hangs on system shutdown
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 26 16:58:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0_BETA (happens also with NetBSD 1.6.2_STABLE)
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD colwyn.zhadum.de 2.0_BETA NetBSD 2.0_BETA (COLWYN) #0: Mon Jul 26 12:22:36 CEST 2004 tron@colwyn.zhadum.de:/src/sys/compile/COLWYN i386
Architecture: i386
Machine: i386
>Description:
Whenever I've rebooted my server after more than two weeks of uptime
the system didn't shutdown itself properly but frooze after printing
out "syncing disks.... ". I had to reset it manually resulting
a check of all filesystems and a resync of the two RAIDframe mirros
after the reboot. I initially blamed this on RAIDframe until I've
heard that it might be relaated to soft-dependencies. I've therefore
turned off soft-dependencies before the last reboot. When I rebooted
my server after 2 weeks of uptime today the shutdown completed without
any problems, the system rebooted fully automatically and neither
checked filesystems nor resynced the mirrors on system startup.
It appears that soft-dependences really were the cause for the
shutdown problems on my server.

>How-To-Repeat:
Enable soft-dependencies on all partitions, cause medium file system 
activity (news system, proxy server, package rebuilds, CVS updates)
for a few days and try to reboot it with "shutdown -r ..." afterwards.
The kernel will freeze after "syncing disks.... ".

>Fix:
Disabling soft-dependencies avoids the problem.

>Release-Note:
>Audit-Trail:
>Unformatted: