65-md-incremental-imsm.rules: check if md raid is already running
authorHarald Hoyer <harald@redhat.com>
Wed, 16 Sep 2009 14:10:09 +0000 (16:10 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 16 Sep 2009 14:10:09 +0000 (16:10 +0200)
modules.d/90mdraid/65-md-incremental-imsm.rules

index 750a794..93715f5 100644 (file)
@@ -58,6 +58,9 @@ GOTO="end_raidstart"
 
 LABEL="do_raidstart"
 
+# check if array is not inactive anymore
+TEST=="md/array_state", ATTR{md/array_state}!="|inactive", GOTO="end_raidstart"
+
 RUN+="/bin/sh -c 'ln -s /sbin/md_finished.sh /initqueue-finished/md_finished.sh;/sbin/initqueue --settled --onetime --unique /sbin/mdraid_start'"
 
 LABEL="end_raidstart"