1 |
On 09/05/2013 12:49 PM, Paul Hartman wrote: |
2 |
> Hi, |
3 |
> |
4 |
> I woke up this morning to see the dreaded email from mdadm telling me |
5 |
> one of my drives failed overnight, while I was happily dreaming about |
6 |
> cute puppies and kittens installing a rainbow-colored roof on my |
7 |
> house. The array is a RAID6 (two parity drives) and this is the |
8 |
> current state: |
9 |
> |
10 |
> md0 : active raid6 sdd1[5] sdg1[4] sde1[3](F) sdh1[2] sdf1[1] sdi1[0] |
11 |
> 11720009728 blocks super 1.2 level 6, 512k chunk, algorithm 2 |
12 |
> [6/5] [UUU_UU] |
13 |
> |
14 |
> I've been using RAID in Linux for years, but this is actually the |
15 |
> first time I've had a disk fail in one. |
16 |
> |
17 |
> If I remember correctly, the process should be as simple as: |
18 |
> |
19 |
> #remove the failed disk from the array: |
20 |
> mdadm /dev/md0 -r /dev/sde1 |
21 |
> |
22 |
> #pull the drive, replace with new one, partition it, then add it to the array: |
23 |
> mdadm /dev/md0 -a /dev/sde1 |
24 |
> |
25 |
> and sit back and eat popcorn while I enjoy the blinkenlights for the |
26 |
> next several hours/days? :) Any advice/suggestions for managing this |
27 |
> process any differently? |
28 |
> |
29 |
|
30 |
This is the process I always follow: |
31 |
|
32 |
http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array |
33 |
|
34 |
The sfdisk trick will save you a bit of hassle. |