Skip to contentSkip to conversation

Raidstop /dev/md0 won't work

DISCUSSION Scott Walter 3 participants 3 messages May 2, 2002 – May 3, 2002 MD RAID

lore
Share & tools
lore
#0 lore raw

this is probably a very dumb question.. however I am not able to raidstop my raid-array using, which i need to do before running raidreconf.

%> raidstop /dev/md0
/dev/md0: Device or resource busy.
%>

any suggestions... i have already tried unmounting the device.

thanks.

#1 lore raw
Quoted 7 lines · Scott Walter

this is probably a very dumb question.. however I am not able to raidstop my raid-array using, which i need to do before running raidreconf.

%> raidstop /dev/md0
/dev/md0: Device or resource busy.
%>

try doing fuser -m on /dev/md0 to see which processes are using it...

# fuser -m /dev/md0
/dev/md0:             8685c

then us ps to figure out what's up
---
Derek Vadala, [email protected], http://www.cynicism.com/~derek

#2 lore raw
In reply to Scott Walter
Quoted 9 lines · On Thursday May 2, [email protected] wrote:

this is probably a very dumb question.. however I am not able to raidstop my raid-array using, which i need to do before running raidreconf.

%> raidstop /dev/md0
/dev/md0: Device or resource busy.
%>

any suggestions... i have already tried unmounting the device.

This is a bug in raidstop. If you strace you will notice that it opens it twice and before trying to ioctl(STOP...) it.

Upgrade raidtools or use mdadm.

And a quick and dirty:

mv /dev/md0 /dev/mdx
mv /dev/md1 /dev/md0
mv /dev/mdx /dev/md0
raidstop /dev/md1
mv /dev/md0 /dev/mdx
mv /dev/md1 /dev/md0
mv /dev/mdx /dev/md0

should work.

NeilBrown

Quoted 9 lines

thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html