Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 49732 - raidstop always fails on /dev/md0
raidstop always fails on /dev/md0
Product: Red Hat Linux
Classification: Retired
Component: raidtools (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Doug Ledford
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-07-23 12:15 EDT by Kees Cook
Modified: 2007-04-18 12:35 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-11-27 17:40:06 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kees Cook 2001-07-23 12:15:44 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Description of problem:
Trying to run "raidstop /dev/md0" will always report that the raid is 
still in use.

How reproducible:

Steps to Reproduce:
1. create and start a raid on /dev/md0
2. run "raidstop /dev/md0"
3. poof, error.

Actual Results:  raidstop claims that md0 is still in use.

Expected Results:  Raid should stop.

Additional info:

It looks like the raidtools are doing a version check on the md driver 
(version.c), but for some reason, the "close" has been commented out, and 
this leaves /dev/md0 open, which increases the usage counter in the md 
driver, so that the "stop" IOCTL will fail.

I worked around this by hex-editing raidstop (I didn't have the source at 
the time) to use /dev/md1 for version checking (it's hardcoded in the 
source).  This left the counters for md0 untouched, and I was able to stop 
the raid.

This is a serious problem for anyone working with raids where the raid 
does not live from boot to boot.
Comment 1 Arjan van de Ven 2001-12-06 15:58:15 EST
Weird.. I do mkraid/raidstart and later raidstop a lot and it never fails for me
unless a filesystem is mounted...

Note You need to log in before you can comment on or make changes to this bug.