[Installing] SLURM

1.install dependence package

#yum install readline-devel openssl-devel munge-devel pam-devel mysql-devel postgresql-devel sqlite2-devel sqlite-devel gtk2-devel

2.build & install rpms

#mkdir build
#cd build 
#rpmbuild -ta <path to slurm source>/slurm-2.4.1.tar.bz2 
#rpm --install ~/rpmbuild/RPMS/slurm*.rpm

3.  Configuration of SLURM on the Management Node

Create a SlurmUser

#groupadd -g 106 slurm
#useradd -s /sbin/nologin -d /etc/slurm -u 106 -g slurm slurm
#mkdir -p /var/log/slurm
#chmod 755 /var/log/slurm

Configure the SLURM job credential keys as root

cd /etc/slurm
chown slurm:slurm /etc/slurm/private.key 
chmod 600 /etc/slurm/private.key 
chown slurm:slurm /etc/slurm/public.key 
chmod 600 /etc/slurm/public.key

3.  Configuration of SLURM on the Compute Node

#groupadd -g 106 slurm
#useradd -s /sbin/nologin -d /etc/slurm -u 106 -g slurm slurm
#mkdir -p /var/log/slurm
#chmod 755 /var/log/slurm

Copy the following files from the Management Node to the COMPUTE(X)

#scp /etc/slurm/slurm.conf <Compute Node>:/etc/slurm
#scp /etc/slurm/public.key  <Compute Node>:/etc/slurm
#scp /etc/slurm/private.key  <Compute Node>:/etc/slurm

4. Configuration munge

Creating a Secret Key

dd if=/dev/urandom bs=1 count=1024 >/etc/munge/munge.key