-
Notifications
You must be signed in to change notification settings - Fork 3
SLURM install guide
Chad Laing edited this page Apr 19, 2016
·
4 revisions
- install
munge
andlibmunge2
- install
slurm-wlm
andslurm-wlm-basic-plugins
(the packageslurm
is not the workload manager) - create a basic
slurm.conf
file by opening/usr/share/doc/slurmctld/slurm-wlm-configurator.html
in a web-browser - save the created file to
/etc/slurm-llnl/slurm.conf
- create the user
slurm
on the system - change ownership of
slurmctld
toslurm
:sudo chown slurm /var/lib/slurm-llnl/slurmctld
- make sure the log-file location in the
slurm.conf
file are writable by userslurm
(eg.chown
the current locations, or change the location to/home/slurm/whatever_the_file_name_is_not_this_literal_text
for the files) - start
slurmctld
withsudo /etc/init.d/slurmctld start
- start
slurmd
withsudo /etc/init.d/slurmd start
- now
sinfo
should give you a non-error, and display the column headers for SLURM jobs - new jobs can be added to the queue with
srun ...
,squeue
will show the job queue,scontrol suspend id
will pause the job with the id specified,scancel id
will cancel the job with the given id.
- SLURM is not in the package manager, so download the latest stable version
- you must install
munge
andmunge-devel
before installing SLURM - follow the
configure
make
sudo make install
installation guide - same as for Debian, create a
slurm.conf
file, but place it:/usr/local/etc/slurm.conf
- create user
slurm
, and change ownership of/usr/local/sbin/slurmctld
- make sure the logfile can be created by user
slurm
- problems were encountered with munge and the default location of SLURM, so the logfile location of munge was changed to syslog with the following:
sudo systemctl edit --system --full munge
- the line was changed to:
ExecStart=/usr/sbin/munged --syslog
- start munge with
sudo systemctl enable munge
thensudo systemctl start munge
- start
sudo /usr/local/sbin/slurmctld start
andsudo /usr/local/sbin/slurmd start
- now
sinfo
,srun
etc. should work