Subject: bin/35067: reboot(8) could remove swap devices, preserving RAID parity
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <blair.sadewitz@gmail.com>
List: netbsd-bugs
Date: 11/17/2006 19:45:00
>Number:         35067
>Category:       bin
>Synopsis:       reboot(8) could remove swap devices, preserving RAID parity
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 17 19:45:00 +0000 2006
>Originator:     Blair Sadewitz
>Release:        NetBSD-4.0_BETA
>Organization:
>Environment:
amd64, 200911090000Z snapshot
>Description:
If the user uses shutdown(8) to reboot, swapoff=YES in /etc/defaults/rc.conf takes care of this.  However, many people may use reboot(8) out of habit, to save time, from a power management script, etc., and in this case RAID parity is disturbed.
>How-To-Repeat:
Use reboot(8) with RAID.  The array is ``dirtied''.
>Fix:
Have a reboot.conf file (awkward, perhaps), or some other means to have reboot remove swap devices?  I'm not sure if you guys would even want to do this, but it should at least be stated in documentation more frequently that shutdown(8) does this by default, yet reboot(8) does not.

Furthermore, RAID parity is not preserved by default when the system is turned off via an ACPI power button request.  It would be helpful if this were addressed as well.

Thanks!