Open severinstojanovic opened 8 years ago
c_sockets="<>"
c_corespersocket="<>"
c_threadspercore="<>"
cat /etc/slurm/slurm.conf | sed -e "s/Sockets=2/Sockets=${c_sockets}/" > /tmp/slurm1.conf cat /tmp/slurm1.conf | sed -e "s/CoresPerSocket=8/CoresPerSocket=${c_corespersocket}/" > /tmp/slurm2.conf cat /tmp/slurm2.conf | sed -e "s/ThreadsPerCore=2/ThreadsPerCore=${c_threadspercore}/" > /tmp/slurm3.conf mv /tmp/slurm3.conf /etc/slurm/slurm.conf
if grep -q "SELINUX=enforcing" /etc/selinux/config ; then cat /etc/selinux/config | sed -e "s/SELINUX=enforcing/SELINUX=disabled/" > /tmp/selinux/config ; mv /tmp/selinux/config /etc/selinux/config ; echo 0 > /selinux/enforce ; fi if grep -q "SELINUX=permissive" /etc/selinux/config ; then cat /etc/selinux/config | sed -e "s/SELINUX=permissive/SELINUX=disabled/" > /tmp/selinux/config ; mv /tmp/selinux/config /etc/selinux/config ; echo 0 > /selinux/enforce ; fi
sms_ip_temp=${sms_ip} sms_ip_1=${sms_ip_temp%%.*} sms_ip_temp=${sms_ip_temp#*.*} sms_ip_2=${sms_ip_temp%%.*} sms_ip_temp=${sms_ip_temp#*.*} sms_ip_3=${sms_ip_temp%%.*} c_ip=() for ((i=0; i<${num_computes}; i++)) ; do c_ip+=("${sms_ip_1}.${sms_ip_2}.${sms_ip_3}.$(($i+1))") ; done
ntp_servers=() ntp_servers+=("< ... >") ntp_servers+=("< ... >") ntp_servers+=("< ... >") ntp_servers+=("< ... >")
systemctl enable ntpd.service for ((i=0; i<${#ntp_servers[@]}; i++)) ; do echo "server ${ntp_servers[$i]}" >> /etc/ntp.conf ; done systemctl restart ntpd
A friendly reminder that this issue had no activity for 30 days.
Number of sockets in each compute node
Number of cores in each compute node socket
Number of threads for each compute node core
Modify the default ohpc version of slurm.conf to have the correct Sockets, CoresPerSocket, and ThreadsPerCore reflecting the compute nodes
Disable SELinux
Desired addresses for the compute nodes
NTP servers for clock synchronization
Enable NTP services for clock synchronization