| 63 | 6. The resultant image has been named as orbit-parallel. |
| 64 | |
| 65 | On this orbit-parallel pxe image it is possible to run gexec from the console with the GEXEC_SVRS set to the particular node. |
| 66 | |
| 67 | '''Imaging Nodes using GEXEC''' |
| 68 | |
| 69 | To image the nodes using gexec I have made some changes to the imageNodes. This imagenodes can be used to load images on one node only. One can load multiple images on different nodes using the script on different windows simultaneosly. The script imageNodes4 basically performs the following steps: |
| 70 | |
| 71 | 1. Takes as input the node and the image to be loaded (same as imageNodes). |
| 72 | |
| 73 | 2. Sets up soft tftp links to the node for orbit-parallel pxe image. |
| 74 | |
| 75 | 3. Boots on the node using cmc service. |
| 76 | |
| 77 | 4. The node boots into the orbit-parallel image. |
| 78 | |
| 79 | 5. The image provided by the user is launched using the frisbee service. |
| 80 | |
| 81 | 6. The environmental variables for gexec are set accordingly i.e. the GEXEC_SVRS and LD_ASSUME_KERNEL. |
| 82 | |
| 83 | 7. The port number on which the frisbee server is launched is determined and the frisbee client is set up on the node using gexec. The command looks as follows: |
| 84 | |
| 85 | gexec -n 0 frisbee -p <port no> -m <multicast address> -i <node_ip> /dev/hda |
| 86 | |
| 87 | 8. The boot image is cleared. |
| 88 | |
| 89 | 9. Once the image is copied to the node using the frisbee service, the node is reset using cmc service to boot into the loaded image. |