<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Steve,</p>
    <p><br>
    </p>
    <p>I suspect you did not install the packages.</p>
    <p><br>
    </p>
    <p>You need to install slurm-slurmctld to get the slurmctld systemd
      files:</p>
    <blockquote>
      <p><i># rpm -qlp slurm-slurmctld-20.11.9-1.el7.x86_64.rpm</i><i><br>
        </i><i>/run/slurm/slurmctld.pid</i><i><br>
        </i><b><i>/usr/lib/systemd/system/slurmctld.service</i></b><i><br>
        </i><i>/usr/sbin/slurmctld</i><i><br>
        </i><i>/usr/share/man/man8/slurmctld.8.gz</i><i><br>
        </i></p>
    </blockquote>
    <p><br>
    </p>
    <p>The same for slurm-slurmdbd. Both of those are management daemons
      and should only be running on one (two if you configure failover)
      systems.</p>
    <p>Your compute nodes need slurm-slurmd, which will provide the
      systemd files for slurmd.</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 11/27/2022 7:34 PM, 刘 博涵 wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:TYBP286MB0350DE692BF78D120CCFCA29B7139@TYBP286MB0350.JPNP286.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        Hi all,</div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        <br>
      </div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        I'm a newcomer to cluster computing and have been trying to
        setup a Slurm cluster myself. Right now I'm stuck at starting up
        Slurm's systemd services. I checked out the following tutorials:</div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        <ol>
          <li><span><a
                href="https://slurm.schedmd.com/quickstart_admin.html"
                class="ContentPasted0" moz-do-not-send="true">Slurm
                Workload Manager - Quick Start Administrator Guide
                (schedmd.com)</a></span></li>
          <li class="ContentPasted1"><a
              href="https://wiki.fysik.dtu.dk/Niflheim_system/Slurm_installation/"
              id="LPlnk318539" moz-do-not-send="true"
              class="moz-txt-link-freetext">https://wiki.fysik.dtu.dk/Niflheim_system/Slurm_installation/</a><br>
          </li>
          <li class="ContentPasted1 ContentPasted2"><a
              href="https://wiki.bkslab.org/index.php/Slurm_Installation_Guide"
              id="LPlnkOWALinkPreview" moz-do-not-send="true"
              class="moz-txt-link-freetext">https://wiki.bkslab.org/index.php/Slurm_Installation_Guide</a></li>
          <li class="ContentPasted1 ContentPasted2"><a
href="https://southgreenplatform.github.io/trainings/hpc/slurminstallation/"
              class="ContentPasted3" id="LPlnkOWALinkPreview"
              moz-do-not-send="true">Slurm installation
              (southgreenplatform.github.io)</a></li>
        </ol>
        <div>All of them state that I should run <i>systemctl
            enable/start slurmd/slurmdbd/slurmctld</i> after
          installation, however they always fail because the
          corresponding systemd config files do not exist, regardless of
          whether I installed Slurm from source or from EPEL repos. All
          my systems are CentOS 7.9 with the latest updates prior to
          Slurm installation, and I was trying to install Slurm 22.05.6
          from source. My question is are the systemd config files
          actually created during installation process as the tutorials
          imply, or do I have to write them myself? If the latter, then
          how should I write my slurm systemd config file (what
          parameters should I put in etc.), any templates I can follow?</div>
        <div><br>
        </div>
        <div>Many thanks,</div>
        <div><br>
        </div>
        <div>Steve</div>
      </div>
    </blockquote>
  </body>
</html>