Subject: Re: RAID & swap
To: Manuel Bouyer <email@example.com>
From: Greg Oster <firstname.lastname@example.org>
Date: 04/07/2000 08:47:42
Manuel Bouyer writes:
> 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 :)