Page MenuHomePhabricator

Slurm Configuration
Updated 2,096 Days AgoPublic

Be sure that the following are installed on the nodes:

$ apt install slurm-wlm munge libslrum-dev mpich ntp mpich libpmi0 libpmix-dev

Configure NTP Server on Head Node

On the head node, spearmint.cse.unr.edu, install ntp.

$ apt install ntp

Head over to /etc/ntp.conf and replace the following lines

pool 0.ubuntu.pool.ntp.org iburst
pool 1.ubuntu.pool.ntp.org iburst
pool 2.ubuntu.pool.ntp.org iburst
pool 3.ubuntu.pool.ntp.org iburst

with

pool 0.us.pool.ntp.org iburst
pool 1.us.pool.ntp.org iburst
pool 2.us.pool.ntp.org iburst
pool 3.us.pool.ntp.org iburst

Restart the NTP server after saving the changes.

$ service ntp restart

Real quick, open the NTP UDP port 123 for incoming connections if there's an UFW firewall enabled.

$ ufw allow from any to any port 123 proto udp

Configure NTP Server on Client Nodes

On the client nodes, spearmint-0.cse.unr.edu, make sure ntpdate is installed.

$ apt install ntpdate ntp

Next, it's important to manually sync time with all of the servers.

$ ntpdate spearmint

Munge Keys

Create the munge keys on the head node and scp that file over to the client nodes.

#on spearmint.cse.unr.edu
$ munged
$ systemctl status munge    #make sure that it is running
$ scp /etc/munge/munge.key cse-admin@spearmint-1.cse.unr.edu:/etc/munge/munge.key

references
https://linuxconfig.org/ntp-server-configuration-on-ubuntu-18-04-bionic-beaver-linux

Last Author
lanle
Last Edited
Mar 27 2019, 11:33 AM

Event Timeline

lanle edited the content of this document. (Show Details)