Subject: Re: Upgrading a RAID 1 system
To: Matthias Scheler <tron@zhadum.de>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 06/16/2004 22:53:03
On Wed, Jun 16, 2004 at 08:57:42PM +0000, Matthias Scheler wrote:
> In article <20040616204307.GK1010@snowdrop.l8s.co.uk>,
> 	David Laight <david@l8s.co.uk> writes:
> >> I've afterwards
> >> remove "boot" from "wd0e" because the manual page claims that the boot
> >> loader will automatically use the partition "a" if "boot" isn't found
> >> on the current partition. But that didn't work, too.
> > That should work, but only if the root filesystem is at the start of the
> > raid set - the partition table of the raid set isn't read from disk.
> 
> The root partition is at the beginning:
> 
> 16 partitions:
> #        size    offset     fstype [fsize bsize cpg/sgs]
>  a:    196608         0     4.2BSD   1024  8192    89  # (Cyl.      0 -    191)
> [...]
> 
> But it doesn't work nevertheless.

mmmm, the relevant code is in src/sys/arch/i386/stand/bootxx/boot1.c
The code should be trying the second open("boot",0) call at the bottom
of the non-loop.
Before that call, bios_sector should contain the sector number of the
base of the relevant partition.
You can't call printf(), but can use putstr() and putint() for diagnostics.

	David

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