Subject: Re: RAID1 bootblocks for 2.0 (and more ramblings)
To: Matt Dainty <matt@bodgit-n-scarper.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc64
Date: 12/12/2004 16:45:25
On Sun, Dec 12, 2004 at 02:14:42PM +0000, Matt Dainty wrote:
> > This is because of the swap partition, which isn't closed at shutdown.
> > One way to fix it is to use shutdown instead of reboot. The shutdown hooks
> > will turn off swap before halting/rebooting.
> > What I do to work around this, is to have 2 raid partitions on the disks:
> > one small raid0 with / + swap, and a raid1 with everything else. Only
> > raid0 will have parity dirty, and as it's small, it doesn't need much time
> > to sync.
> 
> Can you not also use "swapoff=YES" in rc.conf? I have that in mine on my
> Ultra1 and Alpha's, which if memory serves is for this very problem.

Ha, I forgot you also need swapoff for shutdown to unconfigure swap devices.
Yes, this works as long as you use shutdown. If someone types 'reboot' instead
or 'shutdown', you get a dirty raid on reboot.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--