From f162188e8ff35144b52cefba492fe660a1404381 Mon Sep 17 00:00:00 2001 From: Alexandre Ioffe Date: Wed, 21 Sep 2022 12:15:03 -0700 Subject: [PATCH] EX-5932 lipe: stratagem-hp-config.sh has wrong MDTLIST stratagem-hp-config.sh doesn't pick up proper MDTLIST if snapshot agents are running. Fix MDTLIST which is used to configure lpurge Test-Parameters: trivial Signed-off-by: Alexandre Ioffe Change-Id: Ic1d58d56f1acae140122d0b582410c140759e89e Reviewed-on: https://review.whamcloud.com/48619 Reviewed-by: Shuichi Ihara Reviewed-by: Colin Faber Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lipe/scripts/stratagem-hp-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lipe/scripts/stratagem-hp-config.sh b/lipe/scripts/stratagem-hp-config.sh index 66f0819..9b5d531 100755 --- a/lipe/scripts/stratagem-hp-config.sh +++ b/lipe/scripts/stratagem-hp-config.sh @@ -245,7 +245,7 @@ echo "Setting up lpurge (HI:$LPURGE_FREEHI to LO:$LPURGE_FREELO)" # this results in MDTLIST being a list of MDT indexes in format "%04d" # This format is problematic for values greater than 0007, since by # default bash will interpret it as octal -MDTLIST=$(clush -qSN -g ha_heads crm_resource --list-raw|sed -ne "s/mdt\(.*\)-$FS$/\1/p") +MDTLIST=$(clush -qSN -g ha_heads crm_resource --list-raw|sed -ne "s/^mdt\(.*\)-$FS$/\1/p") for OST in $FAST_OSTLIST; do INDEX=$(printf "%04d" 0x$OST) -- 1.8.3.1