From 36fd42c2fd23dfd1e79b1e66c570028aa80ae422 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 21 Mar 2018 09:32:10 +0100 Subject: [PATCH] marsadm: improve wording of split brain messages --- userspace/marsadm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userspace/marsadm b/userspace/marsadm index ecfd1fc7..6a0f2b21 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -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";