大事な点
なので
[root@slurm-client ~]# cat /etc/redhat-release
Rocky Linux release 9.1 (Blue Onyx)
[root@slurm-client ~]# groupadd -g 5001 munge && useradd -d /var/lib/munge -s /bin/bash -u 5001 -g munge munge
[root@slurm-client ~]# dnf install munge
(管理ノードから)
[root@slurm ~]# scp /etc/munge/munge.key slurm-client:/etc/munge/
[root@slurm-client ~]# chown munge. /etc/munge/munge.key
[root@slurm-client ~]# systemctl enable munge --now
あとslurmパッケージ
(同じRHEL9系のn2ノードから)
[root@n2 ~]# scp rpmbuild/RPMS/x86_64/slurm-22.05.7-1.el9.x86_64.rpm slurm-client:
[root@slurm-client ~]# dnf localinstall slurm-22.05.7-1.el9.x86_64.rpm
[root@slurm-client ~]# mkdir /opt/slurm/etc/
[root@slurm-client ~]# vi /etc/profile.d/slurm.sh
if [ -d /opt/slurm/bin ]; then
export PATH=${PATH}:/opt/slurm/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/slurm/lib64
fi
[root@slurm-client ~]# vi /etc/profile.d/slurm.csh
if ( -d /opt/slurm/bin ) then
setenv PATH ${PATH}:"/opt/slurm/bin"
setemv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:"/opt/slurm/lib64"
endif
[root@slurm-client ~]#
firewall. 管理ノードのslurm.confに書かれたSrunPortRangeの値を開けます
[root@slurm-client ~]# firewall-cmd --add-port=60001-63000/tcp --zone=public --permanent
[root@slurm-client ~]# firewall-cmd --reload
設定ファイルのコピーを行います
(管理ノードから)
[root@slurm ~]# scp /opt/slurm/etc/*.conf slurm-client:/opt/slurm/etc/
もしConfiglessの設定があるならslurm/manager#d2a5c73c このコピーは不要です
これで完了.
[illya@slurm-client ~]$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
workq* up infinite 3 idle n[1-3]
[illya@slurm-client ~]$