mdadm_raid_1_replace_disk
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mdadm_raid_1_replace_disk [2015/05/14 08:26] – [mdadm - replace failed RAID1 disk] admin | mdadm_raid_1_replace_disk [2015/05/14 08:36] – [Speed up rebuild] admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
~~TOC~~ | ~~TOC~~ | ||
=====mdadm - replace failed RAID1 disk===== | =====mdadm - replace failed RAID1 disk===== | ||
+ | ====Check and remove disk==== | ||
* Check status:< | * Check status:< | ||
Personalities : [raid1] | Personalities : [raid1] | ||
Line 29: | Line 30: | ||
* Check the serial number for the **good** drive:< | * Check the serial number for the **good** drive:< | ||
Serial Number: | Serial Number: | ||
+ | ====Replace drive==== | ||
* Replace the failed drive, double check the serial number on the drive. | * Replace the failed drive, double check the serial number on the drive. | ||
* Copy boot sector / partition table to new drive:< | * Copy boot sector / partition table to new drive:< | ||
+ | ====Rebuild RAID1 array==== | ||
* Put new drive in array:< | * Put new drive in array:< | ||
mdadm /dev/md126 -a /dev/sda2 | mdadm /dev/md126 -a /dev/sda2 | ||
Line 51: | Line 54: | ||
| | ||
unused devices: < | unused devices: < | ||
+ | ====Speed up rebuild==== | ||
+ | * Show current min/max limit:< | ||
+ | sysctl dev.raid.speed_limit_max</ | ||
+ | * Increase speed:< | ||
+ |
mdadm_raid_1_replace_disk.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1