Mark disk as failed

mdadm

sudo mdadm --fail {{/dev/md0}} {{/dev/sdXN}}

click the source code to copy install mdadm on any operating system with command-not-found.com