| 44 | * Each node uses the same image but runs a slightly post boot script. The post boot scripts (specified in Flukes) are shown below. |
| 45 | * Node A |
| 46 | {{{ |
| 47 | echo nodeA > /etc/hostname |
| 48 | hostname -F /etc/hostname |
| 49 | |
| 50 | echo 192.168.1.10 nodeA-L1 nodeA >> /etc/hosts |
| 51 | echo 192.168.3.10 nodeA-L3 >> /etc/hosts |
| 52 | |
| 53 | echo 192.168.1.11 nodeB-L1 nodeB >> /etc/hosts |
| 54 | echo 192.168.2.11 nodeB-L2 >> /etc/hosts |
| 55 | |
| 56 | echo 192.168.2.12 nodeC-L2 nodeC >> /etc/hosts |
| 57 | echo 192.168.3.12 nodeC-L3 >> /etc/hosts |
| 58 | |
| 59 | route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.11 |
| 60 | |
| 61 | curl http://emmy8.casa.umass.edu/omf-resctl.yaml -o |
| 62 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 63 | perl -i.bak -pe "s/\:name\:/\:name\: \'nodeA\' /g" |
| 64 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 65 | perl -i.bak -pe "s/\:slice\:/\:slice\: dilip-gec14/g" |
| 66 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 67 | /etc/init.d/omf-resctl-5.4 restart |
| 68 | }}} |
| 69 | * Node B |
| 70 | {{{ |
| 71 | echo nodeB > /etc/hostname |
| 72 | hostname -F /etc/hostname |
| 73 | |
| 74 | |
| 75 | echo 192.168.1.10 nodeA-L1 nodeA >> /etc/hosts |
| 76 | echo 192.168.3.10 nodeA-L3 >> /etc/hosts |
| 77 | |
| 78 | echo 192.168.1.11 nodeB-L1 nodeB >> /etc/hosts |
| 79 | echo 192.168.2.11 nodeB-L2 >> /etc/hosts |
| 80 | |
| 81 | echo 192.168.2.12 nodeC-L2 nodeC >> /etc/hosts |
| 82 | echo 192.168.3.12 nodeC-L3 >> /etc/hosts |
| 83 | |
| 84 | echo 1 > /proc/sys/net/ipv4/ip_forward |
| 85 | |
| 86 | curl http://emmy8.casa.umass.edu/omf-resctl.yaml -o |
| 87 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 88 | perl -i.bak -pe "s/\:name\:/\:name\: \'nodeB\' /g" |
| 89 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 90 | perl -i.bak -pe "s/\:slice\:/\:slice\: dilip-gec14/g" |
| 91 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 92 | /etc/init.d/omf-resctl-5.4 restart |
| 93 | }}} |
| 94 | * Node C |
| 95 | {{{ |
| 96 | echo nodeC > /etc/hostname |
| 97 | hostname -F /etc/hostname |
| 98 | |
| 99 | echo 192.168.1.10 nodeA-L1 nodeA >> /etc/hosts |
| 100 | echo 192.168.3.10 nodeA-L3 >> /etc/hosts |
| 101 | |
| 102 | echo 192.168.1.11 nodeB-L1 nodeB >> /etc/hosts |
| 103 | echo 192.168.2.11 nodeB-L2 >> /etc/hosts |
| 104 | |
| 105 | echo 192.168.2.12 nodeC-L2 nodeC >> /etc/hosts |
| 106 | echo 192.168.3.12 nodeC-L3 >> /etc/hosts |
| 107 | |
| 108 | route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.2.11 |
| 109 | |
| 110 | curl http://emmy8.casa.umass.edu/omf-resctl.yaml -o |
| 111 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 112 | perl -i.bak -pe "s/\:name\:/\:name\: \'nodeC\' /g" |
| 113 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 114 | perl -i.bak -pe "s/\:slice\:/\:slice\: dilip-gec14/g" |
| 115 | /etc/omf-resctl-5.4/omf-resctl.yaml |
| 116 | /etc/init.d/omf-resctl-5.4 restart |
| 117 | }}} |
| 118 | |