This version (2024/10/24 10:28) is a draft.
Approvals: 0/1

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:

  • hdf5,
  • hdf5-devel
  • munge-devel
  • mariadb-devel
  • pam-devel
  • lua-devel !!!
  • add slurm.sh to profile.d in synclist
  • add /install/postscripts/set_slurmd to postscript list of compute

slurm config directory:

/opt/ohpc/pub/slurm/etc

Mysql/MariaDB:

create database slurm_acct_db;
create user 'slurm'@'localhost' identified by 'password';
grant all on slurm_acct_db.* TO 'slurm'@'localhost';
  • slurm.conf (general conf)
  • slurmdbd.conf (database daemon)
  • topology.conf (infiniband structure, used for scheduling, can be empty)
  • cgroup.conf
  • gres.conf (can be empty)
  • first: restart slurmdb
  • second: restart slurmctld
  • third: slurmd on nodes
  • db consistency +/- two version numbers
  • /etc/munge/munge.key
  • /etc/slurm/
 mysqldump --all-databases | /bin/gzip > slurm_complete-$(date +\%Y\%m\%d\%H\%M).sql.gz
create user 'slurm'@'localhost' identified by 'password';
grant all on slurm_acct_db.* TO 'slurm'@'localhost';
zcat slurm_complete-xxxxxxx | mysql
account    required     pam_slurm.so
  • permits ssh login if user has an active job
  • synced with file /install/hpc81/etc/pam.d/sshd
  • write a script that adds new user to correct account (primary gid)
  • pandoc/slurm/01_install/01_install_and_recovery.txt
  • Last modified: 2024/10/24 10:28
  • by 127.0.0.1