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 20:09]
hmeij07 [Configure]
cluster:154 [2017/03/08 18:42]
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 156: Line 156:
 </code> </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 **master** 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
 +
 +chroot /data/ohpc/images/centos7.2 systemctl enable ntpd
 +echo "server 192.168.1.249" >> /data/ohpc/images/centos7.2/etc/ntp.conf
 +
 +# finally on **master** issue
 +perl -pi -e "s/ControlMachine=\S+/ControlMachine=ohpc0-test/" /etc/slurm/slurm.conf
 +echo "/home *(rw,no_subtree_check,fsid=10,no_root_squash)" >> /etc/exports
 +echo "/opt/ohpc/pub *(ro,no_subtree_check,fsid=11)" >> /etc/exports
 +exportfs -ra
 +systemctl restart nfs
 +systemctl enable nfs-server
 +
 +</code>
 \\ \\
 **[[cluster:0|Back]]** **[[cluster:0|Back]]**
cluster/154.txt ยท Last modified: 2018/08/17 12:48 by hmeij07