Difference between revisions of "Slurm Installation on Debian"

From Supercomputación y Cálculo Científico UIS
Line 7: Line 7:
 
         <div class="well well-midnight">
 
         <div class="well well-midnight">
 
             <h4>Slurm Installation</h4>
 
             <h4>Slurm Installation</h4>
             <p class="bs">In this section we describe all the administration tasks for the job scheduler Slurm in the frontend node (Server) and in the compute nodes (Client)</p>
+
             <p class="bs">In this section we describe all the administration tasks for the Slurm Workload Manager in the frontend node (Server) and in the compute nodes (Client)</p>
 
         </div>
 
         </div>
 
     </div>
 
     </div>
Line 23: Line 23:
 
</li>
 
</li>
 
<li>Install slurm from repositories - apt-get install slurm-llnl o apt-get install slurm-wlm</li>
 
<li>Install slurm from repositories - apt-get install slurm-llnl o apt-get install slurm-wlm</li>
 +
<li>Open the local file in a browser <b>sftp://ip-node/usr/share/doc/slurmctld/slurm-wlm-configurator.html</b> where ip-node is the ip from slurmctld machine, and fill out the form. The slurm.conf file is generated and copy in /etc/slurm.conf </li>
 +
<li>Exist two ways for generate munge.key - /usr/sbin/create-munge-key or with dd if=/dev/random bs=1 count=1024 >/etc/munge/munge.key (recommended for the paranoid) and dd if=/dev/urandom bs=1 count=1024 >/etc/munge/munge.key (recommended for the impatient)</li>
 +
<li>copy munge.key in the nodes - ssh /etc/munge/munge.key root@nodes:/etc/munge/munge.key</li>
 +
<li>Edit file /etc/passwd and modify  munge:x:501:501::var/run/munge;/sbin/nologin in each machine</li>
 +
<li>Test munge in local machine - munge -n | unmunge</li>
 +
<li>Test munge in nodes machine - munge -n | ssh host1 unmunge</li>
 +
 
</ol>
 
</ol>
 
         </div>
 
         </div>
 
     </div>
 
     </div>
 
</div>
 
</div>

Revision as of 15:47, 4 May 2015


Logo_sc33.png

Slurm Installation

In this section we describe all the administration tasks for the Slurm Workload Manager in the frontend node (Server) and in the compute nodes (Client)

Slurm Installation on Debian

  1. Make sure the clocks, users and groups (UIDs and GIDs) are synchronized across the cluster.

  2. Install slurm from repositories - apt-get install slurm-llnl o apt-get install slurm-wlm
  3. Open the local file in a browser sftp://ip-node/usr/share/doc/slurmctld/slurm-wlm-configurator.html where ip-node is the ip from slurmctld machine, and fill out the form. The slurm.conf file is generated and copy in /etc/slurm.conf
  4. Exist two ways for generate munge.key - /usr/sbin/create-munge-key or with dd if=/dev/random bs=1 count=1024 >/etc/munge/munge.key (recommended for the paranoid) and dd if=/dev/urandom bs=1 count=1024 >/etc/munge/munge.key (recommended for the impatient)
  5. copy munge.key in the nodes - ssh /etc/munge/munge.key root@nodes:/etc/munge/munge.key
  6. Edit file /etc/passwd and modify munge:x:501:501::var/run/munge;/sbin/nologin in each machine
  7. Test munge in local machine - munge -n | unmunge
  8. Test munge in nodes machine - munge -n | ssh host1 unmunge