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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
ravenplCommented:
Since You have no software raids defined, I suspect You have hardware raid implemented on the HW controller. Refer controller's guide then.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.