Subject: kern/8933: RAIDframe swap partitions cause unclean raid devices
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rh@netbsd.org>
List: netbsd-bugs
Date: 12/01/1999 12:09:39
>Number: 8933
>Category: kern
>Synopsis: RAIDframe swap partitions cause unclean raid devices
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 1 12:09:00 1999
>Last-Modified:
>Originator: Rene Hexel
>Organization:
>Release: 1.4.1+
>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.
>Audit-Trail:
>Unformatted: