65 | | '''2. Change hostnames [[BR]]''' |
66 | | |
67 | | |
68 | | Login to each node separately using the SSH button in Flack and change hostname using the following command: [[BR]] |
69 | | |
70 | | nodeA[[BR]] |
71 | | |
72 | | {{{ |
73 | | sudo hostname nodeA |
74 | | sudo /etc/init.d/omf-resctl-5.4 restart |
75 | | }}} |
76 | | |
77 | | node B[[BR]] |
78 | | |
79 | | {{{ |
80 | | sudo hostname nodeB |
81 | | sudo /etc/init.d/omf-resctl-5.4 restart |
82 | | }}} |
83 | | |
84 | | |
85 | | |
86 | | '''3. Edit Experiment Script. [[BR]]''' |
| 65 | The postboot script is attached here. This is just for your refernce. It is automatically executed when you submit your request Rspec. There is no need for any modifictaions. [[BR]] |
| 66 | |
| 67 | {{{ |
| 68 | !/bin/bash |
| 69 | |
| 70 | cd /local |
| 71 | read -r slice</var/emulab/boot/nickname |
| 72 | slicename=$(echo $slice | cut -f2 -d.) |
| 73 | |
| 74 | host=$(hostname) |
| 75 | |
| 76 | host1=$(echo $host | cut -f1 -d.) |
| 77 | |
| 78 | hostname $host1 |
| 79 | curl http://emmy9.casa.umass.edu/pingWrap.rb -o /root/pingWrap.rb |
| 80 | chmod +x /root/pingWrap.rb |
| 81 | |
| 82 | curl http://emmy9.casa.umass.edu/omf-resctl.yaml -o /etc/omf-resctl-5.4/omf-resctl.yaml |
| 83 | perl -i.bak -pe "s/\:slice\:/\:slice\: $slicename/g" /etc/omf-resctl-5.4/omf-resctl.yaml |
| 84 | /etc/init.d/omf-resctl-5.4 restart |
| 85 | |
| 86 | }}} |
| 87 | |
| 88 | |
| 89 | '''2. Edit Experiment Script. [[BR]]''' |