Subject: RaidFrame Raid5 question
To: port-alpha@netbsd.org <port-alpha@netbsd.org>
From: sp4rc <sammyshome@gmx.net>
List: port-alpha
Date: 08/29/2005 16:04:33
Hello list,

i am trying to set up an kernelized raid5 array using 5 scsi harddisks
from the same vendor, typ, size, etc.

this is my raid1.conf
------------------------------
START array
1 5 0

START disks
/dev/sd2a
/dev/sd3a
/dev/sd4a
/dev/sd5a
/dev/sd6a

START layout
128 1 1 5

START queue
fifo 100
------------------------------

all scsi harddisks are labelel as followed
------------------------------
# /dev/rsd6c:
type: SCSI
disk: mydisk
label: disk6
flags:
bytes/sector: 512
sectors/track: 369
tracks/cylinder: 22
sectors/cylinder: 8118
cylinders: 12024
total sectors: 97693755
rpm: 7177
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0 

3 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 97693755 0 RAID # (Cyl. 0 - 12034*)
c: 97693755 0 unused 2048 16384 # (Cyl. 0 - 12034*)
------------------------------

to set up the raid array i followed this steps:

raidctl -v -C /var/tmp/raid1.conf
raidctl -v -I 29082005 raid1
raidctl -v -i raid1

at this point, about 2 and a half hours later, the following error
occurs:
------------------------------
Aug 29 17:06:41 proteus /netbsd: sd6(isp0:0:6:0): Check Condition on
CDB: 0x28 
00 04 da a5 c0 00 00 80 00
Aug 29 17:06:41 proteus /netbsd: SENSE KEY: Recovered Error
Aug 29 17:06:41 proteus /netbsd: INFO FIELD: 81438243
Aug 29 17:06:41 proteus /netbsd: ASC/ASCQ: Recovered Data - Data
Auto-Real
located
Aug 29 17:06:41 proteus /netbsd: FRU CODE: 0xe4
Aug 29 17:06:41 proteus /netbsd: SKSV: Actual Retry Count: 1
Aug 29 17:06:41 proteus /netbsd: 
Aug 29 17:06:41 proteus /netbsd: stray kn300 irq 48
Aug 29 17:06:46 proteus /netbsd: sd6(isp0:0:6:0): Check Condition on
CDB: 0x28 
00 04 da d6 c0 00 00 80 00
Aug 29 17:06:46 proteus /netbsd: SENSE KEY: Media Error
Aug 29 17:06:46 proteus /netbsd: INFO FIELD: 81450743
Aug 29 17:06:46 proteus /netbsd: ASC/ASCQ: Unrecovered Read Error
Aug 29 17:06:46 proteus /netbsd: FRU CODE: 0xe4
Aug 29 17:06:46 proteus /netbsd: SKSV: Actual Retry Count: 121
Aug 29 17:06:46 proteus /netbsd: 
Aug 29 17:06:46 proteus /netbsd: raid1: IO Error. Marking /dev/sd6a as
failed.
Aug 29 17:06:46 proteus /netbsd: Unable to verify parity: can't read the
stripe
Aug 29 17:06:46 proteus /netbsd: Could not verify parity
Aug 29 17:06:46 proteus /netbsd: raid1: Error re-writing parity!
------------------------------

so one can assume the harddisk is damaged, but if i disklabel sd6 and
set the a partition to fstype 4.2BSD and then create a newfs (newfs -O 1
/dev/sd6a) on it, a fsck -fy /dev/sd6a doesn't show up any kind of
error. So what's going on here ?! 

I am stumped. Any hints on this?
-- 
Regards
	/sp4rc