I've had a failed HD in my raid array that I have finally bought a
replacement for. It is bigger so it should be large enough. I just want a
sanity check that I am doing the right thing. I have read the man pages,
but hey it's my data, and even though I've got a backup, it is
intimidating doing this for the first time.
Anyway here we go.
wd0 is the "good" HD and wd1 is the new drive.
Partition tables:
# disklabel /dev/wd0c
# Inside MBR partition 3: type A6 start 63 size 234484677
# /dev/wd0c:
type: ESDI
disk: ESDI/IDE disk
label: SAMSUNG SP1213N
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 234493056
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097585 63 4.2BSD 2048 16384 328 # Cyl 0*-
2080
b: 524160 2097648 swap # Cyl 2081 -
2600
c: 234493056 0 unused 0 0 # Cyl 0
-232631
d: 231862932 2621808 RAID # Cyl 2601
-232623*
# disklabel /dev/wd1c
# Inside MBR partition 3: type A6 start 63 size 312576642
# /dev/wd1c:
type: ESDI
disk: ESDI/IDE disk
label: WDC WD1600JB-00R
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 312581808
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097585 63 4.2BSD 2048 16384 328 # Cyl 0*-
2080
b: 524160 2097648 swap # Cyl 2081 -
2600
c: 234493056 0 unused 0 0 # Cyl 0
-232631
d: 231862932 2621808 RAID # Cyl 2601
-232623*
Array status:
# raidctl -s raid0
raid0 Components:
/dev/wd0d: optimal
component1: failed
No spares.
Parity status: DIRTY
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
So according to the raidctl(8) once I add the new HD to the system I do a
raidctl -a /dev/hd1d to add it as a spare, then do a raidctl -F component1
raid0 to force a rebuild. Then I would modify my /etc/raid0.conf to
reflect my new device (which actually won't need modification in my case).
First question: do I have this correct?
Second question: if the rebuild fails at 48% with bad disk block errors
does this mean that wd0 is bad?
Thanks in advance.