How to get rid of a stubborn 'removed' device in mdadm
- by T.J. Crowder
One of my server's drives failed and so I removed the failed drive from all three relevant arrays, had the drive swapped out, and then added the new drive to the arrays. Two of the arrays worked perfectly. The third added the drive back as a spare, and there's an odd "removed" entry in the mdadm details.
I tried both
mdadm /dev/md2 --remove…