aboutsummaryrefslogtreecommitdiff
path: root/slurm-head-deploy.sh
diff options
context:
space:
mode:
authorArun Isaac2024-08-29 13:15:58 +0100
committerArun Isaac2024-08-29 13:18:15 +0100
commit090e1ca67f7c9f641f19aac8593f64962d4d3130 (patch)
treed19027575c6289b60ff98f8bf4bc0260cc45eb8d /slurm-head-deploy.sh
parent57ea20615fc0b32ccab0f986a6f483cec124e198 (diff)
downloadgn-machines-090e1ca67f7c9f641f19aac8593f64962d4d3130.tar.gz
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.
Diffstat (limited to 'slurm-head-deploy.sh')
-rwxr-xr-xslurm-head-deploy.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/slurm-head-deploy.sh b/slurm-head-deploy.sh
new file mode 100755
index 0000000..b921f18
--- /dev/null
+++ b/slurm-head-deploy.sh
@@ -0,0 +1,13 @@
+#! /bin/sh -xe
+
+##
+## slurm deployment on octopus01 (the head node)
+##
+
+## Install slurm in the same way as the worker nodes.
+./slurm-worker-deploy.sh $(guix build -f slurm.scm)
+
+# Register garbage collector root to prevent `guix gc' from garbage
+# collecting slurm. It is enough to register one gcroot as that marks
+# the whole store item as live.
+sudo ln --force --symbolic /usr/local/sbin/slurmd /var/guix/gcroots