Replace mdadm: Difference between revisions
From Karmaking
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
<tt>mdadm --remove /dev/md1 /dev/sdb1</tt> | <tt>mdadm --remove /dev/md1 /dev/sdb1</tt> | ||
3. | 3. Copy partition table: | ||
<tt>mdadm --add /dev/ | <tt>sfdisk -d /dev/sda | sfdisk /dev/sdb</tt> | ||
4. Add new partitions to arrays: | |||
<tt>mdadm --add /dev/md1 /dev/sdb1</tt> | |||
Latest revision as of 08:19, 5 June 2012
1. Mark faulty drive as "failed":
mdadm --fail /dev/md1 /dev/sdb1
2. Remove drive:
mdadm --remove /dev/md1 /dev/sdb1
3. Copy partition table:
sfdisk -d /dev/sda | sfdisk /dev/sdb
4. Add new partitions to arrays:
mdadm --add /dev/md1 /dev/sdb1