Re: Raidstop /dev/md0 won't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux