NetBSD Problem Report #8933

Received: (qmail 15565 invoked from network); 1 Dec 1999 20:08:35 -0000
Message-Id: <199912012008.VAA18422@idle.trapdoor.vip.at>
Date: Wed, 1 Dec 1999 21:08:07 +0100 (CET)
From: rh@netbsd.org
Reply-To: rh@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: RAIDframe swap partitions cause unclean raid devices
X-Send-Pr-Version: 3.95

>Number:         8933
>Category:       kern
>Synopsis:       RAIDframe swap partitions cause unclean raid devices
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    chs
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 01 12:09:00 +0000 1999
>Closed-Date:    Tue Nov 14 02:10:06 +0000 2000
>Last-Modified:  Tue Nov 14 02:12:50 +0000 2000
>Originator:     Rene Hexel
>Release:        1.4.1+
>Organization:

>Environment:
System: NetBSD idle 1.4P NetBSD 1.4P (IDLE) #41: Tue Nov 30 14:13:57 CET 1999 rh@idle:/usr/local/sys/NetBSD-current/src/sys/arch/i386/compile/IDLE i386


>Description:
	Trying to add and use a swap partition on a RAIDframe device causes
the device to stay busy forever.  Thus, all attempts to 'raidctl -u' from
userland, but also any automatic raid unconfiguration upon system shutdown
fail.  For that reason, the raid device will remain unclean (requiring a
complete parity-rewrite for raid levels with parity).

>How-To-Repeat:
	Partition your raid device 'raid0' to contain a swap partition
'raid0b' and add the following to your /etc/fstab:

	/dev/raid0b none swap sw 0 0

	After multi-user boot, watch any attempts of 'raidctl -u raid0' to
fail.  Notice that a reboot will also fail to unconfigure the device
(causing the next 'raidctl -c raid0' to complain about lots of unclean
devices).

>Fix:
	In the kernel, provide a way of unmounting a swap partition that
can be used by RAIDframe to cleanly unconfigure upon shutdown.
>Release-Note:
>Audit-Trail:

From: Rene Hexel <rh@idle.trapdoor.vip.at>
To: gnats-bugs@netbsd.org
Cc:  Subject: kern/8933
Date: Wed, 01 Dec 1999 21:13:49 +0100

   As long as this is not fixed, this should at least be documented
 somewhere, e.g. in raid(4).
Responsible-Changed-From-To: kern-bug-people->chs 
Responsible-Changed-By: chs 
Responsible-Changed-When: Wed Dec 1 20:38:31 PST 1999 
Responsible-Changed-Why:  
I'll get the "swapctl -d" code in eventually (hopefully soon 
enough for 1.5, even!), which is some of what's required for this. 
State-Changed-From-To: open->closed 
State-Changed-By: chs 
State-Changed-When: Mon Nov 13 18:08:45 PST 2000 
State-Changed-Why:  
the remaining bug in "swapctl -d" was fixed in rev. 1.39 of uvm_swap.c.
also pulled into the 1.5 branch. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.