Difference between revisions of "Slurm Installation on Debian"

From Supercomputación y Cálculo Científico UIS
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>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 in each machine</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>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>copy munge.key in the nodes - ssh /etc/munge/munge.key root@nodes:/etc/munge/munge.key</li>
Line 29: Line 29:
 
<li>Test munge in local machine - munge -n | unmunge</li>
 
<li>Test munge in local machine - munge -n | unmunge</li>
 
<li>Test munge in nodes machine - munge -n | ssh host1 unmunge</li>
 
<li>Test munge in nodes machine - munge -n | ssh host1 unmunge</li>
 +
<li>Start slurm - /etc/init.d/slurmctld start in the server machine and /etc/init.d/slurmd start in nodes machine</li>
  
 
</ol>
 
</ol>

Revision as of 20:50, 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 in each machine
  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
  9. Start slurm - /etc/init.d/slurmctld start in the server machine and /etc/init.d/slurmd start in nodes machine