raid:mdadm:remove_a_disk_from_an_array

This is an old revision of the document!


RAID - mdadm - Remove a disk from an array

A disk cannot be removed directly from an array, unless it is failed.


Mark a disk as failed

NOTE: This step is not needed if the disk is already in a failed state.

mdadm --fail /dev/md0 /dev/sda1

Remove the disk from the array

mdadm --remove /dev/md0 /dev/sda1
<code>
 
----
 
===== Fail and Remove a disk in a single step =====
 
Both of the above actions can be done in a single step:
 
<code bash>
mdadm /dev/md0 --fail /dev/sda1 --remove /dev/sda1
raid/mdadm/remove_a_disk_from_an_array.1631573713.txt.gz · Last modified: 2021/09/13 22:55 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki