We can’t remove a disk directly from the array, unless it is failed, so we first have to fail it (if the drive it is failed this is normally already in failed state and this step is not needed):
mdadm --fail /dev/md0 /dev/sda1
and now we can remove it:
mdadm --remove /dev/md0 /dev/sda1
Mes livres CC By-SA : https://ploum.net/livres.html
# Réponse pour 1)
Posté par ploum (site web personnel, Mastodon) . En réponse au journal Avoir un serveur sans trop se casser la tête avec l'administration ?. Évalué à 10.
https://nigibox.wordpress.com/2009/03/08/mdadm-cheat-sheet/
We can’t remove a disk directly from the array, unless it is failed, so we first have to fail it (if the drive it is failed this is normally already in failed state and this step is not needed):
mdadm --fail /dev/md0 /dev/sda1
and now we can remove it:
mdadm --remove /dev/md0 /dev/sda1
Mes livres CC By-SA : https://ploum.net/livres.html