Whamcloud - gitweb
EX-4812 lipe: Always mkdir config directories
authorNathaniel Clark <nclark@whamcloud.com>
Mon, 14 Feb 2022 16:09:19 +0000 (11:09 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Mon, 14 Feb 2022 19:27:32 +0000 (19:27 +0000)
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 <nclark@whamcloud.com>
Change-Id: I813edd30157279a1164492e747fd154571a72b87
Reviewed-on: https://review.whamcloud.com/46518
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lipe/scripts/stratagem-hp-config.sh

index ae8dc12..b95a459 100755 (executable)
@@ -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 <<EOF
 primitive $FS-client ocf:ddn:lustre-client meta target-role=Stopped params filesystem=$FS op start timeout=900s op monitor interval=60s op stop timeout=900s