Subject: Re: RAIDframe installboot
To: None <netbsd-help@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 07/13/2007 08:01:08
On Thu, Jul 12, 2007 at 06:13:58PM -0400, George Georgalis wrote:
> 
> the ffsv1 filesystem in raid0a has an offset of 63;
> and the entire rraid0d has an offset of 63. per below, does
> this answer your question / look correct?
> 
> # /dev/rraid0d:
> type: RAID
> disk: raid
> label: fictitious
> 
> 16 partitions:
> #        size    offset     fstype [fsize bsize cpg/sgs]
>  a:   1024128        63     4.2BSD   1024  8192 46552  # (Cyl.      0*-   1000*)
...
> # /dev/rwd1d:
> type: ESDI
> disk: ST3750640AS     
> label: fictitious
> 
> 5 partitions:
> #        size    offset     fstype [fsize bsize cpg/sgs]
>  a: 1465149105        63       RAID                     # (Cyl.      0*- 1453520)

That isn't going to work (as you found out).
The sector numbers in the raid's disklabel are relative to the raid set
itself, and you shouldn't have left a 63 sector gap at the front.
The bootcode doesn't have access to the label of the raid, and assumes that
the root filesystem is at the start of it.

You might manage to fudge things by making the 'a' partition of the main
disk reference sector 63+64+63=190 (ie where the root fs starts) and
moving the raid entry to 'e'
Try it first by adding the extra ptn as 'e', and interrupting the boot
program (during the countdown) and typing 'boot hd1e'.

	David

-- 
David Laight: david@l8s.co.uk