Ticket 10804

Summary: help moving from RPM install to shared directory
Product: Slurm Reporter: GSK-ONYX-SLURM <slurm-support>
Component: ConfigurationAssignee: Tim McMullan <mcmullan>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: ---    
Version: 20.11.3   
Hardware: Linux   
OS: Linux   
Site: GSK Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: RHEL
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description GSK-ONYX-SLURM 2021-02-07 07:46:27 MST
Currently we deploy by RPMs, and have a ~/.rpmmacros of:
%_prefix /usr/local/slurm
%_with_lua 1
%_with_mpi pmi2_v2
%_with_slurmrestd 1

We want to move to the share directory approach where the software is in /home/slurm/software/<version> and the configuration is in /etc/slurm.


I am assuming that I add
--prefix=/home/slurm/software/20.11.2
--sysconfdir=/etc/slurm
to the ./configure command

but what do I have to add to enable the setting from the .rpmmacros file?

Thanks
Comment 1 Tim McMullan 2021-02-08 06:33:19 MST
(In reply to GSK-EIS-SLURM from comment #0)
> %_with_lua 1
This option in the RPM just adds a requirement to the RPM that a lua package be installed.  Slurm will look for a lua version and build against it.  There isn't currently an option like this for the configure script.

> %_with_mpi pmi2_v2
This option doesn't appear to do anything in relatively recent slurm versions.  The option "--with-pmix" is likely the option you are looking for here, but it accepts a path.

--with-pmix path

If you are using the system version, a bare "--with-pmix" will look in some default locations for it.  This is also the default behavior of the configure script, though enabling it explicitly is a good idea.

> %_with_slurmrestd 1
--enable-slurmrestd

This is actually the default when running the configure script, but enabling it explicitly is also a good idea.

> I am assuming that I add
> --prefix=/home/slurm/software/20.11.2
> --sysconfdir=/etc/slurm
> to the ./configure command

Yes, that should do what you expect!

Let me know if this helps!

Thanks!
--Tim
Comment 2 GSK-ONYX-SLURM 2021-02-08 07:35:33 MST
Tim,

thanks

next dumb question :-)

--with-pmix path

what does Path point to?
Comment 3 Tim McMullan 2021-02-08 08:19:21 MST
(In reply to GSK-EIS-SLURM from comment #2)
> Tim,
> 
> thanks

No problem :)

> next dumb question :-)
> 
> --with-pmix path
> 
> what does Path point to?

Its intended to be the path(s) to pmix installations (it actually supports more than one).  By default, it just looks in "/usr" and "/usr/local".  For example, one of my test setups is using openpmix 2.2.4 in a custom location, so I build slurm with "--with-pmix=/opt/pmix/2.2.4/".  Unless you are building something like that as well, the default is probably the right option!

Let me know if that helps!

Thanks,
--Tim
Comment 4 GSK-ONYX-SLURM 2021-02-08 08:28:03 MST
Tim,


Thanks for the info, will build the kit tomorrow.  IF all goes well, I will close the case.

Thanks
Comment 5 Tim McMullan 2021-02-08 09:23:38 MST
Sounds good!

Let me know how it goes!
--Tim
Comment 6 Tim McMullan 2021-02-16 09:42:15 MST
I just wanted to check in and see how the build went!

Thanks,
--Tim
Comment 7 Tim McMullan 2021-02-23 07:51:56 MST
Hey! I just wanted to follow up and see how the build went.

Thanks!
--Tim
Comment 8 Tim McMullan 2021-03-03 11:29:01 MST
I'm going to resolve this for now since you haven't brought any issues up with the info provided, but please re-open if you do need any more information on it!

Thanks,
--Tim