From ae2668b26534ee91ab2716fd6846bfc191ea1132 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Fri, 18 Sep 2020 11:39:12 +0200 Subject: [PATCH] marsadm: hint admins on --ignore-sync --- userspace/marsadm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/userspace/marsadm b/userspace/marsadm index 7f132202..9fbdb4a2 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -2300,7 +2300,10 @@ sub check_sync_finished { } else { lwarn "Changing the primary role during sync is dangerous for data consistency on host '$peer'!\n"; } - ldie "First wait for sync finished before trying to switch primary!\n" unless (defined($do_force) && $do_force); + unless ($do_force) { + lprint "HINT: consider the option --ignore-sync if you are sure that you want to restart the sync\n"; + ldie "First wait for sync finished before primary handover, or use --ignore-sync\n"; + } } lprint "OK, it seems that sync has finished on host '$peer'.\n"; }