cluster:144
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cluster:144 [2015/12/23 19:17] – [Part 2] hmeij | cluster:144 [2018/07/26 18:52] (current) – [Deploying] hmeij07 | ||
|---|---|---|---|
| Line 47: | Line 47: | ||
| Set '' | Set '' | ||
| - | * / | + | |
| < | < | ||
| # minder: all NFS file systems unmounted? | # minder: all NFS file systems unmounted? | ||
| + | # or add rsync excludes in | ||
| + | # / | ||
| mkdir / | mkdir / | ||
| Line 87: | Line 89: | ||
| # switch node to image VNFS | # switch node to image VNFS | ||
| wwsh provision set b6 --vnfs=b0.chroot | wwsh provision set b6 --vnfs=b0.chroot | ||
| + | |||
| + | # Rajil adds for GPU | ||
| + | # Keep in mind that nouveau should be disabled, | ||
| + | wwsh provision set c038 --kargs=\ | ||
| + | " | ||
| # just to be prudent | # just to be prudent | ||
| Line 118: | Line 125: | ||
| This is currently not working as expected. In my first attempts I'd specify sda1 (size=500), sda2 (size=2048, type=swap) and sda3 (size=fill) but what I end up with is a standard layout it looks like. Any sizes are also ignored. So for now I just pick the ones I want (sda1, sda3, sda7). | This is currently not working as expected. In my first attempts I'd specify sda1 (size=500), sda2 (size=2048, type=swap) and sda3 (size=fill) but what I end up with is a standard layout it looks like. Any sizes are also ignored. So for now I just pick the ones I want (sda1, sda3, sda7). | ||
| + | |||
| + | Note: this problem turns out to be hardware related, it is not appearing on newer hardware | ||
| + | --- // | ||
| Line 160: | Line 170: | ||
| wwbootstrap --chroot=/ | wwbootstrap --chroot=/ | ||
| - | wwsh provision set --vnfs=n0.chroot --bootstrap=2.6.32-573.12.1.el6.x86_64 | + | wwsh provision set n22 --vnfs=n0.chroot --bootstrap=2.6.32-573.12.1.el6.x86_64 |
| </ | </ | ||
| Line 211: | Line 221: | ||
| Yea. | Yea. | ||
| + | |||
| + | ==== Deploying ==== | ||
| + | |||
| + | As part of my deployment I edited out any device information in file ''/ | ||
| + | |||
| + | Then we build a template file with node specs in it like so: | ||
| + | |||
| + | < | ||
| + | # HP blades reverses HWADDR (don't ask) | ||
| + | # use nic port bottom (no changes) | ||
| + | # set both ipaddr/ | ||
| + | # post edit | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # reboot (with bootload=EXIT) | ||
| + | | ||
| + | | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | My deploy script (give an entire line from above as arguments) | ||
| + | |||
| + | < | ||
| + | |||
| + | #!/bin/bash | ||
| + | |||
| + | # deploy a n0.chroot node via PXE golden image transfer | ||
| + | # dynamic files are always in stateless CHROOT/ | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | if [ $# != 6 ]; then | ||
| + | echo " | ||
| + | exit | ||
| + | fi | ||
| + | |||
| + | wwsh object delete $node -y | ||
| + | sleep 3 | ||
| + | |||
| + | wwsh node new $node --netdev=eth0 \ | ||
| + | | ||
| + | | ||
| + | |||
| + | wwsh node set $node --netdev=eth1 \ | ||
| + | | ||
| + | | ||
| + | |||
| + | wwsh node set $node --netdev=ib0 \ | ||
| + | | ||
| + | | ||
| + | |||
| + | wwsh provision set $node --fileadd passwd, | ||
| + | wwsh provision set $node --fileadd hosts, | ||
| + | wwsh provision set $node --fileadd network.ww, | ||
| + | |||
| + | # note: no diskpartition, | ||
| + | # otherwise add diskpartion=sda so that " | ||
| + | |||
| + | wwsh object modify -s bootloader=sda $node -y | ||
| + | wwsh object modify -s diskformat=sda1, | ||
| + | |||
| + | if [ " | ||
| + | # golden images with 3 partitions | ||
| + | wwsh object modify -s filesystems=" | ||
| + | else | ||
| + | # hp blade 4 partitions | ||
| + | wwsh object modify -s filesystems=" | ||
| + | fi | ||
| + | |||
| + | wwsh provision set $node --vnfs=n0.chroot -y | ||
| + | wwsh provision set $node --bootstrap=2.6.32-573.12.1.el6.x86_64 -y | ||
| + | |||
| + | wwsh provision set --bootlocal=UNDEF $node -y | ||
| + | |||
| + | wwsh pxe update | ||
| + | wwsh dhcp update | ||
| + | | ||
| + | | ||
| + | |||
| + | echo "now reboot: $node" | ||
| + | |||
| + | echo "wwsh provision set --bootlocal=EXIT $node -y" | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| \\ | \\ | ||
| **[[cluster: | **[[cluster: | ||
cluster/144.1450898258.txt.gz · Last modified: by hmeij
