Subject: Re: raid support in i386 INSTALL kernel & sysinst disk list
To: Gavan Fantom <gavan@coolfactor.org>
From: Tracy Di Marco White <gendalia@gendalia.org>
List: tech-install
Date: 04/28/2004 17:46:33
In message <Pine.NEB.4.58.0404281406170.25080@villain.newbury.coolfactor.org>, 
Gavan Fantom writes:
>On Tue, 27 Apr 2004, Tracy Di Marco White wrote:
>
>>
>> I'd like to add raid support in the i386 INSTALL kernel, and to
>> the disk list sysinst presents for installing onto.
>>
>> (I've got these changes on ISOs I use at work, with raidctl also
>> on them, so that the raid can be configured, then the normal
>> sysinst things everyone is used to can be used instead of having
>> to do the install by hand.)
>>
>> The diffs are against 2.0_BETA, and are fairly small, any thoughts?
>
>It's about time RAID became an install option.
>
>How much does this grow the install floppies?

Compiled with "PROG  sbin/raidctl" added to
src/distrib/i386/floppies/ramdisk-big/list, everything still seems
to fit fine.  (New diff below.)

% ls -l bootfloppy-big/netbsd
-rw-r--r--  1 root  wheel  2735866 Apr 28 16:52 netbsd

Without my changes:
% ls -l bootfloppy-big/netbsd
-rw-r--r--  1 root  wheel  2670657 Apr 28 17:35 netbsd

-Tracy


Index: distrib/i386/floppies/ramdisk-big/list
===================================================================
RCS file: /cvsroot/src/distrib/i386/floppies/ramdisk-big/list,v
retrieving revision 1.19.2.1
diff -b -u -r1.19.2.1 list
--- distrib/i386/floppies/ramdisk-big/list	21 Apr 2004 04:12:22 -0000	1.19.2.1
+++ distrib/i386/floppies/ramdisk-big/list	28 Apr 2004 21:59:31 -0000
@@ -43,6 +43,7 @@
 PROG	sbin/newfs	sbin/mount_mfs
 PROG	sbin/ping
 PROG	sbin/ping6
+PROG	sbin/raidctl
 PROG	sbin/reboot	sbin/halt
 PROG	sbin/restore	sbin/rrestore
 PROG	sbin/route
Index: distrib/utils/sysinst/arch/i386/md.h
===================================================================
RCS file: /cvsroot/src/distrib/utils/sysinst/arch/i386/md.h,v
retrieving revision 1.49
diff -b -u -r1.49 md.h
--- distrib/utils/sysinst/arch/i386/md.h	29 Jan 2004 08:48:24 -0000	1.49
+++ distrib/utils/sysinst/arch/i386/md.h	28 Apr 2004 21:59:43 -0000
@@ -80,9 +80,9 @@
  * Disk names accepted as valid targets for a from-scratch installation.
  *
  * On i386, we allow "wd"  ST-506/IDE disks,  "sd" scsi disks, "ld" logical
- * disks, "ed" IBM ESDI disks
+ * disks, "ed" IBM ESDI disks, "raid" raidframe disks
  */
-#define DISK_NAMES "wd", "sd", "ld", "ed"
+#define DISK_NAMES "wd", "sd", "ld", "ed", "raid"
 
 /*
  * Machine-specific command to write a new label to a disk.
Index: sys/arch/i386/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/conf/INSTALL,v
retrieving revision 1.238
diff -b -u -r1.238 INSTALL
--- sys/arch/i386/conf/INSTALL	16 Feb 2004 17:11:26 -0000	1.238
+++ sys/arch/i386/conf/INSTALL	28 Apr 2004 22:00:58 -0000
@@ -718,7 +718,8 @@
 
 # disk/mass storage pseudo-devices
 #pseudo-device	ccd		4	# concatenated/striped disk devices
-#pseudo-device	raid		4	# RAIDframe disk driver
+pseudo-device	raid		8	# RAIDframe disk driver
+options		RAID_AUTOCONFIG		# auto-configuration of RAID components
 pseudo-device	md		1	# memory disk device (ramdisk)
 #pseudo-device	vnd		4	# disk-like interface to files