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>
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