How To Install slurm on CentOS 8

slurm is Simple Linux Utility for Resource Management

Introduction

In this tutorial we learn how to install slurm on CentOS 8.

What is slurm

Slurm is an open source, fault-tolerant, and highly scalable cluster management and job scheduling system for Linux clusters. Components include machine status, partition management, job management, scheduling and accounting modules.

We can use yum or dnf to install slurm on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install slurm.

Install slurm on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install slurm using dnf by running the following command:

sudo dnf -y install slurm

Install slurm on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install slurm using yum by running the following command:

sudo yum -y install slurm

How To Uninstall slurm on CentOS 8

To uninstall only the slurm package we can use the following command:

sudo dnf remove slurm

slurm Package Contents on CentOS 8

/etc/logrotate.d/slurm
/etc/slurm
/etc/slurm/cgroup.conf
/etc/slurm/cgroup.conf.example
/etc/slurm/slurm.conf
/etc/slurm/slurm.conf.example
/run/slurm
/usr/bin/sacct
/usr/bin/sacctmgr
/usr/bin/salloc
/usr/bin/sattach
/usr/bin/sbatch
/usr/bin/sbcast
/usr/bin/scancel
/usr/bin/scontrol
/usr/bin/scrontab
/usr/bin/sdiag
/usr/bin/sh5util
/usr/bin/sinfo
/usr/bin/slurm-setuser
/usr/bin/sprio
/usr/bin/squeue
/usr/bin/sreport
/usr/bin/srun
/usr/bin/sshare
/usr/bin/sstat
/usr/bin/strigger
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/33d0aef01114a5bbf69878e02131091bbd0f4d
/usr/lib/.build-id/10
/usr/lib/.build-id/10/06194b3e6c7e7aec37663900e42727ab6976ed
/usr/lib/.build-id/18
/usr/lib/.build-id/18/4c013a3e2e4744e941b1abb57177186799edd4
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/7c946169e03deb7e5159691a1efaf9f30030d6
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/1b7429b784961d44de0a835ec12734b6619aa4
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/0a2af17a382ceca3b9c4f21b354821a462ed51
/usr/lib/.build-id/21
/usr/lib/.build-id/21/47f7db52b1363ba4d398b952f2b26a823cd913
/usr/lib/.build-id/24
/usr/lib/.build-id/24/ef1f126b5f02f3795eeb88c4fd65372c5a4607
/usr/lib/.build-id/27
/usr/lib/.build-id/27/99f6de44f5831e28b00669f122c3000a2ec5af
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/dabb4c5ceb0b61c03562c7eb1940cd6851c5ae
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/dc3e97493f1ae01e787fc87336a21e7ae3d955
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/f730ea9e4790707cfe18f77f23700684786429
/usr/lib/.build-id/34
/usr/lib/.build-id/34/b16a71f8ba0eff150c02199211a71385956a61
/usr/lib/.build-id/34/d7644953a280ea9a2243bcadd5af9bf10cfab5
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/6914fc3c4ab60683e38e72c2a6bd1b00326865
/usr/lib/.build-id/3f/bbba57bd1fe3ee5eb4d5de23d8ebfc06e54872
/usr/lib/.build-id/40
/usr/lib/.build-id/40/04583a7454664b1ebb1423ff36fb97da79c4fe
/usr/lib/.build-id/43
/usr/lib/.build-id/43/d2d3d7b8272ce439cddafe94279b702727df55
/usr/lib/.build-id/44
/usr/lib/.build-id/44/40e8ce04db75cf59de0d61604e1595ebcece80
/usr/lib/.build-id/46
/usr/lib/.build-id/46/eda338eb9a58eac5fb1ae2a0fc7ebe4efe7b69
/usr/lib/.build-id/49
/usr/lib/.build-id/49/3301c1e9428a89f63ac2731aa0b312326b8c02
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/2a3ee4fbeb306cb9de6123e5f10c3f2b9abe8a
/usr/lib/.build-id/54
/usr/lib/.build-id/54/214a7527257e1369ce41e1f375a79791591836
/usr/lib/.build-id/56
/usr/lib/.build-id/56/a74d26a16de9fa2904b9d0801981a6e348f63a
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/15248a8173b41a8feb47c4ed35a4844b824744
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/cf578acd1c273eba33b39f0c585a534a5a32d9
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/c426be73d9019df38f2f9ef0fa35ee52b15652
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/fdc41ba7e757d89b559226e7c36d8a0e3f7c2d
/usr/lib/.build-id/63
/usr/lib/.build-id/63/0e729120ca18f63906fa72d182b12763ce0b6b
/usr/lib/.build-id/64
/usr/lib/.build-id/64/09b1f5e1197e8fe8f1b6bebb2d626cd6864bc2
/usr/lib/.build-id/64/ec361e09f58710fa1cad908ec111bb7edfd885
/usr/lib/.build-id/67
/usr/lib/.build-id/67/0d982009f2b945c887448e810b069ec907d668
/usr/lib/.build-id/67/d1c634e76e281502c3e8a0689a7507080451fd
/usr/lib/.build-id/67/fd5412744d9efbc272b630ab9b75d51714207a
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/042be0bbb73dc8634585d2f4321370c760ac78
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/49a2bf4ec6118b2b65001a9186818341786e0a
/usr/lib/.build-id/6e/fa5e6add3c25ce657ff5aaaedd29acfe78df24
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/2eb41445a8635333ac0f11444646c4ea1bde7d
/usr/lib/.build-id/70
/usr/lib/.build-id/70/91a5b7c20af4baa9e3b2a660754b1c1e685b67
/usr/lib/.build-id/76
/usr/lib/.build-id/76/fa30e2cb8ba9e34aecbcab96fadb7c96683175
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/7ba5254af2145005730b4e3cd4224c3bee55f2
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/6cf742c925cd7837c1dde07e9e36112a6657c4
/usr/lib/.build-id/82
/usr/lib/.build-id/82/1c4929a7819cf391916df2ac85bf4dc0a19d85
/usr/lib/.build-id/84
/usr/lib/.build-id/84/6ff450292ad6a5c4fb8549d4e4643a021962dd
/usr/lib/.build-id/86
/usr/lib/.build-id/86/215148ab34af8cf55619b822dddb1a3a39d1ef
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/f9a476e0752eeeb7045788a089abe4c4607229
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/128297e4acc3fedd7acc34b091f12c4cc12bef
/usr/lib/.build-id/8d/21f9e6b2f68d025a3230112388972e9c98f621
/usr/lib/.build-id/8d/d06c78c9fc80819bc40a691d492e9448482373
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/134b4327f77c87259783b49c0f4a6c205c6b2d
/usr/lib/.build-id/8f/40f650de0ed5bdf53d2be883ef96d3ce9effe2
/usr/lib/.build-id/92
/usr/lib/.build-id/92/ea21f89c1e7caecf4a9a6c32bed46e5f8063a0
/usr/lib/.build-id/93
/usr/lib/.build-id/93/f6ef81893e524bbb6b6d734af81a012f38407a
/usr/lib/.build-id/95
/usr/lib/.build-id/95/c92df6f81c57b3530476d03a564fc45d38fa8d
/usr/lib/.build-id/95/f70a4052f445f111e366991339774ccadda174
/usr/lib/.build-id/97
/usr/lib/.build-id/97/ba54d252ccb99e8c6e58acd8419d8c19a6f84e
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/a6d13a98a97f2d5f49fad44331db708550283b
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/e741b3b414b6357cd6784f40db995c56e7352d
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/6bddfea75e576fc7f9b4c76c1e270ea277e3ac
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/21536ba0d977b74de78a01689823565029c974
/usr/lib/.build-id/9f/8647107ea12b9864409f7c31312e33bd3ea9f3
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/445f78d98968d18fef3813c4e9ec56ae754e13
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/8a444c8d811d4de54a5e211df127cc1ab1f6fa
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/2124145301dd6269d0cc27b6a24ecd95f561c2
/usr/lib/.build-id/b0/4cbcfa1993a4c1903cbadf17cee64edcf33e37
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/4c392343a907938cc8cfca26e55a21cb7c3ddb
/usr/lib/.build-id/b1/9a963084429151d938c86e263f54743008a881
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/b93d2420471d4f59f546795c2f7bdae39b65e1
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/b945d1d6000fcaad711bc273d8882a0c36e935
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/cac60cbe912dafbe044a6c6a5854f2ac6c58cd
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/602ef7383ee522b4a656b7e757bb12e34440ed
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/3642f726e243f54cb3471afd04b9cf5dda5890
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/89458699acea19b88a1c5ce6ed9fa4a85e77e3
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/395f4ef7d59d03e0da890948ba7ae27cfcd348
/usr/lib/.build-id/c9/c3ec59f012a663017bf1ae4f64cdfb6833478e
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/1e6844000ae4a77a43f00a886664e8f18552fb
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/0dd14c20af89d30351a983980531018e6061aa
/usr/lib/.build-id/cc/e0ee58608ad4336bdf338b11c98a397f7d1ef0
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/4445c47945746ed5ab314eb9aea676c364364c
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/306eafd5f06d0fb9e7dbad260a6aa9a55bbc2c
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/975c1a0a0b25e6a3beb4222ba837830accc9e7
/usr/lib/.build-id/da
/usr/lib/.build-id/da/52e0d7cc87101c24f23b32921cff6bf1cfafce
/usr/lib/.build-id/db
/usr/lib/.build-id/db/1891497ea6e4bf8d81ecf057dba20bf4dd9732
/usr/lib/.build-id/db/37c295fc14b0e99d55ee2213ecbca21743de2e
/usr/lib/.build-id/db/bef321c92c6750e7ee9421d141a574c1fdf087
/usr/lib/.build-id/de
/usr/lib/.build-id/de/e5e11c4e477e27976938989fc4a507510a9087
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/ee5f329be056675ad4a782d6f7fae1a21f30dc
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/ade8862e055c58e9d8029fce85edc2f5b4e316
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/67e370d938a069d6c2445e70b4e8b4f7ede3cb
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/833345310324c3f98e3b0ec3697399584f06d5
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/64b103c9d1212477c8f06f3b76a8d642705659
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/5ed643e69e1d328678d229b3069c75e09f9fce
/usr/lib/.build-id/ec/ba50bc27028067d3e1b2ea70f2e034cd65193b
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/1731eebedfd02c06b804702dbfe02dca698846
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/d73ecd601e93ff155429e2e99ff46a1642afd9
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/1caf56918a18a72e00530caa9bcd0ac3ec5d96
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/7ad2793f792d62ccbee9b71240ad41201d9aab
/usr/lib/.build-id/f5/aaefebc680b962b166e6d0591e95ce129b71cb
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/b42b13f9f968c59ed4fe5f5fdd04831646de14
/usr/lib/.build-id/f6/bf2e0b3b31a4bf3eb53caf2402b95c13883ecd
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/10e4ccfc0b00b4d0cbdb082109ffef13e70545
/usr/lib/.build-id/f9/7f1b59e6ba3134d8e8434b15e706fcc6fb1f43
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/055f07d814a34e67e5e89527b9b61fba458446
/usr/lib/.build-id/fa/7cf10f2297f3a2820d59062df9519324faf44f
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/9425088938ddc0317abb6fb150f690140396df
/usr/lib/tmpfiles.d/slurm.conf
/usr/lib64/slurm
/usr/lib64/slurm/accounting_storage_mysql.so
/usr/lib64/slurm/accounting_storage_none.so
/usr/lib64/slurm/accounting_storage_slurmdbd.so
/usr/lib64/slurm/acct_gather_energy_ibmaem.so
/usr/lib64/slurm/acct_gather_energy_ipmi.so
/usr/lib64/slurm/acct_gather_energy_none.so
/usr/lib64/slurm/acct_gather_energy_pm_counters.so
/usr/lib64/slurm/acct_gather_energy_rapl.so
/usr/lib64/slurm/acct_gather_energy_xcc.so
/usr/lib64/slurm/acct_gather_filesystem_lustre.so
/usr/lib64/slurm/acct_gather_filesystem_none.so
/usr/lib64/slurm/acct_gather_interconnect_none.so
/usr/lib64/slurm/acct_gather_interconnect_ofed.so
/usr/lib64/slurm/acct_gather_profile_hdf5.so
/usr/lib64/slurm/acct_gather_profile_influxdb.so
/usr/lib64/slurm/acct_gather_profile_none.so
/usr/lib64/slurm/auth_jwt.so
/usr/lib64/slurm/auth_munge.so
/usr/lib64/slurm/burst_buffer_generic.so
/usr/lib64/slurm/cli_filter_lua.so
/usr/lib64/slurm/cli_filter_none.so
/usr/lib64/slurm/cli_filter_syslog.so
/usr/lib64/slurm/cli_filter_user_defaults.so
/usr/lib64/slurm/core_spec_none.so
/usr/lib64/slurm/cred_munge.so
/usr/lib64/slurm/cred_none.so
/usr/lib64/slurm/ext_sensors_none.so
/usr/lib64/slurm/gpu_generic.so
/usr/lib64/slurm/gres_gpu.so
/usr/lib64/slurm/gres_mic.so
/usr/lib64/slurm/gres_mps.so
/usr/lib64/slurm/gres_nic.so
/usr/lib64/slurm/job_container_cncu.so
/usr/lib64/slurm/job_container_none.so
/usr/lib64/slurm/job_container_tmpfs.so
/usr/lib64/slurm/job_submit_all_partitions.so
/usr/lib64/slurm/job_submit_lua.so
/usr/lib64/slurm/job_submit_pbs.so
/usr/lib64/slurm/job_submit_require_timelimit.so
/usr/lib64/slurm/job_submit_throttle.so
/usr/lib64/slurm/jobacct_gather_cgroup.so
/usr/lib64/slurm/jobacct_gather_linux.so
/usr/lib64/slurm/jobacct_gather_none.so
/usr/lib64/slurm/jobcomp_elasticsearch.so
/usr/lib64/slurm/jobcomp_filetxt.so
/usr/lib64/slurm/jobcomp_lua.so
/usr/lib64/slurm/jobcomp_mysql.so
/usr/lib64/slurm/jobcomp_none.so
/usr/lib64/slurm/jobcomp_script.so
/usr/lib64/slurm/launch_slurm.so
/usr/lib64/slurm/mcs_account.so
/usr/lib64/slurm/mcs_group.so
/usr/lib64/slurm/mcs_none.so
/usr/lib64/slurm/mcs_user.so
/usr/lib64/slurm/mpi_none.so
/usr/lib64/slurm/mpi_pmi2.so
/usr/lib64/slurm/mpi_pmix.so
/usr/lib64/slurm/mpi_pmix_v2.so
/usr/lib64/slurm/node_features_knl_generic.so
/usr/lib64/slurm/power_none.so
/usr/lib64/slurm/preempt_none.so
/usr/lib64/slurm/preempt_partition_prio.so
/usr/lib64/slurm/preempt_qos.so
/usr/lib64/slurm/prep_script.so
/usr/lib64/slurm/priority_basic.so
/usr/lib64/slurm/priority_multifactor.so
/usr/lib64/slurm/proctrack_cgroup.so
/usr/lib64/slurm/proctrack_linuxproc.so
/usr/lib64/slurm/proctrack_pgid.so
/usr/lib64/slurm/route_default.so
/usr/lib64/slurm/route_topology.so
/usr/lib64/slurm/sched_backfill.so
/usr/lib64/slurm/sched_builtin.so
/usr/lib64/slurm/sched_hold.so
/usr/lib64/slurm/select_cons_res.so
/usr/lib64/slurm/select_cons_tres.so
/usr/lib64/slurm/select_linear.so
/usr/lib64/slurm/site_factor_none.so
/usr/lib64/slurm/slurmctld_nonstop.so
/usr/lib64/slurm/switch_none.so
/usr/lib64/slurm/task_affinity.so
/usr/lib64/slurm/task_cgroup.so
/usr/lib64/slurm/task_none.so
/usr/lib64/slurm/topology_3d_torus.so
/usr/lib64/slurm/topology_hypercube.so
/usr/lib64/slurm/topology_none.so
/usr/lib64/slurm/topology_tree.so
/usr/share/doc/slurm
/usr/share/doc/slurm/CONTRIBUTING.md
/usr/share/doc/slurm/DISCLAIMER
/usr/share/doc/slurm/META
/usr/share/doc/slurm/NEWS
/usr/share/doc/slurm/README.rst
/usr/share/doc/slurm/RELEASE_NOTES
/usr/share/licenses/slurm
/usr/share/licenses/slurm/COPYING
/usr/share/licenses/slurm/LICENSE.OpenSSL
/usr/share/man/man1/sacct.1.gz
/usr/share/man/man1/sacctmgr.1.gz
/usr/share/man/man1/salloc.1.gz
/usr/share/man/man1/sattach.1.gz
/usr/share/man/man1/sbatch.1.gz
/usr/share/man/man1/sbcast.1.gz
/usr/share/man/man1/scancel.1.gz
/usr/share/man/man1/scontrol.1.gz
/usr/share/man/man1/scrontab.1.gz
/usr/share/man/man1/sdiag.1.gz
/usr/share/man/man1/sh5util.1.gz
/usr/share/man/man1/sinfo.1.gz
/usr/share/man/man1/slurm.1.gz
/usr/share/man/man1/sprio.1.gz
/usr/share/man/man1/squeue.1.gz
/usr/share/man/man1/sreport.1.gz
/usr/share/man/man1/srun.1.gz
/usr/share/man/man1/sshare.1.gz
/usr/share/man/man1/sstat.1.gz
/usr/share/man/man1/strigger.1.gz
/usr/share/man/man5/acct_gather.conf.5.gz
/usr/share/man/man5/burst_buffer.conf.5.gz
/usr/share/man/man5/cgroup.conf.5.gz
/usr/share/man/man5/ext_sensors.conf.5.gz
/usr/share/man/man5/gres.conf.5.gz
/usr/share/man/man5/job_container.conf.5.gz
/usr/share/man/man5/knl.conf.5.gz
/usr/share/man/man5/nonstop.conf.5.gz
/usr/share/man/man5/slurm.conf.5.gz
/usr/share/man/man5/topology.conf.5.gz
/usr/share/man/man8/slurmrestd.8.gz
/usr/share/man/man8/spank.8.gz
/var/log/slurm
/var/spool/slurm
/var/spool/slurm/ctld
/var/spool/slurm/d

References

Summary

In this tutorial we learn how to install slurm on CentOS 8 using yum and dnf.