From 090e1ca67f7c9f641f19aac8593f64962d4d3130 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 29 Aug 2024 13:15:58 +0100 Subject: Add slurm deployment scripts for octopus. * slurm-deploy.sh: Delete file. * slurm-head-deploy.sh, slurm-worker-deploy.sh: New files. * slurm.scm: Replace tux04 with octopus in comment. --- slurm-worker-deploy.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 slurm-worker-deploy.sh (limited to 'slurm-worker-deploy.sh') diff --git a/slurm-worker-deploy.sh b/slurm-worker-deploy.sh new file mode 100755 index 0000000..cf7a583 --- /dev/null +++ b/slurm-worker-deploy.sh @@ -0,0 +1,30 @@ +#! /bin/sh -xe + +## +## slurm deployment on octopus worker nodes +## + +case $1 in + "") + echo "Usage: $0 SLURM_STORE_ITEM" + exit 1 + ;; + *) + slurm=$1 + echo $slurm + ;; +esac + +# Symlink slurm daemon executables and systemd service files. +# for executable in slurmctld slurmdbd slurmd slurmrestd; +for executable in slurmctld slurmdbd slurmd; +do + sudo ln --force --symbolic $slurm/sbin/$executable /usr/local/sbin/$executable + sudo ln --force --symbolic $slurm/etc/$executable.service /etc/systemd/system/$executable.service +done + +# Symlink slurm client commands. +for executable in sacct salloc sbatch scancel sdiag smap squeue srun sstat sacctmgr sattach sbcast scontrol sinfo sprio sreport sshare strigger +do + sudo ln --force --symbolic $slurm/bin/$executable /usr/local/bin/$executable +done -- cgit v1.2.3