Impossible to stop raid device
- by Traroth
I'm trying to stop a RAID disk in order to replace it by a new one, as this one is not working properly.
I'm typing mdadm --stop /dev/md1, and I'm getting an error message:
mdadm: fail to stop array /dev/md1: Device or resource busy
I'm getting this message even if I reboot the server, and I can't see a process that could cause this.
The server is working under a Debian with a 2.6.18-4-amd64 kernel. Could you help?
Edit: Mote details about what my colleague tried out.
After unmounting sda1, the command mdadm --remove /dev/md0 /dev/sda1 worked. But now, we still have an error message after mdadm --remove /dev/md1 /dev/sda5:
mdadm: hot remove failed for /dev/sda5: Device or resource busy
I still don't understand completly how the different partitions are mounted, so I suppose there is something I don't understand in the currenct situation...