Replace mdadm: Difference between revisions
From Karmaking
Jump to navigationJump to search
Created page with "1. Mark faulty drive as "failed": <tt> mdadm --fail /dev/md1 /dev/sdb1 </tt> 2. Remove drive: <tt> mdadm --remove /dev/md1 /dev/sdb1 </tt> 3. Add new partitions to arrays: <tt..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
1. Mark faulty drive as "failed": | 1. Mark faulty drive as "failed": | ||
<tt> | |||
mdadm --fail /dev/md1 /dev/sdb1 | <tt>mdadm --fail /dev/md1 /dev/sdb1</tt> | ||
</tt> | |||
2. Remove drive: | 2. Remove drive: | ||
<tt> | |||
mdadm --remove /dev/md1 /dev/sdb1 | <tt>mdadm --remove /dev/md1 /dev/sdb1</tt> | ||
</tt> | |||
3. Copy partition table: | |||
<tt> | |||
mdadm --add /dev/ | <tt>sfdisk -d /dev/sda | sfdisk /dev/sdb</tt> | ||
</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