Slurm: Difference between revisions

From DISI
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 15: Line 15:


'''setting up munge''':
'''setting up munge''':
copy over /etc/munge/munge.key from gimel and put locally to /etc/munge. The key should be identical allover the nodes.
copy over /etc/munge/munge.key from gimel and put locally to /etc/munge. The key should be identical allover the nodes.<br>
 
Munge is a daemon responsible for secure data exchange between nodes.<br>
Munge is a daemon responsible for secure data exchange between nodes.
Set permissions accordingly: chown munge:munge /etc/munge/munge.key; chmod 400 /etc/munge/munge.key<br>
 
Set permissions accordingly: chown munge:munge /etc/munge/munge.key; chmod 400 /etc/munge/munge.key


'''starting munge''': systemctl enable munge; systemctl start munge
'''starting munge''': systemctl enable munge; systemctl start munge
Line 28: Line 26:


Otherwise, one needs to specify a mapping scheme for translating each UID/GUIDs between nodes.<br>
Otherwise, one needs to specify a mapping scheme for translating each UID/GUIDs between nodes.<br>
To edit slurm UID/GUID, do "vipw" and replace "slurm line" with slurm:x:XXXXX:YYYYY::/nonexistent:/bin/false
To edit slurm UID/GUID, do "vipw" and replace "slurm line" with slurm:x:XXXXX:YYYYY::/nonexistent:/bin/false<br>
XXXXX and YYYYY for slurm user can be found at gimel in /etc/passwd
XXXXX and YYYYY for slurm user can be found at gimel in /etc/passwd<br>
NB: don't forget to edit /etc/group as well.
NB: don't forget to edit /etc/group as well.<br>

Revision as of 14:27, 27 May 2020

Detailed step-by-step instruction:

node n-1-17

  • make sure you have there Centos 7: cat /etc/redhat-release
  • wget https://download.schedmd.com/slurm/slurm-17.02.11.tar.bz2
  • yum install readline-devel perl-ExtUtils-MakeMaker.noarch munge-devel pam-devel
  • export VER=17.02.11; rpmbuild -ta slurm-$VER.tar.bz2 --without mysql; mv /root/rpmbuild .

installing built packages from rpmbuild:

  • yum install rpmbuild/RPMS/x86_64/slurm-plugins-17.02.11-1.el7.x86_64.rpm
  • yum install rpmbuild/RPMS/x86_64/slurm-17.02.11-1.el7.x86_64.rpm
  • yum install rpmbuild/RPMS/x86_64/slurm-munge-17.02.11-1.el7.x86_64.rpm


setting up munge: copy over /etc/munge/munge.key from gimel and put locally to /etc/munge. The key should be identical allover the nodes.
Munge is a daemon responsible for secure data exchange between nodes.
Set permissions accordingly: chown munge:munge /etc/munge/munge.key; chmod 400 /etc/munge/munge.key

starting munge: systemctl enable munge; systemctl start munge

setting up slurm:

  • create a user slurm: adduser slurm.
  • all UID/GUIDs of slurm user should be identical allover the nodes.

Otherwise, one needs to specify a mapping scheme for translating each UID/GUIDs between nodes.
To edit slurm UID/GUID, do "vipw" and replace "slurm line" with slurm:x:XXXXX:YYYYY::/nonexistent:/bin/false
XXXXX and YYYYY for slurm user can be found at gimel in /etc/passwd
NB: don't forget to edit /etc/group as well.