Subject: Re: RAID & swap
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Greg Oster <oster@cs.usask.ca>
List: current-users
Date: 04/07/2000 08:47:42
Manuel Bouyer writes:
> Hi,
> now that my alpha has root on RAID, I tried to configure swap on raid0b
> (I want a reliable machine :). Seems to work fine, but the RAID doesn't
> shutdown cleanly: after a halt/reboot the parity is always dirty.
> If I comment out the swap line in /etc/fstab no problems.
> 
> It looks like the swap device is not closed at shutdown, at last not before
> the parity status is updated. 

It's a known problem.  The swap doesn't get unconfigured, so the swap 
partition never gets unmounted, and so the RAID set never gets a chance to be 
marked 'clean'.  (See PR#kern/8933 )

> How hard would it be to add a shutdown hook to
> close the swap device(s) ?

Well, if it was really easy I'd have it done by now :)

Later...

Greg Oster