Subject: Re: problem with RAIDframe setup (my mistake) setting a root mirror
To: Carl Brewer <carl@bl.echidna.id.au>
From: Greg Oster <oster@cs.usask.ca>
List: netbsd-users
Date: 05/07/2006 17:45:58
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? 

> 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...)

(There's lots more details on the exact problem in various 
mailing-list archives and/or Google...)

Later...

Greg Oster