1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

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"
This commit is contained in:
Jonathan Earl Brassow 2011-01-19 19:22:07 +00:00
parent 4dca082776
commit f0306e63b2

View File

@ -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