Subject: install/6676: There is no rc support for RAIDframe
To: None <email@example.com>
From: Eric S. Hvozda <firstname.lastname@example.org>
Date: 12/28/1998 21:30:52
>Synopsis: There is no rc support for RAIDframe
>Responsible: gnats-admin (GNATS administrator)
>Arrival-Date: Mon Dec 28 18:35:01 1998
>Originator: Eric S. Hvozda
>Release: 20Dec98 -current sources
System: NetBSD yale.apicom.com 1.3I NetBSD 1.3I (YALE) #0: Sun Dec 27 16:08:57 EST 1998 email@example.com:/usr/src/sys/arch/i386/compile/YALE i386
Now that we have RAIDframe, it would be nice if the system
could be confiureed to use it at boot time automatically
much like ccd(4).
Configure a RAIDframe device and create slices with file
systems. Come to the realization that there is no rc
support for RAIDFrame.
This patch does the job (I believe). Currently there is
no way to determine if the last shutdown was a clean one
(I can think of a way, but it's a total hack dealing with
fsck(8) which is probably not reasonable).
One draw back of this method is that we always must
rebuild parity. This can be a big time sucker if the
raid device in question is a *huge* one. However,
it's better than going forward with multi-user and
unknown parity in RAIDframe:
*** etc/rc.dist Mon Dec 28 15:03:33 1998
--- etc/rc Mon Dec 28 20:58:07 1998
*** 21,26 ****
--- 21,34 ----
+ # Configure raid devices.
+ for dev in 0 1 2 3; do
+ if [ -f /etc/raid$dev.conf ]; then
+ raidctl -c /etc/raid$dev.conf raid$dev
+ raidctl -r raid$dev
# Add all block-type swap devices; these might be necessary
# during disk checks.
swapctl -A -t blk