test_suite: marsadm primary --force needed only for switch of designated primary

This commit is contained in:
Frank Liepold 2014-03-05 08:35:42 +01:00 committed by Thomas Schoebel-Theuer
parent cb21daa338
commit e468217570
1 changed files with 4 additions and 1 deletions

View File

@ -360,7 +360,10 @@ function switch2primary_correct_split_brain
fi
lib_vmsg " $switch2primary_flow_msg_prefix: starting split brain correction, network_cut=$network_cut"
marsadm_do_cmd $new_primary "disconnect" "$res" || lib_exit 1
marsadm_do_cmd $new_primary "primary --force" "$res" || lib_exit 1
# Only to switch the designated primary. The device may not appear, though we omit the
# usual check of post conditions via marsadm_do_cmd.
lib_vmsg " $switch2primary_flow_msg_prefix: special primary --force on $new_primary"
lib_remote_idfile $new_primary "marsadm primary --force $res" || lib_exit 1
marsadm_do_cmd $new_primary "connect" "$res" || lib_exit 1
##marsadm_do_cmd $new_primary "secondary" "$res" || lib_exit 1
# if the new_primary was recreated, the delete-resource in