Today : Sat, 04 Feb 23 .


INFN-PADOVA wiki


Fabric Management

Notes

PmWiki

edit SideBar

SLURMInstallation

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

Installing SLURM

  • Installing the SLURM server on a plain SL6 machine:
wget http://archives.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
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 http://repo.ba.infn.it/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  http://repo.ba.infn.it/slurm-2.3.2.tar.gz 
tar xfvz slurm-2.3.2.tar.gz
cd slurm-2.3.2
./configure
make -j 8 install 
cd ..

wget -O /usr/local/etc/slurm.conf http://repo.ba.infn.it/slurm.conf
wget -O /usr/local/lib/slurm/auth_munge.so http://repo.ba.infn.it/auth_munge.so
wget -O /usr/local/lib/slurm/crypto_munge.so http://repo.ba.infn.it/crypto_munge.so

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 http://haran.freeshell.org/oswd/sinorca
More skins here