Subject: Re: problem with RAIDframe setup (my mistake) setting a root mirror
To: Greg Oster <oster@cs.usask.ca>
From: Carl Brewer <carl@bl.echidna.id.au>
List: netbsd-users
Date: 05/08/2006 09:50:10
Greg Oster wrote:
> Carl Brewer writes:
>> Hello,
>>
>> I've made some mistake with disklabel I think, trying to set up a root
>> mirror on a pair of 160GB IDE HDD's on an i386 box.
> 
> You havn't said, but I highly suspect these are Seagate drives, yes? 

Yes, on an oldish, 1999 AOpen PA3000 (MX34) MB, I had to flash the BIOS
to get it to see the disks.

>> Fresh install of NetBSD i386 3.0.
>>
>> When I run the reconstruct to bring the second disk online :
>>
>> {24} raidctl -S raid0
>> Reconstruction is 0% complete.
>> Parity Re-write is 100% complete.
>> Copyback is 100% complete.
>> Reconstruction status:
>>   85% |**********************************     | ETA:    12:16 /
>>
>> and then this in /var/log/messages :
>>
>> May  8 13:45:54  /netbsd: wd0a: error reading fsbn 268435392 of 
>> 268435392-268435519 (wd0 bn 268435455; cn 266305 tn 0 sn 15), retrying
> 
> Search for "268435392" in Google...  You havn't done anything wrong, 
> and it's not a RAIDframe issue -- some Seagate drives need a "quirk 
> entry" to operate with NetBSD 3.0...  One quick solution is to simply 
> rebuild a kernel with the approprate tweak to src/sys/dev/ata/wd.c
> Here's the relevant pullup:
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ata/wd.c.diff?r1=1.274.2.8&r2=1.274.2.9
> 
> (I had a similar problem, and just added these lines:
> 
> +       { "ST3250824A*",
> +         WD_QUIRK_FORCE_LBA48 },
> 
> to the appropriate table in wd.c... that's worked well enough for 
> me...)

heh!  I'll try that, thankyou.   I'd never have thought to grovel
for that number.