From: Alexandre Ioffe Date: Wed, 21 Sep 2022 19:15:03 +0000 (-0700) Subject: EX-5932 lipe: stratagem-hp-config.sh has wrong MDTLIST X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f162188e8ff35144b52cefba492fe660a1404381;p=fs%2Flustre-release.git 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 --- 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)