From af7697efbe6942e7d8614b1d9e03e0998f9c180c Mon Sep 17 00:00:00 2001 From: Jonathan Earl Brassow Date: Wed, 19 Jan 2011 19:22:07 +0000 Subject: [PATCH] Add test to make sure that a log device is retained when a mirror image fails and the policies are set to: mirror_image_fault_policy = "replace" mirror_log_fault_policy = "remove" --- test/t-lvconvert-repair-policy.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/t-lvconvert-repair-policy.sh b/test/t-lvconvert-repair-policy.sh index 9ae25a48a..d27d870e7 100644 --- a/test/t-lvconvert-repair-policy.sh +++ b/test/t-lvconvert-repair-policy.sh @@ -38,6 +38,14 @@ repair 'activation { mirror_image_fault_policy = "remove" }' check linear $vg mirror cleanup $dev1 +# Fail a leg of a mirror. +# Expected result: Mirror (leg replaced, should retain log) +aux disable_dev $dev1 +repair 'activation { mirror_image_fault_policy = "replace" mirror_log_fault_policy = "remove" }' +check mirror $vg mirror +lvs | grep mirror_mlog +cleanup $dev1 + # Fail a leg of a mirror. # Expected result: Mirror (leg replaced) aux disable_dev $dev1 @@ -49,7 +57,7 @@ cleanup $dev1 # Fail a leg of a mirror (use old name for policy specification) # Expected result: Mirror (leg replaced) aux disable_dev $dev1 -repair 'activation { mirror_device_fault_policy = "replace" }' +repair 'activation { mirror_image_fault_policy = "replace" }' check mirror $vg mirror lvs | grep mirror_mlog cleanup $dev1 -- 2.43.5