This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
hpc:slurm-setup [2020/01/30 12:00] miriel@uclv [Slurm Installation] |
hpc:slurm-setup [2020/01/31 12:47] miriel@uclv [Slurm Installation] |
||
---|---|---|---|
Line 260: | Line 260: | ||
<code> | <code> | ||
systemctl enable slurmdbd | systemctl enable slurmdbd | ||
+ | </code> | ||
+ | |||
+ | We need to make sure that the server has all the right configurations and files. | ||
+ | |||
+ | <code> | ||
+ | mkdir /var/spool/slurmctld | ||
+ | chown slurm: /var/spool/slurmctld | ||
+ | chmod 755 /var/spool/slurmctld | ||
+ | touch /var/log/slurmctld.log | ||
+ | chown slurm: /var/log/slurmctld.log | ||
+ | touch /var/log/slurm_jobacct.log /var/log/slurm_jobcomp.log | ||
+ | chown slurm: /var/log/slurm_jobacct.log /var/log/slurm_jobcomp.log | ||
+ | |||
</code> | </code> | ||
Line 269: | Line 282: | ||
yum install slurm-slurmd slurm-pam-$VER*rpm_slurm-$VER*rpm | yum install slurm-slurmd slurm-pam-$VER*rpm_slurm-$VER*rpm | ||
systemctl enable slurmd | systemctl enable slurmd | ||
+ | </code> | ||
+ | |||
+ | We need to make sure that all the compute nodes have the right configurations and files. | ||
+ | |||
+ | <code> | ||
+ | mkdir /var/spool/slurmd | ||
+ | chown slurm: /var/spool/slurmd | ||
+ | chmod 755 /var/spool/slurmd | ||
+ | touch /var/log/slurmd.log | ||
+ | chown slurm: /var/log/slurmd.log | ||
</code> | </code> | ||
Line 309: | Line 332: | ||
<code> | <code> | ||
mkdir /var/spool/slurm | mkdir /var/spool/slurm | ||
- | chown slurm.slurm -R slurm/ | + | chown slurm.slurm -R /var/spool/slurm |
</code> | </code> | ||
Line 342: | Line 365: | ||
chown slurm.slurm /var/log/slurm | chown slurm.slurm /var/log/slurm | ||
</code> | </code> | ||
+ | |||
Study the configuration information in the [[https://slurm.schedmd.com/quickstart_admin.html|Quick Start Administrator_Guide]]. | Study the configuration information in the [[https://slurm.schedmd.com/quickstart_admin.html|Quick Start Administrator_Guide]]. | ||
+ | |||
+ | ===== Home Users ===== | ||
+ | For the users folder, you can use the server's local disk or mount the remote storage. For this reason it is recommended to create a folder to put the information of the users. In this example we created a folder /home/CLUSTER and here we create the folder for every users. | ||
+ | |||
+ | <code> | ||
+ | mkdir /home/CLUSTER | ||
+ | </code> | ||
+ | |||
+ | ===== Creating users ===== | ||
+ | |||
+ | For the users you can crate every user manually o you can user an external user database how Active Directory, OpenLDAP or MySQL, etc. | ||
+ | For this example we going to create the users manually in every server. | ||
+ | |||