From 04b4c0184a3948eb98ce92b543a9409f92851ed6 Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Mon, 14 Feb 2022 11:09:19 -0500 Subject: [PATCH] EX-4812 lipe: Always mkdir config directories Always do "mkdir -p", not just when there isn't a client mount existing. Client mounts can now be created via config-pacemaker. Signed-off-by: Nathaniel Clark Change-Id: I813edd30157279a1164492e747fd154571a72b87 Reviewed-on: https://review.whamcloud.com/46518 Tested-by: jenkins Reviewed-by: James Nunez Reviewed-by: John L. Hammond --- lipe/scripts/stratagem-hp-config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lipe/scripts/stratagem-hp-config.sh b/lipe/scripts/stratagem-hp-config.sh index ae8dc12..b95a459 100755 --- a/lipe/scripts/stratagem-hp-config.sh +++ b/lipe/scripts/stratagem-hp-config.sh @@ -215,12 +215,12 @@ set_param_p "lod.${FS}-*.pool.${FAST_POOL}.spill_threshold_pct" "${FAST_POOL_SPI MOUNTSPEC=$(/opt/ddn/es/tools/mount_lustre_client --dry-run --fs $FS |awk '{ print $4 }') +echo "Creating config directories" +clush -Sa mkdir -p /etc/lpurge/$FS/ /etc/lamigo/ $ROOT/$FS/client + # Create client mount if it doesn't exist if ! crm_resource -QW -r cl-$FS-client > /dev/null 2>&1; then - echo "Creating config directories" - clush -Sa mkdir -p /etc/lpurge/$FS/ /etc/lamigo/ $ROOT/$FS/client - echo "Creating lustre client resource agent" clush -Sg ha_heads crm configure <