Subject: Re: RAIDframe installboot
To: None <netbsd-help@netbsd.org>
From: George Georgalis <george@galis.org>
List: netbsd-help
Date: 07/12/2007 18:13:58
On Thu, Jul 12, 2007 at 09:15:25PM +0100, David Laight wrote:
>On Thu, Jul 12, 2007 at 02:26:56PM -0400, George Georgalis wrote:
>> I'm having difficulty making a new raidframe
>> bootable.
>>
>> not sure how I got this way, must have installed
>> wrong secondary or wrong device when building it.
>>
>> ...now raid0a boots up fine with ffsv1 GENERIC in
>> wd0a, from that I tried
>>
>> installboot /dev/rraid0a /usr/mdec/bootxx_ffsv1
>>
>> Which completed without error but when I try booting
>> the raidframe disk solo, it is not able to load
>> secondary.
>>
>> i386 ffsv1 Primary Bootstrap
>> Boot failed (errno 2): can't open /boot
>>
>> How do I make the raidframe disk bootable?
>
>Have you just forgotten to copy /usr/mdec/boot to /boot ?
>
>It needs to exist in the fs at the start of the rf 'disk' - ie 64
>sectors from the start of the mbr partition.
>(modulo some addition checks against any netbsd disklabel in
>sector 1 of the mbr partition.)
root@rock:/root ls -l /usr/mdec/boot /boot
-r--r--r-- 1 root wheel 55308 Jul 10 14:11 /boot
-r--r--r-- 1 root wheel 55308 Jul 12 16:48 /usr/mdec/boot
I copied over the new one from netbsd-3 for grins, trying a boot
with that now.... same problem.
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?
// George
disklabel: Invalid signature in mbr record 0
# /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*)
b: 1573488 1024191 swap # (Cyl. 1000*- 2536*)
d: 1465148928 0 unused 0 0 # (Cyl. 0 - 1430809*)
e: 133120512 2597679 4.2BSD 2048 16384 28744 # (Cyl. 2536*- 132537*)
f: 6758640 135718191 4.2BSD 2048 16384 62584 # (Cyl. 132537*- 139137*)
g: 11264400 142476831 4.2BSD 2048 16384 28336 # (Cyl. 139137*- 150137*)
h: 974848000 153741231 4.2BSD 2048 16384 29152 # (Cyl. 150137*- 1102137*)
i: 336559697 1128589231 4.2BSD 2048 16384 29112 # (Cyl. 1102137*- 1430809*)
# /dev/rwd1d:
type: ESDI
disk: ST3750640AS
label: fictitious
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 1465149105 63 RAID # (Cyl. 0*- 1453520)
b: 1573488 1024318 swap # (Cyl. 1016*- 2577*)
c: 1465149105 63 unused 0 0 # (Cyl. 0*- 1453520)
d: 1465149168 0 unused 0 0 # (Cyl. 0 - 1453520)
disklabel: partitions a and b overlap
--
George Georgalis, information systems scientist <IXOYE><