Raidstop /dev/md0 won"t work
am 02.05.2002 23:26:56 von 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.
%>
any suggestions... i have already tried unmounting the device.
thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Raidstop /dev/md0 won"t work
am 02.05.2002 23:52:05 von Derek Vadala
On Thu, 2 May 2002, Scott Walter 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.
> %>
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, derek@cynicism.com, http://www.cynicism.com/~derek
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Raidstop /dev/md0 won"t work
am 03.05.2002 07:00:58 von Neil Brown
On Thursday May 2, walter@cognigencorp.com 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
>
> thanks.
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html