Yeah, we use dnf. I do:

dnf update slurm slurm-libpmi slurm-devel slurm-contribs slurm-slurmctld slurm-perlapi slurm-slurmrestd slurm-slurmdbd

For the autorestart compare:

https://github.com/SchedMD/slurm/blob/cead8b9d2c2360f976c77d9e9e7ab875de9d867d/slurm.spec#L775

With:

https://github.com/fasrc/slurm-spec/blob/75ec489f2a8da057432495c0a726ed8085584e98/slurm.spec#L800

You can see that in the official spec it has:

%systemd_postun_with_restart slurmdbd.service

Which means when the rpm is uninstalled it restarts the service. You don't want that to happen in this case as that can mess up the slurmdbd (unless you increase the systemd timeouts). So in our spec we nerf it and understand that we have to force a restart rather than letting dnf do the restart itself.

Basically its a paranoia step we take as we have been bitten by it before as our database got messed up due to this exact thing happening and we had to reimport our backup (which is why you take a backup)

-Paul Edmon-

On 2/3/26 10:51 AM, Ron Gould via slurm-users wrote:
Thank you Paul. That helps a lot.

Regarding item 4., do you use `dnf` or `rpm` to install the RPMs? What's your 
syntax?

Also in 4., I may need to rebuild my RPMs anway, as I may have to update an option. 
What's the option to "neutered the autorestart function"?

Thanks for your help, Ron


--
slurm-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to