Skip to content
Snippets Groups Projects
Unverified Commit 8571ed73 authored by anarcat's avatar anarcat
Browse files

number and flatten the new-node procedure

parent d25116ac
No related branches found
No related tags found
No related merge requests found
...@@ -797,78 +797,79 @@ catastrophic data loss bug in Ganeti or [[drbd]]. ...@@ -797,78 +797,79 @@ catastrophic data loss bug in Ganeti or [[drbd]].
### New node ### New node
- To create a new box, follow [[new-machine-hetzner-robot]] but change 1. To create a new box, follow [[new-machine-hetzner-robot]] but change
the following settings: the following settings:
* Server: [PX62-NVMe][] * Server: [PX62-NVMe][]
* Location: `FSN1` * Location: `FSN1`
* Operating system: Rescue * Operating system: Rescue
* Additional drives: 2x10TB HDD (update: starting from fsn-node-05, * Additional drives: 2x10TB HDD (update: starting from fsn-node-05,
we are *not* ordering additional drives to save on costs, see we are *not* ordering additional drives to save on costs, see
[ticket 33083](https://trac.torproject.org/projects/tor/ticket/33083) for rationale) [ticket 33083](https://trac.torproject.org/projects/tor/ticket/33083) for rationale)
* Add in the comment form that the server needs to be in the same * Add in the comment form that the server needs to be in the same
datacenter as the other machines (FSN1-DC13, but double-check) datacenter as the other machines (FSN1-DC13, but double-check)
[PX62-NVMe]: https://www.hetzner.com/dedicated-rootserver/px62-nvme?country=OTHER [PX62-NVMe]: https://www.hetzner.com/dedicated-rootserver/px62-nvme?country=OTHER
- follow the [[new-machine]] post-install configuration 2. follow the [[new-machine]] post-install configuration
- Network setup: 3. Add the server to the two `vSwitch` systems in [Hetzner Robot web
UI](https://robot.your-server.de/vswitch)
1. Add the server to the two `vSwitch` systems in [Hetzner Robot web UI](https://robot.your-server.de/vswitch) 4. install openvswitch and allow modules to be loaded:
2. install openvswitch and allow modules to be loaded touch /etc/no_modules_disabled
reboot
apt install openvswitch-switch
touch /etc/no_modules_disabled 5. Allocate a private IP address in the `30.172.in-addr.arpa` zone for
reboot the node.
apt install openvswitch-switch
3. Allocate a private IP address in the `30.172.in-addr.arpa` zone for
the node.
4. copy over the `/etc/network/interfaces` from another ganeti node, 6. copy over the `/etc/network/interfaces` from another ganeti node,
changing the `address` and `gateway` fields to match the local changing the `address` and `gateway` fields to match the local
entry. entry.
5. knock on wood, cross your fingers, pet a cat, help your local 7. knock on wood, cross your fingers, pet a cat, help your local
book store, and reboot: book store, and reboot:
reboot reboot
- Prepare all the nodes by configuring them in puppet. They should be 8. Prepare all the nodes by configuring them in puppet. They should
in the class `roles::ganeti::fsn` if they are part of the fsn be in the class `roles::ganeti::fsn` if they are part of the fsn
cluster. cluster.
- Re-enable modules disabling: 9. Re-enable modules disabling:
rm /etc/no_modules_disabled rm /etc/no_modules_disabled
- reboot again 10. reboot again:
Then the node is ready to be added to the cluster, by running this on reboot
the master node:
11. Then the node is ready to be added to the cluster, by running
puppet agent -t this on the master node:
gnt-node add \
--secondary-ip 172.30.135.2 \ puppet agent -t
--no-ssh-key-check \ gnt-node add \
--no-node-setup \ --secondary-ip 172.30.135.2 \
fsn-node-02.torproject.org --no-ssh-key-check \
--no-node-setup \
If this is an entirely new cluster, you need a different procedure: fsn-node-02.torproject.org
gnt-cluster init \ If this is an entirely new cluster, you need a different procedure:
--master-netdev vlan-gntbe \
--vg-name vg_ganeti \ gnt-cluster init \
--secondary-ip 172.30.135.1 \ --master-netdev vlan-gntbe \
--enabled-hypervisors kvm \ --vg-name vg_ganeti \
--nic-parameters link=br0,vlan=4000 \ --secondary-ip 172.30.135.1 \
--mac-prefix 00:66:37 \ --enabled-hypervisors kvm \
--no-ssh-init \ --nic-parameters link=br0,vlan=4000 \
--no-etc-hosts \ --mac-prefix 00:66:37 \
fsngnt.torproject.org --no-ssh-init \
--no-etc-hosts \
The above assumes that `fsngnt` is already in DNS. fsngnt.torproject.org
The above assumes that `fsngnt` is already in DNS.
### cluster config ### cluster config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment