Subject: Re: i386 booting into RAID?
To: Malcolm Herbert <Malcolm.Herbert@sci.monash.edu.au>
From: Malcolm Herbert <mjch@mjch.net>
List: netbsd-users
Date: 06/22/2005 18:55:26
On 22 Jun 2005, at 16:14, Malcolm Herbert wrote:
> I'd then define wd0a as starting at 126+X from the start of wd0 but I 
> don't know X, which is the size of the RAIDlabel ... is it 63 sectors 
> as the disklabel is?

I took a peek at the first meg or so of both wd0 and raid0 once I'd 
built a filesystem on raid0a and found that raid0a is exactly 190 
sectors from the beginning of wd0:

|ananke[/public/mumble] 57v#: grep kvh *.hex
|raid0d.hex:0000fee0  00 00 00 00 00 00 00 00  00 00 00 00 6b 76 68 21  
|............kvh!|
|wd0d.hex:0001fce0  00 00 00 00 00 00 00 00  00 00 00 00 6b 76 68 21  
|............kvh!|
|ananke[/public/mumble] 58v#: gsnull
|GS>16#0001fce0 16#0000fee0 sub ==
|65024
|GS>65024 512 div ==
|127.0
|GS>63 127 add ==
|190

Obviously this will only work if the raid configuration is set up 
correctly ... can't guarantee that number will stay the same all the 
time!

-- 
Malcolm Herbert
Computer Support Officer
School of Geosciences
Monash University
ph 9905 4881