User Tools

Site Tools


cluster:139

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:139 [2015/04/10 17:56]
hmeij [Warewulf LBL]
cluster:139 [2015/04/16 18:00]
hmeij
Line 122: Line 122:
 </code> </code>
  
-Next restart some warewulf services. I had to edit the /etc/warewulf/dhcpd-template.conf several times and hardcoded the values in for network, netmask and ipaddr becuase I realized this server is my virtualization KVM host and eth0 is bridged to br0 and warewulf is looking at the first ethernet and picks up eth1.+Next restart some warewulf services. I had to edit the /etc/warewulf/dhcpd-template.conf several times and hardcoded the values in for network, netmask and ipaddr because I realized this server is my virtualization KVM test host and eth0 is bridged to br0 and warewulf is looking at the first ethernet and picks up eth1.
  
 <code> <code>
Line 146: Line 146:
 </code> </code>
  
-Booting the node we observe the eth0 MAC address being picked up by DHCPd followed by the tftpboot process.  The node boots, et voila, CentOS 6.6 //stateless// compute node.+Booting the node we observe the eth0 MAC address being picked up by DHCPd followed by the tftpboot process.  The node boots, et voila, CentOS 6.6 //stateless// compute node. Next import files we want the same on all nodes and associate them with the nodes. 
 + 
 +<code> 
 + 
 +[root@petaltail ~]# wwsh file import /etc/passwd 
 + 
 +[root@petaltail ~]# wwsh file list 
 +dynamic_hosts           : -rw-r--r-- 0   root root            10174 /etc/hosts 
 +group                   : -rw-r--r-- 1   root root             6247 /etc/group 
 +passwd                  : -rw-r--r-- 1   root root            20094 /etc/passwd 
 +shadow                  : ---------- 1   root root            23663 /etc/shadow 
 + 
 +[root@petaltail ~]# wwsh provision set b[0-51] --fileadd passwd 
 + 
 +[root@petaltail ~]# wwsh provision print 
 +#### b51.cluster ############################################################## 
 +    b51.cluster: BOOTSTRAP        = 2.6.32-504.8.1.el6.x86_64 
 +    b51.cluster: VNFS             = centos-6 
 +    b51.cluster: FILES            = dynamic_hosts,group,passwd,shadow 
 +    b51.cluster: PRESHELL         = FALSE 
 +    b51.cluster: POSTSHELL        = FALSE 
 +    b51.cluster: CONSOLE          = UNDEF 
 +    b51.cluster: PXELINUX         = UNDEF 
 +    b51.cluster: SELINUX          = DISABLED 
 +    b51.cluster: KARGS            = "quiet" 
 +    b51.cluster: BOOTLOCAL        = FALSE 
 +... 
 + 
 +</code> 
 + 
 +Next build a hybrid VNFS, this is the way to add packages to the nodes.  For example NTP. 
 + 
 +<code> 
 + 
 +cd /var/chroots/centos-6/ 
 +mkdir vnfs 
 + 
 +vi etc/fstab (inside of chroot area, edit) 
 +192.168.1.217:/var/chroots/centos-6 /vnfs nfs defaults 0 0 
 + 
 +wwvnfs --chroot /var/chroots/centos-6 --hybridpath=/vnfs 
 +Overwrite original: y 
 + 
 +# reboot node, observe mount, then add NTP to chgroot 
 + 
 +yum --tolerant --installroot /var/chroots/centos-6 -y install ntp 
 + 
 +vi etc/init.d/ntpd (inside of chroot, edit) 
 +# chkconfig: 35 58 74 
 + 
 +# then make the following links in etc/rc[3|5].d/S58ntpd pointing to ../init.d/ntpd 
 + 
 +vi etc/ntp.conf (inside of chroot, sole contents are, IP is master on private network) 
 +restrict default ignore 
 +restrict 127.0.0.0 
 +server 192.168.1.217 
 +restrict 192.168.1.217 nomodify 
 + 
 +wwvnfs --chroot /var/chroots/centos-6 --hybridpath=/vnfs -y 
 +VNFS 'centos-6 has been imported 
 + 
 +# reboot node 
 + 
 +</code>
  
 Useful links Useful links
cluster/139.txt · Last modified: 2018/08/16 12:58 by hmeij07