Changes

Jump to navigation Jump to search
439 bytes added ,  19:45, 28 January 2019
Line 123: Line 123:  
* Remove the failed drive
 
* Remove the failed drive
 
  mdadm /dev/md0 --remove /dev/sda
 
  mdadm /dev/md0 --remove /dev/sda
 +
* Add it again
 +
mdadm --manage /dev/mdN -a /dev/sdd1
 +
If a RAID is operated with a spare disk, it will jump in for the disk set to faulty. A rebuild is performed automatically. The disk set to faulty appears in the output of mdadm -D /dev/mdN as faulty spare.
 +
 +
To put it back into the array as a spare disk, it must first be removed using
 +
mdadm --manage /dev/mdN -r /dev/sdX1
 +
and then added again
 +
mdadm --manage /dev/mdN -a /dev/sdd1
 +
 
  root@morpheus:~# ls /dev/mapper/
 
  root@morpheus:~# ls /dev/mapper/
 
     control  lvm-music  lvm-transmission  lvm-video
 
     control  lvm-music  lvm-transmission  lvm-video

Navigation menu