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/08 20:20]
hmeij07 [Deploy]
cluster:154 [2017/03/09 15:46]
hmeij07 [Deploy]
Line 195: Line 195:
 <code> <code>
  
-# Both are loaded in database+# Both are loaded in database; back up if production
 echo "drivers += updates/kernel" >> /etc/warewulf/bootstrap.conf echo "drivers += updates/kernel" >> /etc/warewulf/bootstrap.conf
 wwbootstrap `uname -r` wwbootstrap `uname -r`
Line 202: Line 202:
 # VNFS 'centos7.2' has been imported # VNFS 'centos7.2' has been imported
 # Wrote a new configuration file at: /etc/warewulf/vnfs/centos7.2.conf # Wrote a new configuration file at: /etc/warewulf/vnfs/centos7.2.conf
-[root@ohpc0-test ~]# wwsh -y file import /tmp/network.12501 --name network + 
-[root@ohpc0-test ~]# wwsh -y file set network --path /etc/sysconfig/network --mode=0644 --uid=0  +wwsh -y file import /tmp/network.12501 --name network 
-[root@ohpc0-test ~]# wwsh -y node new ohpc0 --ipaddr=192.168.1.248 --hwaddr=00:15:C5:EF:08:61 -D enp8s0 +wwsh -y file set network --path /etc/sysconfig/network --mode=0644 --uid=0  
-Created symlink from /etc/systemd/system/multi-user.target.wants/dhcpd.service to /usr/lib/systemd/system/dhcpd.service.+wwsh -y node new ohpc0 --ipaddr=192.168.1.248 --hwaddr=00:15:C5:EF:08:61 -D enp8s0
  
 wwsh -y file import /etc/passwd wwsh -y file import /etc/passwd
Line 217: Line 217:
 wwsh pxe update wwsh pxe update
  
 +</code>
  
 +  * Note: the next part is optional but I recommend it. Warewulf by defaults deploys ''stateless'' (in memory) but I'd rather deploy ''statefull'' in which VNFS is written to disk. The advantage is that if the node crashed, it will reboot without the help of the **master**, and Linux typically survives crashes. Actually I like the ''golden image'' even better, customize a node, then create the image. More details at [[cluster:144|Warewulf Golden Image]]
 +
 +<code>
 +
 +yum -y --installroot=/data/ohpc/images/centos7.2 install grub2
 +wwvnfs -y --chroot /data/ohpc/images/centos7.2
 +
 +wwsh -y object modify -s bootloader=sda -t node ohpc0
 +wwsh -y object modify -s diskpartition=sda -t node ohpc0
 +wwsh -y object modify -s diskformat=sda1,sda2,sda3 -t node ohpc0
 +wwsh -y object modify -s filesystems=\    "mountpoint=/boot:dev=sda1:type=ext3:size=500,\
 +                         dev=sda2:type=swap:size=32768,\
 +                         mountpoint=/:dev=sda3:type=ext3:size=fill" -t node ohpc0
 +wwsh -y object modify -s bootlocal=EXIT -t node ohpc0 
 +
 +
 +[root@ohpc0-test ~]# wwsh -y object print ohpc0 -p :all
 +#### node ohpc0 ###############################################################
 +       4: NAME       = ohpc0
 +       4: BOOTLOADER = sda
 +       4: BOOTSTRAPID = 1
 +       4: DISKFORMAT = sda1,sda2,sda3
 +       4: DISKPARTITION = sda
 +       4: FILEIDS    = 10,3,5,6,7,8,9
 +       4: FILESYSTEMS = dev=sda2:type=swap:size=32768,
 +                        mountpoint=/:dev=sda3:type=ext3:size=fill,
 +                        mountpoint=/boot:dev=sda1:type=ext3:size=500
 +       4: NETDEVS    = ObjectSet
 +            NETDEVS.enp8s0.NAME       = enp8s0
 +            NETDEVS.enp8s0.HWADDR     = 00:15:c5:ef:08:61
 +            NETDEVS.enp8s0.IPADDR     = 192.168.1.248
 +       4: NODENAME   = ohpc0
 +       4: VNFSID     = 2
 +
 +[root@ohpc0-test ~]# wwsh -y bootstrap list
 +BOOTSTRAP NAME            SIZE (M)
 +3.10.0-327.el7.x86_64     26.4
 +
 +[root@ohpc0-test ~]# wwsh -y vnfs list
 +VNFS NAME            SIZE (M) CHROOT LOCATION
 +centos7.2            278.2    /data/ohpc/images/centos7.2
  
 </code> </code>
 +
 \\ \\
 **[[cluster:0|Back]]** **[[cluster:0|Back]]**
cluster/154.txt · Last modified: 2018/08/17 12:48 by hmeij07