Subject: Re: RAIDFrame on Root
To: Caffeinate The World <mochaexpress@yahoo.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 04/15/2003 23:05:07
On Mon, Apr 14, 2003 at 03:19:33PM -0700, Caffeinate The World wrote:
> On alpha and pmax, you can put root / on a raid1. How do you tell it to
> boot from raid1a or raid2a if both are bootable.

it doesn't boot from the raid per se. It'll still boot from sd0a or
sd1a (or whatever your disks are), but it the a partition is type
raid, it'll add RF_PROTECTED_SECTORS to the partition offset, to point
to the first partition of the raid. So you can only boot from the
first partition of the raid. This also mean your boot partition in the
raid has to start at offset 0.

> In addition if you
> have two kernels (netbsd and netbsd.old) on raid0a, how do you tell it
> to boot from raid0a netbsd.old?

I think it's -file netbsd.old


> 
> On the alpha, at the >>> prompt I could do boot dka0, but since it's a
> raid set now and not dka0...
> 
> Can I do something like:
> 
> boot dka0 -file /netbsd.old -flags "root=/dev/raid0a"
>      ^^^^-- does that matter?

boot dka0 -file netbsd.old

You can't specify root on raid0a from the boot prompt. You have to
use raidctl -A root on the raid you want to use as root (e.g.
raidctl -A root raid0). Make sure no other raid volume is marked root
in your system.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--