Subject: [Raidframe] How to recover a degraded mirror without a spare?
To: None <firstname.lastname@example.org>
From: Matthew Braithwaite <email@example.com>
Date: 12/01/2005 14:27:50
After two years of solid service, a drive in my Raidframe mirror has
failed, and I'm having trouble finding information on how to recover.
The man pages talk about recovery in terms of reconstruction onto a
spare, but I don't have a spare in my dinky little 1U box.
Instead, I need to replace the failed drive, then recover the mirror.
The naive sequence of operations would be:
2. Replace failed drive with new blank drive
But I'm not sure what I'd to to tell Raidframe that the new wd0d isn't
the wd0d that was there before.
Another worry I had about this procedure is that Raidframe might
become confused on reboot because it find a majority of its database
So then I came up with this sequence:
1. Remove the failed wd0d from the configuration with raidctl -c.
(I think this would leave an intact mirror, but one with a
3. Replace failed drive
5. Introduce the new wd0d as a spare, and reconstruct onto it.
Is this the best way to go about it?
Thanks in advance for any advice!
* * *
# raidctl config file for /dev/raid0c
# numRow numCol numSpare
1 2 0
/dev/wd0d <-- FAILED
# sectPerSU SUsPerParityUnit SUsPerReconUnit RAID_level_1
128 1 1 1
This is NetBSD 1.6.1 on Sparc64.