linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Raidstop /dev/md0 won't work
@ 2002-05-02 21:26 Scott Walter
  2002-05-02 21:52 ` Derek Vadala
  2002-05-03  5:00 ` Neil Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Scott Walter @ 2002-05-02 21:26 UTC (permalink / raw)
  To: linux-raid

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Raidstop /dev/md0 won't work
  2002-05-02 21:26 Raidstop /dev/md0 won't work Scott Walter
@ 2002-05-02 21:52 ` Derek Vadala
  2002-05-03  5:00 ` Neil Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Derek Vadala @ 2002-05-02 21:52 UTC (permalink / raw)
  To: linux-raid; +Cc: Scott Walter

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Raidstop /dev/md0 won't work
  2002-05-02 21:26 Raidstop /dev/md0 won't work Scott Walter
  2002-05-02 21:52 ` Derek Vadala
@ 2002-05-03  5:00 ` Neil Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Brown @ 2002-05-03  5:00 UTC (permalink / raw)
  To: Scott Walter; +Cc: linux-raid

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-03  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-02 21:26 Raidstop /dev/md0 won't work Scott Walter
2002-05-02 21:52 ` Derek Vadala
2002-05-03  5:00 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).