View on GitHub

Carme-Docu

Documentation Project for Carme

Install and Configure SLURM

Create mysql database for SLURM

First, we create a new mysql database that is used for SLURM accounting. It is assumed that the mysql root account is root. Open the mysql database as root

# mysql -u root

Enter the following lines to create the SLURM database.

create database slurm_acct_db;
create user 'slurm'@'localhost';
set password for 'slurm'@'localhost' = password('slurmdbpasswd');
grant usage on *.* to 'slurm'@'localhost';
grant all privileges on slurm_acct_db.* to 'slurm'@'localhost';
flush privileges;
exit

A mysql database was created with the following parameters:

NOTE: Do not change the above values of db-user and db-password, since the values as stated here are required by the CarmeConfig as CARME_SLURM_StorageUser and CARME_SLURM_StoragePass!

Install and Configure SLURM on the headnode and all nodes

You can start the SLURM installation and configuration with

# bash carme-install-and-configure-slurm.sh

NOTE: If you use cgroups as specified by you in CarmeConfig, you have to edit /etc/default/grub manually, since it is not done by the script (for more details about SLURM and cgroups on Debian based systems see here).

After those steps, SLURM is installed on the headnode and all the compute nodes, your cluster is created in the SLURM database and you are able to add users to SLURM.