test_suite: execute down before leave-resource

This commit is contained in:
Frank Liepold 2014-01-09 09:39:57 +01:00
parent 95cd54d700
commit ef1c865fc4
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ function switch2primary_correct_split_brain
marsadm_do_cmd $new_secondary "invalidate" "$res" || lib_exit 1 marsadm_do_cmd $new_secondary "invalidate" "$res" || lib_exit 1
else else
local lv_dev=$(lv_config_get_lv_device $res) local lv_dev=$(lv_config_get_lv_device $res)
marsadm_do_cmd $new_secondary "down" "$res" || lib_exit 1
marsadm_do_cmd $new_secondary "--force leave-resource" "$res" || \ marsadm_do_cmd $new_secondary "--force leave-resource" "$res" || \
lib_exit 1 lib_exit 1
marsadm_do_cmd $new_secondary "--force join-resource" "$res $lv_dev" \ marsadm_do_cmd $new_secondary "--force join-resource" "$res $lv_dev" \