I am trying to add a new drive to replace a failed drive on my RAID1 OpenBSD system. I have read the available documentation but can't get the drive added permanently. Here's what I've done so far-

First, add the drive as a spare:

# raidctl -a /dev/wd1d raid0

Checking the status gives:

# raidctl -s raid0
raid0 Components:
           /dev/wd0d: optimal
          component1: failed
Spares:
           /dev/wd1d: spare
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.

Forcing the reconstruction of the array:

# raidctl -vF component1 raid0
Reconstruction status:
          100% |                                       | ETA:    00:00 /

Now the status looks like this (after about 2 hours of rebuild time):

# raidctl -s raid0
raid0 Components:
           /dev/wd0d: optimal
          component1: spared
Spares:
           /dev/wd1d: used_spare
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.


As far as I can tell the second drive is now part of the array as a spare. This is the second time I've completed these steps which explains why the parity is clean - I've already rebuilt the parity earlier.

My config file looks like this:

# more /etc/raid0.conf
START array
1 2 0
START disks
/dev/wd0d
/dev/wd1d
START layout
128 1 1 1
START queue
fifo 100


If I reboot the machine it will come up but the second drive (/dev/wd1d) is still in the failed state? I suspect that I need to reconfigure the array to make wd1d a permanent part of the array. However, I am not sure how that would be done and I don't want to make a mistake and trash the array.

What do I need to do to make the spare a permanent part of the array so that on the next system boot it will have both drives in "optimal" state?

Any feedback would be most appreciated...

Thanks,
Jeff
--
Jeffrey C. Smith                                   Phone: 512.692.7607
RevolutionONE                                      Cell : 512.965.3898
j...@revolutionone.com

Reply via email to