Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| clusteradm:nyinetinstall [2012/06/06 23:33] – MarkLinimon | clusteradm:nyinetinstall [2020/11/21 06:26] (current) – PhilipPaeps | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== installing a new machine at NYI ==== | + | ====== installing a new machine at NYI ====== |
| - | ([[/ | + | This information is correct as of November 2020. |
| + | |||
| + | ===== Metadata ===== | ||
| + | |||
| + | Add the machine to https:// | ||
| + | |||
| + | * Allocate IP addresses in the DNS. | ||
| + | * Remember to set up reverse DNS too. | ||
| + | * Also set up an IP address for IPMI. | ||
| + | * And reverse DNS for it. | ||
| + | * Poke holes in the firewall for IPMI | ||
| + | * Add IPMI to conserver | ||
| + | |||
| + | After committing to admin-svn, wait for the update emails to show up and resolve any alerts. | ||
| + | |||
| + | ===== Power ===== | ||
| + | |||
| + | On admin.nyi, console to rpduXXXX/ | ||
| + | |||
| + | ===== Network ===== | ||
| + | |||
| + | Modern machines will have IPMI rather than serial ports. | ||
| + | |||
| + | For a fresh installation, | ||
| + | |||
| + | On admin.nyi, ssh to rsw, and set things up. | ||
| + | |||
| + | < | ||
| + | set interfaces ge-N/0/XX description " | ||
| + | set interfaces ge-N/0/YY description " | ||
| + | set interfaces ge-N/0/XX unit 0 family ethernet-switching vlan members install | ||
| + | set interfaces ge-N/0/YY unit 0 family ethernet-switching vlan members install | ||
| + | commit | ||
| + | </ | ||
| + | |||
| + | Now grep '' | ||
| + | |||
| + | ===== Initial install ===== | ||
| + | |||
| + | Follow the instructions in /etc/motd of the pxeroot environment. | ||
| + | |||
| + | Before rebooting the machine, jail into the install environment and set up production network information in / | ||
| + | |||
| + | When you're happy the machine has a chance of showing up on the network following a reboot, exit the jail and reboot the server. | ||
| + | |||
| + | ===== Move to production network ===== | ||
| + | |||
| + | While the machine is booting, move the network interface (not IPMI!) to the production vlan on the switch: | ||
| + | |||
| + | < | ||
| + | delete interfaces ge-N/0/YY unit 0 family ethernet-switching vlan members install | ||
| + | set interfaces ge-N/0/YY unit 0 family ethernet-switching vlan members XXXXX | ||
| + | commit | ||
| + | </ | ||
| + | |||
| + | When the machine comes up, verify that the network works by pinging freebsd.org on the console. | ||
| + | |||
| + | ===== Finish installation ===== | ||
| + | |||
| + | Follow instructions in /etc/motd for the new install. | ||
| + | |||
| + | You'll probably want to set up swap too. | ||
| + | |||
| + | < | ||
| + | gmirror label swap0 ada0p2 ada1p2 | ||
| + | gmirror label swap1 ada2p2 ada3p2 | ||
| + | </ | ||
| + | |||
| + | And adjust /etc/fstab accordingly. | ||
| + | |||
| + | Do a '' | ||
| + | |||
| + | After /etc/motd is clear of warnings, reboot the machine to make sure everything still works. | ||
| + | |||
| + | ===== Move IPMI to production ===== | ||
| + | |||
| + | At this stage, the IPMI port is still in the install VLAN and you're talking to it with ipmitool on admin.nyi. | ||
| + | |||
| + | ssh to the new machine from somewhere else and become root and disconnect your ipmitool on admin.nyi (with ~.). | ||
| + | |||
| + | On the new machine, over ssh: | ||
| + | |||
| + | < | ||
| + | pkg install ipmitool | ||
| + | ipmitool lan set 1 ipsrc static | ||
| + | ipmitool lan set 1 ipaddr 10.0.0.XXX | ||
| + | ipmitool lan set 1 netmask 255.255.255.0 | ||
| + | ipmitool lan set 1 defgw ipaddr 10.0.0.1 | ||
| + | </ | ||
| + | |||
| + | Now move the IPMI port to the netmgmt vlan on rsw: | ||
| + | |||
| + | < | ||
| + | delete interfaces ge-N/0/XX unit 0 family ethernet-switching vlan members install | ||
| + | set interfaces ge-N/0/XX unit 0 family ethernet-switching vlan members netmgmt | ||
| + | commit | ||
| + | </ | ||
| + | |||
| + | If you've done everything right, after about a minute, you should be able to console to the new machine from admin.nyi. | ||
| + | |||
| + | ====== old information from before November 2020 ====== | ||
| + | |||
| + | ([[/ | ||
| + | ([[/ | ||
| === all machines === | === all machines === | ||
| Line 13: | Line 116: | ||
| * make sure '' | * make sure '' | ||
| - | * make sure the '' | + | * make sure the '' |
| * boot the machine | * boot the machine | ||
| * format the drive | * format the drive | ||
| Line 25: | Line 128: | ||
| * if you have not done so already: | * if you have not done so already: | ||
| - | * create a directory for pxebooting something like '' | + | * create a kickstart |
| - | * copy over '' | + | * copy over the '' |
| - | * run it | + | * '' |
| - | * make sure '' | + | * (see [[http:// |
| - | * make sure the '' | + | * make sure '' |
| - | * reboot the machine | + | * make sure the '' |
| - | * do the install | + | * reboot the machine. |
| + | * do the install. | ||
| + | * reboot the machine. | ||
| + | * if the machine comes up correctly, make sure the '' | ||
| + | * reboot the machine again to get the proper new address you picked. | ||
| * profit! | * profit! | ||