]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm/clustermd_tests: adjust test cases to support md module changes
authorHeming Zhao <heming.zhao@suse.com>
Tue, 9 Jul 2024 12:04:52 +0000 (20:04 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Wed, 10 Jul 2024 14:07:54 +0000 (16:07 +0200)
Since kernel commit db5e653d7c9f ("md: delay choosing sync action to
md_start_sync()") delays the start of the sync action, clustermd
array sync/resync jobs can happen on any leg of the array. This
commit adjusts the test cases to follow the new kernel layer behavior.

Signed-off-by: Heming Zhao <heming.zhao@suse.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
clustermd_tests/02r10_Manage_re-add
clustermd_tests/02r1_Manage_re-add
clustermd_tests/03r10_switch-recovery
clustermd_tests/03r1_switch-recovery

index 2288a00866bd2e37419bc6229e1c39d310e19562..d8764667ca83492857540315c672107db0fdf891 100644 (file)
@@ -9,7 +9,8 @@ check all state UU
 check all dmesg
 mdadm --manage $md0 --fail $dev0 --remove $dev0
 mdadm --manage $md0 --re-add $dev0
-check $NODE1 recovery
+#non-clustered array also doesn't do sync job
+#check $NODE1 recovery
 check all wait
 check all state UU
 check all dmesg
index d0d13e53fc0c12301024b9280907adc22a4b8078..811df87be81ef6b172b2f33274125f0bd38a06ee 100644 (file)
@@ -9,6 +9,7 @@ check all state UU
 check all dmesg
 mdadm --manage $md0 --fail $dev0 --remove $dev0
 mdadm --manage $md0 --re-add $dev0
+check all wait
 check all state UU
 check all dmesg
 stop_md all $md0
index 867388d04ad82dcd4922b0144919563b25ddfe60..7d0b88125f465325577cbbe51317b9a1fb523b31 100644 (file)
@@ -10,9 +10,9 @@ check all state UU
 check all dmesg
 mdadm --manage $md0 --fail $dev0
 sleep 0.2
-check $NODE1 recovery
+check $NODE1 recovery-remote
 stop_md $NODE1 $md0
-check $NODE2 recovery
+check $NODE2 recovery-remote
 check $NODE2 wait
 check $NODE2 state UU
 check all dmesg
index a1a7cbe71b66a68c2633d414dde71fc13a80ec21..d8483c4582972a18410eef5fe779b0349b547679 100644 (file)
@@ -10,9 +10,9 @@ check all state UU
 check all dmesg
 mdadm --manage $md0 --fail $dev0
 sleep 0.3
-check $NODE1 recovery
+check $NODE1 recovery-remote
 stop_md $NODE1 $md0
-check $NODE2 recovery
+check $NODE2 recovery-remote
 check $NODE2 wait
 check $NODE2 state UU
 check all dmesg