Subject: Re: RAIDframe: why are only "root" raidsets closed on reboot/halt?
To: Greg Oster <oster@cs.usask.ca>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 11/26/2002 21:33:57
On Tue, Nov 26, 2002 at 09:21:27AM -0600, Greg Oster wrote:
> > Hmmm, if I am in single user mode and have done a "umount -a"
> > ensuring all file systems are silent before the reboot (the root
> > file system is its own raidset and always closes as you mention)
> > I still get dirty mirrors.
> > 
> > I note that if I "ccdconfig -U" for "raidctl -u" the stripe first,
> > parity will stay clean. 
> 
> Right.  And this is the part that is missing for the shutdown/reboot.
> Without doing the "ccdconfig -U" or "raidctl -u" on the stripe, the 
> underlying components (raid sets themselves) will always remain "in use".

Hum, I've got the issue with ccd, but I though a raidframe raid-0 properly
closed the underlying devices on reboot (plain reboot, not shutdown  -r).
At last from tests I ran, the underlying raid1 were clean on reboot.

The issue I have is that the raid-0 on top of raid-1 doesn't autoconfigure.
Maybe raidframe's autoconfig should loop until it doesn't find new disks ?
It could also loop on shutdown to auto-unconfigure itself recursively.

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