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

LVL 3
xy8088Asked:
Who is Participating?
 
ravenplConnect With a Mentor Commented:
Since You have no software raids defined, I suspect You have hardware raid implemented on the HW controller. Refer controller's guide then.
0
 
ravenplCommented:
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.
0
 
xy8088Author Commented:
Running "cat /proc/mdstat" gives me:

Personalities :
read_ahead not set
unused devices: <none>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.