[slurm-users] Change config file location of slurmdbd temporarily

66 views
Skip to first unread message

Sven Schulze via slurm-users

unread,
Jan 7, 2025, 8:56:02 AM1/7/25
to slurm...@lists.schedmd.com
Hey all,

Is there a way to change the location of the slurmdbd.conf temporarily
when starting slurmdbd?

For all other daemons I can specify "-f", but this doesn't seem to work
for slurmdbd, is there a way to edit the build files to achieve this?

Kind Regards,
Sven


--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com

Groner, Rob via slurm-users

unread,
Jan 7, 2025, 9:06:39 AM1/7/25
to slurm...@lists.schedmd.com, Sven Schulze
The config file location is set during the ./configure step in building the source code.  I think it is --conf-dir or something.  Do ./configure --help to find the correct syntax.  After configure, then rebuild and slurm will now look in that new location.

There is also a SLURM_CONF env var that points to where the slurm config file is, as an override I believe...but I don't know if that applies to slurmdbd.conf as well.  Worth a try maybe.

Rob


From: Sven Schulze via slurm-users <slurm...@lists.schedmd.com>
Sent: Tuesday, January 7, 2025 8:54 AM
To: slurm...@lists.schedmd.com <slurm...@lists.schedmd.com>
Subject: [slurm-users] Change config file location of slurmdbd temporarily
 

Ole Holm Nielsen via slurm-users

unread,
Jan 7, 2025, 9:07:37 AM1/7/25
to slurm...@lists.schedmd.com
On 1/7/25 14:54, Sven Schulze via slurm-users wrote:
> Is there a way to change the location of the slurmdbd.conf temporarily
> when starting slurmdbd?
>
> For all other daemons I can specify "-f", but this doesn't seem to work
> for slurmdbd, is there a way to edit the build files to achieve this?

The slurmdbd.conf manual page says:

slurmdbd.conf is an ASCII file which describes Slurm Database
Daemon
(SlurmDBD) configuration information. The file will always be
located
in the same directory as the slurm.conf.


/Ole

Groner, Rob via slurm-users

unread,
Jan 7, 2025, 9:13:53 AM1/7/25
to slurm...@lists.schedmd.com, Sven Schulze, Groner, Rob
I'll note that the SLURM_CONF env var is listed on the sbatch docs page, so is likely not an override for all slurm commands.


From: Groner, Rob via slurm-users <slurm...@lists.schedmd.com>
Sent: Tuesday, January 7, 2025 9:04 AM
To: slurm...@lists.schedmd.com <slurm...@lists.schedmd.com>; Sven Schulze <sv...@pks.mpg.de>
Subject: [slurm-users] Re: Change config file location of slurmdbd temporarily
 

Sven Schulze via slurm-users

unread,
Jan 7, 2025, 9:22:01 AM1/7/25
to Groner, Rob, slurm...@lists.schedmd.com

It seems that the variable DOES in fact impact where slurmdbd.conf is looked for.

I discarded that option because it was only mentioned in the slurmctld section.


Thanks a ton!
Sven

Reply all
Reply to author
Forward
0 new messages