marsadm: improve wording of split brain messages

This commit is contained in:
Thomas Schoebel-Theuer 2018-03-21 09:32:10 +01:00
parent d84142956a
commit 36fd42c2fd

View File

@ -1098,7 +1098,7 @@ sub detect_splitbrain {
$stamp = $stamp2 if !$stamp || ($stamp2 && $stamp2 < $stamp);
$age = " age ~" . seconds2human(mars_time() - $stamp) if $stamp;
}
lwarn "SPLIT BRAIN of '$res' at '$point'$age\n";
lwarn "SPLIT BRAIN of resource '$res' after logfile '$point'$age\n";
lwarn " hostA = '$host1' logfile_amount='$size1' (" . number2human($size1) . ")\n";
lwarn " hostB = '$host2' logfile_amount='$size2' (" . number2human($size2) . ")\n";
} else {
@ -1115,7 +1115,7 @@ sub detect_splitbrain {
my $nr = $1;
if ($nr == $oldnr) {
$ok = 0;
lwarn "SPLIT BRAIN at '$res' detected: duplicate logfile number $nr\n";
lwarn "SPLIT BRAIN at resource '$res' detected: duplicate logfile number $nr\n";
lwarn "hint: first resolve split brain by 'leave-resource' or 'invalidate'\n";
lwarn "hint: if this does not help, try cleanup via 'log-purge-all'\n";
lwarn "hint: if this does not help, try 'log-purge-all --force'\n";