Whamcloud - gitweb
EX-5932 lipe: stratagem-hp-config.sh has wrong MDTLIST
authorAlexandre Ioffe <aioffe@ddn.com>
Wed, 21 Sep 2022 19:15:03 +0000 (12:15 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Oct 2022 06:13:29 +0000 (06:13 +0000)
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 <aioffe@ddn.com>
Change-Id: Ic1d58d56f1acae140122d0b582410c140759e89e
Reviewed-on: https://review.whamcloud.com/48619
Reviewed-by: Shuichi Ihara <sihara@ddn.com>
Reviewed-by: Colin Faber <cfaber@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/scripts/stratagem-hp-config.sh

index 66f0819..9b5d531 100755 (executable)
@@ -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)