blob: ee9b3b6709b368a66bf0bdaeb18dc8fe201fdf97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/usr/bin/env bash
# This script installs OpenHPC on a bare CentOS machine.
# The base of this script is from the docs-ohpc package at
# /opt/ohpc/pub/doc/recipes/centos7/aarch64/warewulf/slurm/recipe.sh
# For more information, see the OpenHPC installation guide, Apendix A.
# Requires input.local to set environment correctly beforehand.
######################################################
# Stage 08: Master & slave restart
set -ex
. ./input.local
if [[ ${node_is_master} -eq 0 ]]; then
echo "This script only runs on the master node"
exit 0
fi
# ------------------------------------
# Resource Manager Startup (Section 6)
# ------------------------------------
systemctl enable munge
systemctl enable slurmctld
systemctl restart munge
systemctl restart slurmctld
# Start slurm on all compute nodes
for node in "${c_name[@]}"; do
pdsh -w $node systemctl restart slurmd
done
|