-
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
mungeandlibmunge2 - install
slurm-wlmandslurm-wlm-basic-plugins(the packageslurmis not the workload manager) - create a basic
slurm.conffile by opening/usr/share/doc/slurmctld/slurm-wlm-configurator.htmlin a web-browser - save the created file to
/etc/slurm-llnl/slurm.conf - create the user
slurmon the system - change ownership of
slurmctldtoslurm:sudo chown slurm /var/lib/slurm-llnl/slurmctld - make sure the log-file location in the
slurm.conffile are writable by userslurm(eg.chownthe current locations, or change the location to/home/slurm/whatever_the_file_name_is_not_this_literal_textfor the files) - start
slurmctldwithsudo /etc/init.d/slurmctld start - start
slurmdwithsudo /etc/init.d/slurmd start - now
sinfoshould give you a non-error, and display the column headers for SLURM jobs - new jobs can be added to the queue with
srun ...,squeuewill show the job queue,scontrol suspend idwill pause the job with the id specified,scancel idwill cancel the job with the given id.
- SLURM is not in the package manager, so download the latest stable version
- you must install
mungeandmunge-develbefore installing SLURM - follow the
configuremakesudo make installinstallation guide - same as for Debian, create a
slurm.conffile, 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 mungethensudo systemctl start munge - start
sudo /usr/local/sbin/slurmctld startandsudo /usr/local/sbin/slurmd start - now
sinfo,srunetc. should work