[slurm-users] How to install a newer slurm version on Ubuntu 18.04

1,572 views
Skip to first unread message

mohammed shambakey

unread,
Apr 14, 2023, 12:13:09 PM4/14/23
to slurm...@lists.schedmd.com, slurm...@schedmd.com
Hi

I'm new to slurm, and sorry if this is a repeated email. I have a cluster at my work consisting of one head node, and 3 compute nodes. Ubuntu 22.04 is installed on the head node, and 2 compute nodes, whereas the third has Ubuntu 18.04 (it is needed because it hosts an old M10 GPU).

I installed slurm 21.08.5 on the head node, and the 2 compute nodes with Ubuntu 22.04. On the third node (with Ubuntu 18.04), I tried to add the following line to /etc/apt/sources.list:
deb http://za.archive.ubuntu.com/ubuntu jammy main universe

Then, I tried to update the third machine and install the slurmd package, but I receive the following error:

Setting up slurm-wlm-basic-plugins (21.08.5-2ubuntu1) ...
cp: cannot stat '/etc/slurm-llnl/.': No such file or directory
dpkg: error processing package slurm-wlm-basic-plugins (--configure):
 installed slurm-wlm-basic-plugins package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of slurmd:
 slurmd depends on slurm-wlm-basic-plugins (= 21.08.5-2ubuntu1); however:
  Package slurm-wlm-basic-plugins is not configured yet.

dpkg: error processing package slurmd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of slurm-client:
 slurm-client depends on slurm-wlm-basic-plugins (= 21.08.5-2ubuntu1); however:
  Package slurm-wlm-basic-plugins is not configured yet.

dpkg: error processing package slurm-client (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                      Errors were encountered while processing:
 slurm-wlm-basic-plugins
 slurmd
 slurm-client
E: Sub-process /usr/bin/dpkg returned an error code (1)


I wonder if it is possible to install slurm 21.08.5 on Ubuntu 18.04? or I should downgrade the installed slurm on the other nodes to slurm 17.11.2?

Regards

--
Mohammed

Reed Dier

unread,
Apr 14, 2023, 12:37:46 PM4/14/23
to Slurm User Community List
On the third node (with Ubuntu 18.04), I tried to add the following line to /etc/apt/sources.list:
deb http://za.archive.ubuntu.com/ubuntu jammy main universe

You definitely can’t just add the jammy repos to a bionic system.
This will more or less break apt in many ways due to dependencies.

I wonder if it is possible to install slurm 21.08.5 on Ubuntu 18.04? or I should downgrade the installed slurm on the other nodes to slurm 17.11.2?

As someone who is running slurm on ubuntu, I highly recommend ripping the bandaid off and building from source.
The ubuntu/debian packages run really far behind, and don’t provide a ton of flexibility for upgrades or fixes.

Grab the tarball, and then run

./configure —prefix=$PREFIX}/slurm-$SLURM_VERSION —sysconfdir=/etc/slurm;
        make -j $NUM_CPUS;
        make install

$PREFIX would be where you want to install the slurm binaries to/run them from, which may be an NFS share or something like that.
I would also strongly recommend not mixing Ubuntu releases in the same cluster.

Reed

mohammed shambakey

unread,
Apr 14, 2023, 11:08:38 PM4/14/23
to Slurm User Community List
Many thanks. I'll try building from the source

Regards
--
Mohammed
Reply all
Reply to author
Forward
0 new messages