mdadm --manage --run stops a running array

From: Lars Ehrhardt <hidden>
Date: 2004-01-07 14:26:09

Hi,

I was creating a documentation about a local raid setup and typed
"mdadm --manage --run /dev/md1"
This was on a running array and the command returned:
mdadm: failed to run array "/dev/md1": Device or ressource busy.

I thought, alright, this makes sense /dev/md1 is already started and
mounted as /, so running it again does not work.

Unfortunately I was not able to do anything useful after that, since all
shell commands, like ls failed. Investigating this a bit on a
testmachine I found out that the raid array was shut-down and marked as
clean due to this run command. So, what happened was that the / fs was
still mounted but the raid-device was not running anymore and thus I
could not do anything useful with the system.

I've tested this on two different machines, running kernel 2.4.23 with
the grsecurity patch.

Is this a bug or expected? In my opinion the run command should not stop
an already running (and mounted) array.

Kind regards

Lars


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help