[slurm-users] Fwd: useradd: group 'slurm' does not exist

221 views
Skip to first unread message

Nousheen

unread,
Jan 25, 2022, 3:39:49 PM1/25/22
to slurm...@lists.schedmd.com

Hello everyone,

I am struggling with the installation of slurm on Centos 7. while following this tutorial https://www.slothparadise.com/how-to-install-slurm-on-centos-7-cluster/
, after the installation of MariaDB, I try to create users for slurm and munge but following the same sequence of commands as in the tutorial gives me the following error.

Package 1:mariadb-server-5.5.68-1.el7.x86_64 is obsoleted by mysql-community-server-5.7.37-1.el7.x86_64 which is already installed
Package 1:mariadb-devel-5.5.68-1.el7.x86_64 is obsoleted by mysql-community-devel-5.7.37-1.el7.x86_64 which is already installed
Nothing to do
[root@exxact slurm]# export MUNGEUSER=991
[root@exxact slurm]# groupadd -g $MUNGEUSER munge
groupadd: GID '991' already exists
[root@exxact slurm]# useradd  -m -c "MUNGE Uid 'N' Gid Emporium" -d /var/lib/munge -u $MUNGEUSER -g munge  -s /sbin/nologin munge
useradd: group 'munge' does not exist
[root@exxact slurm]# export SLURMUSER=992
[root@exxact slurm]# groupadd -g $SLURMUSER slurm
groupadd: GID '992' already exists
[root@exxact slurm]# useradd  -m -c "SLURM workload manager" -d /var/lib/slurm -u $SLURMUSER -g slurm  -s /bin/bash slurm
useradd: group 'slurm' does not exist


I am totally new to this. Kindly guide me on how to resolve this.

Best Regards,
Nousheen Parvaiz

Jeffrey R. Lang

unread,
Jan 25, 2022, 4:10:18 PM1/25/22
to Slurm User Community List

Looking at what you provided in your email the groupadd commands are failing, due to the requested GID 991 and 992 already being assigned by the system your installing on.

 

Check the /etc/group file and find two GID numbers lower than 991 that are unused and use those instead.  Keep them in the 900 range and going to low can run into system GID assignments.

 

Once you have selected your new GID’s use them in the groupadd commans to create the proper groups.  Also use these new GID’s in the useradd commands as appropriate.

 

 

 

From: slurm-users <slurm-use...@lists.schedmd.com> On Behalf Of Nousheen
Sent: Tuesday, January 25, 2022 2:39 PM
To: slurm...@lists.schedmd.com
Subject: [slurm-users] Fwd: useradd: group 'slurm' does not exist

 

This message was sent from a non-UWYO address. Please exercise caution when clicking links or opening attachments from external sources.

Nousheen

unread,
Jan 26, 2022, 9:37:07 AM1/26/22
to Slurm User Community List
Dear Jeffery,

Thank you so much for your prompt response. It has resolved my problem.

Best Regards,
Nousheen Parvaiz


Reply all
Reply to author
Forward
0 new messages