cluster:216
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cluster:216 [2022/04/29 14:47] – created hmeij07 | cluster:216 [2022/06/07 20:07] (current) – [queues left] hmeij07 | ||
|---|---|---|---|
| Line 87: | Line 87: | ||
| --netmask=255.255.0.0 | --netmask=255.255.0.0 | ||
| - | wwsh provision set $node --fileadd | + | wwsh provision set $node --fileadd |
| - | wwsh provision set $node --fileadd | + | wwsh provision set $node --fileadd |
| - | wwsh provision set $node --fileadd network.ww, | + | wwsh provision set $node --fileadd network.ww, |
| - | # write to disk? switch stateless/ | ||
| - | # install grub2 in $CHROOT for stateful | ||
| - | # wwsh object modify -s bootloader=sda $node -y | ||
| - | # wwsh object modify -s diskpartition=sda $node -y | ||
| - | # wwsh object modify -s diskformat=sda1, | ||
| - | # wwsh object modify -s filesystems=" | ||
| - | # rocky8 | + | # stateless, comment out for golden image |
| + | # wwsh provision set $node --bootstrap=4.18.0-348.12.2.el8_5.x86_64 -y | ||
| + | # wwsh provision set $node --vnfs=rocky8.5 -y | ||
| + | |||
| + | # stateful, comment out for golden image and stateless | ||
| + | # install grub2 in $CHROOT first, rebuild vnfs | ||
| + | # wwsh provision set --filesystem=gpt-n59 | ||
| + | # wwsh provision set --bootloader=sda | ||
| + | |||
| + | # uncomment for golden image, comment out stateless and stateful | ||
| wwsh provision set $node --bootstrap=4.18.0-348.12.2.el8_5.x86_64 -y | wwsh provision set $node --bootstrap=4.18.0-348.12.2.el8_5.x86_64 -y | ||
| - | wwsh provision set $node --vnfs=rocky8.5 -y | + | wwsh provision set $node --vnfs=n59.chroot |
| + | wwsh provision set --filesystem=gpt-n59 | ||
| + | wwsh provision set --bootloader=sda | ||
| wwsh provision set --bootlocal=UNDEF $node -y | wwsh provision set --bootlocal=UNDEF $node -y | ||
| - | echo "only for stateful or golden image, after first boot issue" | + | echo "for stateful or golden image, after first boot issue" |
| - | echo "wwsh provision set --bootlocal=EXIT $node" | + | echo "wwsh provision set --bootlocal=normal |
| wwsh pxe update | wwsh pxe update | ||
| Line 112: | Line 118: | ||
| systemctl restart tftp.socket | systemctl restart tftp.socket | ||
| # crontab will shutdown these services at 5pm | # crontab will shutdown these services at 5pm | ||
| + | |||
| # execute the script | # execute the script | ||
| Line 146: | Line 153: | ||
| yum --installroot=/ | yum --installroot=/ | ||
| touch / | touch / | ||
| + | |||
| + | # build out stateful if desired | ||
| + | dnf --installroot $CHROOT install yum | ||
| + | dnf --installroot $CHROOT groupinstall " | ||
| + | dnf --installroot $CHROOT install iptables-services | ||
| + | dnf --installroot $CHROOT clean all | ||
| # rebuild vnfs | # rebuild vnfs | ||
| Line 184: | Line 197: | ||
| tmpfs 3.2G | tmpfs 3.2G | ||
| - | [root@n59 ~]# free -g | + | [root@n59 ~]# fdisk -l |
| - | | + | Device |
| - | Mem: | + | /dev/ |
| - | Swap: | + | / |
| + | / | ||
| + | / | ||
| [root@n59 ~]# cat / | [root@n59 ~]# cat / | ||
| Line 202: | Line 218: | ||
| ==== golden image ==== | ==== golden image ==== | ||
| - | After stateful imaging we touch another file on imaged server then build a golden image. The touching of this new file represents | + | After stateful imaging we touch another file on imaged server then build a golden image. The touching of this new file represents |
| < | < | ||
| Line 225: | Line 241: | ||
| # view / | # view / | ||
| # the HYBRIDIZE section is commented out | # the HYBRIDIZE section is commented out | ||
| + | |||
| + | # / | ||
| + | / | ||
| + | |||
| + | # try on compute nodes | ||
| + | systemctl enable slurmd | ||
| SOURCEADDR=n59 wwmkchroot golden-system \ | SOURCEADDR=n59 wwmkchroot golden-system \ | ||
| Line 266: | Line 288: | ||
| </ | </ | ||
| + | Awesome. You also have a backup now. Image away. And no need for a dhcp server to always be at the ready. Linux will fix journal file system errors 99% of the time if rebooted from say a utility power loss.\\ Thank you Warewulf team. | ||
| + | |||
| + | I also see there are EFI and EFI + NVME filesystem examples in ''/ | ||
| + | |||
| + | ==== logger ==== | ||
| + | |||
| + | For some reason, after vnfs has compiled and deployed ''/ | ||
| + | |||
| + | < | ||
| + | |||
| + | cd /dev | ||
| + | mv log log-orig | ||
| + | ln -s / | ||
| + | |||
| + | logger test | ||
| + | journalctl --since=-1m | ||
| + | -- Logs begin at Thu 2022-05-12 10:46:49 EDT, end at Thu 2022-05-12 10:52:17 EDT. -- | ||
| + | May 12 10:52:17 n59 root[3748]: test | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== queues left ==== | ||
| + | |||
| + | Not imaged will be nodes in these queues | ||
| + | |||
| + | * hp12 n[1-n32] Too old and failing fast, centos 6 | ||
| + | * mwgpu n[33-n37] K20 gpus EOL, no cuda driver updates anymore, centos7 | ||
| + | * mw256fd n[38-n45] When warewulf starts imaging we disappear in a loop of "disks not ready", | ||
cluster/216.1651243653.txt.gz · Last modified: by hmeij07
