From a5306383d22a1bcdf255a3fb4bcd55d2c54683e3 Mon Sep 17 00:00:00 2001 From: Min-Su Shin Date: Fri, 11 Aug 2023 13:37:21 +0900 Subject: [PATCH] Replacing with more general scripts. --- lice/tool_setup_nasfs_client_all_nodes.sh | 25 ----------------------- lice/tool_umount_glusterfs.sh | 21 ------------------- 2 files changed, 46 deletions(-) delete mode 100755 lice/tool_setup_nasfs_client_all_nodes.sh delete mode 100755 lice/tool_umount_glusterfs.sh diff --git a/lice/tool_setup_nasfs_client_all_nodes.sh b/lice/tool_setup_nasfs_client_all_nodes.sh deleted file mode 100755 index 917c4df..0000000 --- a/lice/tool_setup_nasfs_client_all_nodes.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Name of the cluster which defines the clients' names -CLUSTERNAME="lice" -# Last integer index of the minions in the cluster -MINIONLASTIND="14" -# IP of the Gluster server -NASIP="" -# Directory name which corresponds to the source directory in the NAS -NASDIR="" -# NAS username -NASUSER="" -# Directory name which is a mount point on clients -TARGETDIR="/mnt/nas-input" - -RUNCMD="apt -y install cifs-utils smbclient; mkdir ${TARGETDIR}; mount -t cifs //${NASIP}/${NASDIR} ${TARGETDIR} -o user={$NASUSER}; chmod -R 777 ${TARGETDIR}" - -echo "... setuping on ${CLUSTERNAME}-master" -echo $RUNCMD | bash - -for ind in $(seq 0 ${MINIONLASTIND}) -do - echo "... setuping on ${CLUSTERNAME}-minion-${ind}" - ssh ${CLUSTERNAME}-minion-${ind} "${RUNCMD}" -done diff --git a/lice/tool_umount_glusterfs.sh b/lice/tool_umount_glusterfs.sh deleted file mode 100755 index 23f88c4..0000000 --- a/lice/tool_umount_glusterfs.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -# Name of the cluster which defines the clients' names -CLUSTERNAME="lice" -# Last integer index of the minions in the cluster -MINIONLASTIND="14" -# Directory name which is a mount point on clients -TARGETDIR="/mnt/gluster-input" - -# Rest of tasks -RUNCMD="umount ${TARGETDIR}" -# ... Master -echo "... unmounting on ${CLUSTERNAME}-master" -echo $RUNCMD | bash -# ... Minion -for ind in $(seq 0 ${MINIONLASTIND}) -do - echo "... unmounting on ${CLUSTERNAME}-minion-${ind}" - ssh ${CLUSTERNAME}-minion-${ind} "${RUNCMD}" -done - -- GitLab