Today : Sat, 04 Feb 23 .


Fabric Management



edit SideBar


Page: Site.SLURMInstallation - Last Modified : Wed, 30 Jan 13

Installing SLURM

  • Installing the SLURM server on a plain SL6 machine:
yum -y localinstall epel-release-6-8.noarch.rpm
yum -y install munge munge-libs
yum -y install gcc
yum -y install make
yum -y groupinstall "NFS file server"
yum -y groupinstall "MySQL Database server"
yum -y groupinstall "MySQL Database client"
yum -y install mysql-devel

rm -rf  /etc/munge/munge.key
wget -O /etc/munge/munge.key
chown munge:munge /etc/munge/munge.key
chmod  400 /etc/munge/munge.key
service munge start

cd /opt
wget -O slurm-2.3.2.tar.gz 
tar xfvz slurm-2.3.2.tar.gz
cd slurm-2.3.2
make -j 8 install 
cd ..

wget -O /usr/local/etc/slurm.conf
wget -O /usr/local/lib/slurm/
wget -O /usr/local/lib/slurm/

service mysqld start
# if SlurmUser in slurm.conf is slurm as reccomended in the documentation, then add the slurm user:
useradd -r -u 494 -U -c "slurm user" slurm
slurmctld -f /usr/local/etc/slurm.conf
slurmdbd /usr/local/etc/slurmdbd.conf

slurm.conf and slurmdbd.conf files obviously has to be customised according with the local cluster details.
Some manual intervention is required the first time on the mysql DB (see documentation about Accounting).

  • For the SLURM client do the same as above without mysql stuff, and start only the daemon:
/usr/local/sbin/slurmd -f /usr/local/etc/slurm.conf
  • Home directories have to be shared through NFS among the SLURM nodes
  • if SlurmUser=slurm in slurm.conf and slurmdbd.conf, do create the slurm user on all the nodes

For more details have a look at the scripts below, used for the Padova cloud-vm-* testbed:
-> server automatic installation script
-> client automatic installation script

Powered by PmWiki
Skin by CarlosAB

looks borrowed from
More skins here