<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi William,<br>
<br>
no, that is not true.<br>
<br>
Actually we are on CentOS 7.7 now, but it existed at least with
CentOS 7.6, nut sure about earlier OS versions.<br>
<br>
<br>
Best<br>
Marcus<br>
<br>
<div class="moz-cite-prefix">On 1/10/20 2:01 PM, William Brown
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGdVoZgtgtuFwRT70wxuGpKKy0BiRNqa4NUs7XYQWYTkoNyNAw@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">My bad, I am using CentOS7 which doesn't have
RuntimeDirectory, but this thread is clearly about CentOS8,
which does.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, 10 Jan 2020 at 12:56,
Marcus Wagner <<a href="mailto:wagner@itc.rwth-aachen.de"
moz-do-not-send="true">wagner@itc.rwth-aachen.de</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
William,<br>
<br>
a<br>
RuntimeDirectory=slurm<br>
<br>
should suffice.<br>
<br>
"If set, one or more directories by the specified names will
be created <br>
below /run (for system services) or below $XDG_RUNTIME_DIR
(for user <br>
services) when the unit is started, and removed when the unit
is <br>
stopped. The directories will have the access mode specified
in <br>
RuntimeDirectoryMode=, and will be owned by the user and group
specified <br>
in User= and Group=."<br>
<br>
Best<br>
Marcus<br>
<br>
On 1/10/20 12:20 PM, William Brown wrote:<br>
> Here is an example of a modified system service file
which uses ExecStartPre to create the directory under /var/run
on the fly. This is for slurmctld. As /var/run is I think in
RAM this creates the folder when the service starts. There
are other customisations for our environment in here, but I
guess this may help anyone see how this is done.<br>
><br>
> [Unit]<br>
> Description=Slurm controller daemon<br>
> After=network.target munge.service<br>
> RequiresMountsFor=/home/apps<br>
> BindsTo=home-apps.mount<br>
> ConditionPathExists=/etc/slurm/slurm.conf<br>
><br>
> [Service]<br>
> User=slurm<br>
> Group=slurms<br>
> Type=forking<br>
> EnvironmentFile=-/etc/sysconfig/slurmctld<br>
> PermissionsStartOnly=true<br>
> ExecStartPre=/usr/bin/mkdir --parents /var/run/slurm<br>
> ExecStartPre=/usr/bin/chown -R slurm:slurms
/var/run/slurm/<br>
> ExecStart=/usr/sbin/slurmctld $SLURMCTLD_OPTIONS<br>
> ExecReload=/bin/kill -HUP $MAINPID<br>
> PIDFile=/var/run/slurm/slurmctld.pid<br>
> LimitNOFILE=65536<br>
><br>
> William<br>
><br>
> -----Original Message-----<br>
> From: slurm-users <<a
href="mailto:slurm-users-bounces@lists.schedmd.com"
target="_blank" moz-do-not-send="true">slurm-users-bounces@lists.schedmd.com</a>>
On Behalf Of Shane Kelly<br>
> Sent: 10 January 2020 07:53<br>
> To: <a href="mailto:slurm-users@lists.schedmd.com"
target="_blank" moz-do-not-send="true">slurm-users@lists.schedmd.com</a><br>
> Subject: Re: [slurm-users] Slurm 19-05-4-1 and Centos8<br>
><br>
> Apologies for taking so long to wrap this thread up.<br>
><br>
> For me, slurm 19-05.4.1 builds correctly with Philip
Kovacs mod to the spec file (see below).<br>
> It installs and runs (after providing some massaging to
the RH/Centos specific config locations/bits*) and I now have
it installed with accounting on five nodes of our test
cluster, and all appears well.<br>
><br>
> Many thanks to all who contribute to this mailing list.<br>
><br>
><br>
> Kind Regards,<br>
> Shane Kelly<br>
><br>
><br>
> * Centos8 config/install bits (from memory) /var/run will
not allow slurm to write a pid there, so I put a directory for
all the slurm{d|ctld|dbd} PIDS under /var/run/. Don't forget
to add a .conf file to /usr/lib/tmpfiles.d/ to make your
folder persist over a reboot. I copied the munge one, suitably
edited.<br>
><br>
> The systemd service files are hardwired to write pids to
/var/run, so they need altering to reflect the /var/run/slurm
path that I use.<br>
><br>
> Hope this helps.<br>
><br>
>> There's a typo in there. It's lazy not -lazy. Try
adding exactly<br>
>> this line just before the %configure:<br>
>> # use -z lazy to allow dlopen with unresolved
symbolsexport<br>
>> LDFLAGS="%{build_ldflags} -Wl,-z,lazy"
<--- this<br>
>> should fix it%configure \<br>
>> On Sunday, December 8, 2019, 05:30:00 PM EST,
Brian Andrus<br>
>> <<a href="mailto:toomuchit@gmail.com"
target="_blank" moz-do-not-send="true">toomuchit@gmail.com</a>>
wrote:<br>
>><br>
>> <br>
>> There must be something more, because I am trying it
with<br>
>><br>
>><br>
>> [root@node02 ~]# rpm -E "%{build_ldflags}"<br>
>> -Wl,-z,relro -Wl,-z,now<br>
>> -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
-Wl,-z,-lazy<br>
>><br>
>> It builds (as expected) but slurmd will not start due
to the same<br>
>> error. (Note, I have also tried LDFLAGS without
--specs and without<br>
>> -Wl,-z-now with the same result)<br>
>><br>
><br>
> --<br>
> Shane Kelly<br>
> HPC Systems Administrator<br>
> GPOL<br>
> WWCRC<br>
> Garscube Campus<br>
> University of Glasgow<br>
> <a href="mailto:shane.kelly@glasgow.ac.uk"
target="_blank" moz-do-not-send="true">shane.kelly@glasgow.ac.uk</a><br>
> ext: 3031<br>
><br>
><br>
><br>
<br>
-- <br>
Marcus Wagner, Dipl.-Inf.<br>
<br>
IT Center<br>
Abteilung: Systeme und Betrieb<br>
RWTH Aachen University<br>
Seffenter Weg 23<br>
52074 Aachen<br>
Tel: +49 241 80-24383<br>
Fax: +49 241 80-624383<br>
<a href="mailto:wagner@itc.rwth-aachen.de" target="_blank"
moz-do-not-send="true">wagner@itc.rwth-aachen.de</a><br>
<a href="http://www.itc.rwth-aachen.de" rel="noreferrer"
target="_blank" moz-do-not-send="true">www.itc.rwth-aachen.de</a><br>
<br>
<br>
</blockquote>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Marcus Wagner, Dipl.-Inf.
IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
<a class="moz-txt-link-abbreviated" href="mailto:wagner@itc.rwth-aachen.de">wagner@itc.rwth-aachen.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.itc.rwth-aachen.de">www.itc.rwth-aachen.de</a>
</pre>
</body>
</html>