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
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. Add new partitions to arrays:
3. Add new partitions to arrays:
<tt>
 
mdadm --add /dev/md0 /dev/hdc1
<tt>mdadm --add /dev/md0 /dev/hdc1</tt>
</tt>

Revision as of 08:14, 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. Add new partitions to arrays:

mdadm --add /dev/md0 /dev/hdc1