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/07 19:07]
hmeij07 [Configure]
cluster:154 [2017/03/08 18:32]
hmeij07 [Configure]
Line 94: Line 94:
 </code> </code>
  
-  * Configure ''ib0'' and ''IPoIB'' if needed, consult  [[cluster:145|Infiniband]]+  * Configure ''ib0'' and ''IPoIB'' if needed, consult  [[cluster:145|Infiniband]], also consult the PDF file.
  
 ==== Configure ==== ==== Configure ====
  
-  * Warewulf (do yourself a favor and check changes in file)+  * Warewulf (do yourself a favor and check changes in file to avoid typos)
  
 <code> <code>
Line 107: Line 107:
        
 perl -pi -e "s/cgi-bin>\$/cgi-bin>\n Require all granted/" /etc/httpd/conf.d/warewulf-httpd.conf 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 # -ni not -pi
Line 112: Line 114:
  
 # restart/enable services # restart/enable services
 +systemctl restart xinetd
 +systemctl enable mariadb.service
 +systemctl restart mariadb
 +systemctl enable httpd.service
 +systemctl restart httpd
 +
 +
 +</code>
 +
 +  * Now let get ready to provision a node. First we need to build a CHROOT environment.
 +
 +<code>
 +
 +# defined repo
 +less /usr/libexec/warewulf/wwmkchroot/centos-7.tmpl
 +
 +# admin area
 +ls -R /opt/ohpc/admin/
 +
 +# use another disk for images
 +mkdir /data
 +mkfs.xfs -f /dev/sdb1
 +mount /data
 +mkdir -p /data/ohpc/images/centos7.2
 +
 +# this yields an error as 7.2.1511 is already deprecated
 +wwmkchroot centos-7 /data/ohpc/images/centos7.2
 +"This directory (and version of CentOS) is deprecated.  For normal users,
 +you should use /7/ and not /7.2.1511/ in your path."
 +# so we follow their advise and edit the repo destination s/7.2.1511/7/
 +vi /usr/libexec/warewulf/wwmkchroot/centos-7.tmpl
 +
 +# try again
 +wwmkchroot centos-7 /data/ohpc/images/centos7.2
 +# ls /data/ohpc/images/centos7.2/
 +bin  boot  dev  etc  fastboot  home  lib  lib64  media  mnt  opt  
 +proc  root  run  sbin  srv  sys  tmp  usr  var
 +# du -hs /data/ohpc/images/centos7.2/
 +490M    /data/ohpc/images/centos7.2/
 +
 +</code>
 +
 +  * Next customize the CHROOT environment
 +
 +<code>
 +
 +cp -p /etc/resolv.conf /data/ohpc/images/centos7.2/etc/
 +yum -y --installroot=/data/ohpc/images/centos7.2 groupinstall ohpc-slurm-client
 +yum -y --installroot=/data/ohpc/images/centos7.2 install kernel
 +yum -y --installroot=/data/ohpc/images/centos7.2 install ntp
 +yum -y --installroot=/data/ohpc/images/centos7.2 install lmod-ohpc
 +# pass on infiniband
 +
 +# if it does not exist on sms issue command ''wwinit ssh''
 +cat ~/.ssh/cluster.pub
 +cat ~/.ssh/cluster.pub >> /data/ohpc/images/centos7.2/root/.ssh/authorized_keys
 +
 +echo "192.168.1.249:/home /home nfs nfsvers=3,rsize=1024,wsize=1024,cto 0 0 " \
 +      >> /data/ohpc/images/centos7.2/etc/fstab
 +echo "192.168.1.249:/opt/ohpc/pub /opt/ohpc/pub nfs nfsvers=3 0 0 " \
 +      >> /data/ohpc/images/centos7.2/etc/fstab
  
-<\code>+chroot /data/ohpc/images/centos7.2 systemctl enable ntpd 
 +echo "server 192.168.1.249" >> /data/ohpc/images/centos7.2/etc/ntp.conf
  
  
 +</code>
 \\ \\
 **[[cluster:0|Back]]** **[[cluster:0|Back]]**
cluster/154.txt · Last modified: 2018/08/17 12:48 by hmeij07