User Tools

Site Tools


cluster:154

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cluster:154 [2017/03/03 19:15]
hmeij07
cluster:154 [2017/03/07 19:14]
hmeij07 [Configure]
Line 4: Line 4:
 ==== OpenHPC ==== ==== OpenHPC ====
  
-  * install vanilla CentOS 7.2 on ''master''+  * install vanilla CentOS 7.2 on //master//
   * find Install_guide-CentOS7.2-SLURM-1.2.1-x86_64.pdf recipe guide on http://openhpc.community   * find Install_guide-CentOS7.2-SLURM-1.2.1-x86_64.pdf recipe guide on http://openhpc.community
   * turn selinux off   * turn selinux off
Line 20: Line 20:
 [root@ohpc0-test ~]# vi /etc/sysconfig/iptables [root@ohpc0-test ~]# vi /etc/sysconfig/iptables
  
-# lock up port 22 +# lock up port 22: note "eth0" 
--A INPUT -i eth0 -p tcp -m state --state NEW -m tcp -s 129.133.0.0/16 --dport 22 -j ACCEPT+-A INPUT -i enp4s0 -p tcp -m state --state NEW -m tcp -s 129.133.0.0/16 --dport 22 -j ACCEPT
  
-# local allow: note eth1 +# local allow: note "eth1" 
--A INPUT -i eth1 -d 192.168.0.0/16 -p tcp --dport 0:65535 -j ACCEPT +-A INPUT -i enp8s0 -d 192.168.0.0/16 -p tcp --dport 0:65535 -j ACCEPT 
--A INPUT -i eth1 -d 192.168.0.0/16 -p udp --dport 0:65535 -j ACCEPT+-A INPUT -i enp8s0 -d 192.168.0.0/16 -p udp --dport 0:65535 -j ACCEPT
  
 [root@ohpc0-test ~]# vi /etc/sysconfig/ip6tables [root@ohpc0-test ~]# vi /etc/sysconfig/ip6tables
Line 52: Line 52:
  
 [root@ohpc0-test ~]# reboot [root@ohpc0-test ~]# reboot
 +
 +</code>
 +
 +  * next add OpenHPC component, install the RPM package which also enables repo EPEL
 +
 +<code>
 +
 +[root@ohpc0-test ~]# yum install http://build.openhpc.community/OpenHPC:/1.2/CentOS_7.2/x86_64/ohpc-release-1.2-1.x86_64.rpm
 +
 +Installed:
 +  ohpc-release.x86_64 0:1.2-1
 +Dependency Installed:
 +  epel-release.noarch 0:7-9
 +
 +[root@ohpc0-test ~]# yum repolist
 +repo id                       repo name
 +OpenHPC                       OpenHPC-1.2 - Base
 +OpenHPC-updates               OpenHPC-1.2 - Updates
 +base/7/x86_64                 CentOS-7 - Base
 +*epel/x86_64                  Extra Packages for Enterprise Linux 7 - x86_64
 +extras/7/x86_64               CentOS-7 - Extras
 +updates/7/x86_64              CentOS-7 - Updates
 +
 +</code>
 +
 +  * Next provisioning, pull down a suite of packages
 +
 +<code>
 +
 + yum -y groupinstall ohpc-base
 + yum -y groupinstall ohpc-warewulf
 +# for openlava if we decide not slurm
 + yum install tcl-devel
 +
 + systemctl enable ntpd.service
 + systemctl start ntpd
 + systemctl status ntpd
 +
 + yum -y groupinstall ohpc-slurm-server
 +
 +</code>
 +
 +  * Configure ''ib0'' and ''IPoIB'' if needed, consult  [[cluster:145|Infiniband]]
 +
 +==== Configure ====
 +
 +  * Warewulf (do yourself a favor and check changes in file)
 +
 +<code>
 + 
 +perl -pi -e "s/device = eth1/device = enp8s0/" /etc/warewulf/provision.conf
 +
 +perl -pi -e "s/^\s+disable\s+= yes/ disable = no /" /etc/xinetd.d/tftp
 +   
 +perl -pi -e "s/cgi-bin>\$/cgi-bin>\n Require all granted/" /etc/httpd/conf.d/warewulf-httpd.conf
 +perl -pi -e "s/Allow from all/Require all granted/" /etc/httpd/conf.d/warewulf-httpd.conf
 +
 +  
 +# -ni not -pi
 +perl -ni -e "print unless /^\s+Order allow,deny/" /etc/httpd/conf.d/warewulf-httpd.conf
 +
 +# restart/enable services
  
 </code> </code>
cluster/154.txt · Last modified: 2018/08/17 12:48 by hmeij07