Subject: Re: Installing onto raid1
To: Brian A. Seklecki <lavalamp@spiritual-machines.org>
From: David Brownlee <abs@netbsd.org>
List: netbsd-help
Date: 08/30/2002 10:00:16
	The i386 installboot is not able to install on a RAID partition.
	Using -b and pointing at a free area of disk (the first cylinder)
	avoids this.

On Mon, 19 Aug 2002, Brian A. Seklecki wrote:

> On Mon, 12 Aug 2002 @ 10:08am (+0100), David Brownlee wrote:
> DB> 	- /usr/mdec/installboot -b 16 /usr/mdec/biosboot.sym /dev/rwd1d
>
>
> One last Q: why "-b 16" ?  From the disklabel(8):
>
>      -b s1bno    Install primary at block number s1bno instead of the default
>                  location for the machine and file system type.  [alpha, pmax,
>                  vax]
>
>      -B s2bno    When hard-coding the blocks of secondary into primary, start
>                  from block s2bno instead of trying to determine the block
>                  numbers occupied by secondary by examining filesystem.  If
>                  this option is supplied, secondary should refer to an actual
>                  secondary bootstrap (rather than the file name of the one
>                  present in filesystem) so that its size can be determined.
>
> ...just curious...
> -lava
>
>
> DB>
> DB> 	- 'raidctl -A root raid0', then reboot.	 The kernel should boot
> DB> 	  from wd0, then automatically use raid0 as the root filesystem.
> DB>
> DB> 	- disklabel wd0 to match wd1. Note, if the c: partition did not
> DB> 	  previously start at offset 0 you will need to use 'disklabel -I'
> DB> 	  (possibly twice to make sure :)
> DB>
> DB> 	- raidctl -a /dev/wd0a raid0
> DB>
> DB> 	- raidctl -F component1 raid0
> DB>
> DB> 	- /usr/mdec/installboot -b 16 /usr/mdec/biosboot.sym /dev/rwd0d