From e27bb4124bc879df023d8076897a8b37eae4e579 Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Wed, 29 Nov 2023 17:55:00 +0100 Subject: [PATCH] Chech drbdtwoprimaries: fix false positive Fix #151 --- linux/evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/evocheck.sh b/linux/evocheck.sh index e9a95dc..741f6a8 100755 --- a/linux/evocheck.sh +++ b/linux/evocheck.sh @@ -882,7 +882,7 @@ check_drbd_two_primaries() { failed "IS_DRBDTWOPRIMARIES" "Some DRBD ressources have two primaries, you risk a split brain!" fi elif command -v drbdadm >/dev/null; then - if drbdadm status | grep Primary -A2 | grep peer | grep -q Primary; then + if drbdadm role all 2>&1 | grep -q 'Primary/Primary'; then failed "IS_DRBDTWOPRIMARIES" "Some DRBD ressources have two primaries, you risk a split brain!" fi fi