From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Description of problem:
RHEL3 Update 2 Beta ia64
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 2)
/dev/md0 cannot be stopped with raidstop or mdadm --stop (although
other md devices can be stopped), the kernel gives -EBUSY every time
an attempt is made to stop /dev/md0
Version-Release number of selected component (if applicable):
kernel-2.4.21-12.EL, raidtools-1.00.3-7, mdadm-1.5.0-3
Steps to Reproduce:
# mdadm -C -l 1 -n 2 /dev/md0 /dev/loop1 /dev/loop2
# mdadm --stop /dev/md0
mdadm: fail to stop array /dev/md0: Device or resource busy
# raidstop /dev/md0
/dev/md0: Device or resource busy
(The same sequence works if the device is /dev/md1 or /dev/md2).
The problem is due to the "mdadm --monitor --scan" process that is
started at boot time (/etc/init.d/mdmonitor). If this is stopped,
/dev/md0 can then be stopped.
*** This bug has been marked as a duplicate of 119532 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.