Subject: Re: cannot boot off raid
To: Current Users <current-users@netbsd.org>
From: Luke Mewburn <lukem@wasabisystems.com>
List: current-users
Date: 03/17/2001 08:46:33
On Fri, Mar 16, 2001 at 11:36:50PM +0200, Jukka Marin wrote:
> On Sat, Mar 17, 2001 at 07:09:04AM +1100, Luke Mewburn wrote:
> > On Fri, Mar 16, 2001 at 10:05:41PM +0200, Jukka Marin wrote:
> > > I'm trying to boot off a raid1 partition (kernel is being loaded from
> > > a non-raid disk).  I get (on i385, NetBSD1.5R):
> > 
> > what's the full disklabels of wd4 and raid0?
> 
> # /dev/rwd4d:
> type: RAID
> disk: ibm45g
> label: 
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 16
> sectors/cylinder: 1008
> cylinders: 89355
> total sectors: 90069840
> rpm: 7200
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # microseconds
> track-to-track seek: 0  # microseconds
> drivedata: 0 
> 
> 5 partitions:
> #        size   offset     fstype   [fsize bsize cpg/sgs]
>   c: 90069840        0     unused        0     0         # (Cyl.    0 - 89354)
>   d: 90069840        0     unused        0     0         # (Cyl.    0 - 89354)
>   e: 90069776       63     4.2BSD     1024  8192     0   # (Cyl.    0*-89354*)
			     ^^^^^^
there's your problem -----------|

make this type `RAID' for raid components, not type `4.2BSD'.

if you check your dmesg before the root on raid0 stuff, you'll
probably find that there aren't any raid config messages. my box
(which has RAID types for the wdXe components), prints the following:

    biomask ef45 netmask ff65 ttymask ffe7
    Kernelized RAIDframe activated
    RAID autoconfigure
    Configuring raid0:
    RAIDFRAME: protectedSectors is 64
    RAIDFRAME: Configure (RAID Level 1): total number of sectors is 3931136
    (1919 MB)
    RAIDFRAME(RAID Level 1): Using 6 floating recon bufs with no head sep limit
    RAID autoconfigure
    [...]
    boot device: raid0
    root on raid0a dumps on raid0b
    root file system type: ffs


also, the bootblocks use the RAID type to do the magic with respect to
loading the kernel off a raidframe mirror, even though the /boot
bootblocks should come off a real wd0 partition.

luke.

-- 
Luke Mewburn  <lukem@wasabisystems.com>  http://www.wasabisystems.com
Luke Mewburn     <lukem@netbsd.org>      http://www.netbsd.org
Wasabi Systems - providing NetBSD sales, support and service.