testnodereimage
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| testnodereimage [2019/07/10 14:25] – djgalloway | testnodereimage [2022/06/28 14:53] (current) – djgalloway | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Reimaging Testnodes ====== | ====== Reimaging Testnodes ====== | ||
| ===== Summary ===== | ===== Summary ===== | ||
| - | [[hardware: | + | [[hardware: |
| Prior to 2018, we didn't have [[services: | Prior to 2018, we didn't have [[services: | ||
| - | Having said that, Cobbler is configured using [[services: | + | Cobbler is configured using [[services: |
| + | |||
| + | ===== set-next-server ===== | ||
| + | |||
| + | For machines that typically use FOG, you will need to tell the DHCP server to point whatever machine you're reimaging to Cobbler' | ||
| + | dgalloway@p50 ~ ()$ set-next-server-local.sh smithi071 cobbler | ||
| + | + ssh store01.front.sepia.ceph.com 'sudo / | ||
| + | + dhcpconfig=/ | ||
| + | ++ date +%s | ||
| + | + timestamp=1656427483 | ||
| + | + cobblerip=172.21.0.11 | ||
| + | + cobblerfilename=/ | ||
| + | + fogip=172.21.0.72 | ||
| + | + fogfilename=/ | ||
| + | ++ sed -n '/host smithi071-front/,/ | ||
| + | ++ grep ' | ||
| + | ++ awk '{ print $3 }' | ||
| + | ++ tr -d ';' | ||
| + | + macaddr=0c: | ||
| + | ++ sed -n '/host smithi071-front/,/ | ||
| + | ++ grep fixed-address | ||
| + | ++ awk '{ print $2 }' | ||
| + | ++ tr -d ';' | ||
| + | + ipaddr=172.21.15.71 | ||
| + | ++ grep -n smithi071 / | ||
| + | ++ cut -d : -f1 | ||
| + | + linenum=2111 | ||
| + | + ' | ||
| + | + ' | ||
| + | + ' | ||
| + | + cp / | ||
| + | + sed -i '/host smithi071-front {/,/ | ||
| + | + ' | ||
| + | + sed -i '2111 i \ host smithi071-front {\n\ hardware ethernet 0c: | ||
| + | + dhcpd -q -t -cf / | ||
| + | + ' | ||
| + | + rm / | ||
| + | Redirecting to / | ||
| + | </ | ||
| + | |||
| + | **Be sure to set it back to FOG when you're done!** | ||
| ===== Cobbler Web UI ===== | ===== Cobbler Web UI ===== | ||
| If you don't already have a Cobbler Web UI account, request one by [[http:// | If you don't already have a Cobbler Web UI account, request one by [[http:// | ||
| - | ==== Single Machine (Manual) ==== | + | ==== Single Machine (Manual |
| - Log in at https:// | - Log in at https:// | ||
| - Click **Systems** on the left sidebar | - Click **Systems** on the left sidebar | ||
| Line 30: | Line 70: | ||
| - When you're done, go back in the Networking settings for the machine and set the MAC address back. | - When you're done, go back in the Networking settings for the machine and set the MAC address back. | ||
| - | ==== Single Machine (Automated) ==== | + | ==== Single Machine (Automated |
| - Log in at https:// | - Log in at https:// | ||
| - Click **Systems** on the left sidebar | - Click **Systems** on the left sidebar | ||
| Line 39: | Line 79: | ||
| - Check **Netboot Enabled** | - Check **Netboot Enabled** | ||
| - Click **Save** | - Click **Save** | ||
| - | - Power cycle the testnode | + | - [[https:// |
| ==== Multiple Machines (Automated) ==== | ==== Multiple Machines (Automated) ==== | ||
| Line 51: | Line 91: | ||
| - Select **Netboot Enabled** under the **Batch Actions** drop-down at the top | - Select **Netboot Enabled** under the **Batch Actions** drop-down at the top | ||
| - Click **OK** | - Click **OK** | ||
| - | - Power cycle the testnodes you wish to reimage | + | - [[https:// |
| ===== Cobbler CLI ===== | ===== Cobbler CLI ===== | ||
testnodereimage.1562768725.txt.gz · Last modified: by djgalloway
