Link to home
Start Free TrialLog in
Avatar of xy8088
xy8088Flag for United States of America

asked on

Replace failed RAID drive

I have an old Redhat box running RAID 5. One of the drives failed and needs to be replaced.

I found instruction below on how to replace it but the instructions leave a few questions unanswered.

"3. Partition the new drive so that the partitions on it are identical to those on the other drive(s) in the array"
How do I do that?

"4. Issue the following command: raidhotadd <raid-device> <disk-partition>"
How do I find out what <raid-device> is and what <disk-partition> is?

Thanks.
5.5.3.2. Rebuilding a RAID array with raidhotadd
 
Should /proc/mdstat show that a problem exists with one of the RAID arrays, the raidhotadd
utility program should be used to rebuild the array. Here are the steps that would need to be performed:
 
1. Determine which disk drive contains the failed partition
 
2. Correct the problem that caused the failure (most likely by replacing the drive)
 
3. Partition the new drive so that the partitions on it are identical to those on the other drive(s) in the array
 
4. Issue the following command:
raidhotadd <raid-device> <disk-partition>
 
5. Monitor /proc/mdstat to watch the rebuild take place. Here is a command that can be used to watch the rebuild as it takes place:
 
watch -n1 cat /proc/mdstat

Open in new window

Avatar of ravenpl
ravenpl
Flag of Poland image

3.
Hmm, I usually do
sfdisk -d /dev/currentMember | sfdisk /dev/newMember
before You ask how You find current and new member refer next question

4.
cat /proc/mdstat # shows all software raids on Your system with members, pick the correct one (is should has failed disks).

You can bring the content here so we'll try figure it out for You.
Avatar of xy8088

ASKER

Running "cat /proc/mdstat" gives me:

Personalities :
read_ahead not set
unused devices: <none>
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial