Table of Contents

overview of services

compilation

module purge
module load gnu7/7.2.0
cd /opt/install/src/slurm/slurm-17.11.0
./configure --prefix=/opt/ohpc/pub/slurm
make -j 8 
make install

Prerequisites:

adjustments:

slurm config directory:

/opt/ohpc/pub/slurm/etc

db setup

Mysql/MariaDB:

create database slurm_acct_db;
create user 'slurm'@'localhost' identified by 'password';
grant all on slurm_acct_db.* TO 'slurm'@'localhost';

config files

update procedure

backuping

 mysqldump --all-databases | /bin/gzip > slurm_complete-$(date +\%Y\%m\%d\%H\%M).sql.gz

recovery of database

create user 'slurm'@'localhost' identified by 'password';
grant all on slurm_acct_db.* TO 'slurm'@'localhost';
zcat slurm_complete-xxxxxxx | mysql

pam slurm

account    required     pam_slurm.so

pam user add