U
U
usja2015-09-19 10:57:03
RAID
usja, 2015-09-19 10:57:03

How to replace a hard drive in software RAID 5?

Good afternoon, comrades.
There was a problem:
Software RAID 5 was assembled on hp xw4600 on 4 x 250 GB hard drives. One hard drive failed. Now the system is degraded. Winchester I want to replace. There is a 500 GB replacement. It is clear that only 250 of them will be used. Well, it's not scary.
Tell me how to replace it correctly so that the system does not fly. Installed Centos6. RAID was going to functionality hp xw4600.
If you connect a new screw through madm, will everything work out or do you need to use the hp utility?

[[email protected] ~]# mdadm -Q --detail /dev/md0
/dev/md0:
        Version : imsm
     Raid Level : container
  Total Devices : 3

Working Devices : 3


           UUID : ad8819fc:eee231fb:489cbf9d:643472c6
  Member Arrays : /dev/md/Volume0

    Number   Major   Minor   RaidDevice

       0       8        0        -        /dev/sda
       1       8       16        -        /dev/sdb
       2       8       48        -        /dev/sdd

As you can see, /dev/sdc has gone. Turned it off. The screw found what does not work.
I beg you to tell me how to restore the RAID by replacing the hard drive.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Armenian Radio, 2015-09-19
@gbg

Make a backup of your data. Necessarily. RAID5 can die during a rebuild.
Make a dead disk fail
Make a dead disk remove
Replace the drive if the interface allows. Otherwise, shut down and change the disk.
Make a new disk add
Do not forget to look in /proc/mdstat on the way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question