Subject: re: setting up raid
To: Norm <norm@sandbox.org.uk>
From: matthew green <mrg@eterna.com.au>
List: port-sparc
Date: 08/02/2002 23:06:33
   I'd like to set up a RAID1 configuration on my nice, shiny  (well, slightly
   scuffed)  new sparc5.  Are there any gotchas or tips anyone has on this?
   Anyone tried it?


netbsd/sparc doesn't boot from raid easily.  what one can do instead
is use a small /boot partition that has /netbsd and /boot in it only
(/netbsd & /ofwboot for sparc64 machines.)  the /netbsd is compiled
with options RAID_AUTOCONFIG, which (a) tells the kernel to attempt
to autoconfigure raid components, and (b) look for a raid set that is
marked as 'autoconfigure root' (see "raidctl -A root".)  this avoids
having to hard coded "root on raid0a" in your kernel configuration.

i do this on my ultra1.


one other hack i've thought of recently is to use two sun disk label
components, with one (lets call it 'h') properly aligned, starting at
cylinder 1, and the other (lets call it 'a') 64 (RF_PROTECTED_SECTORS)
earlier, leaving the rest of cylinder 0 "wasted".  then, we configure
the raid on the 'a' partition but tell the prom to boot from the 'h'
partition.  but this is completely untested...