## DU3 [Nomad Region & Cluster issue](https://hackmd.io/@pinesoftware/BJCIjxLPi) [TOC] 1. Stop & reconfigure nodes ![](https://i.imgur.com/jWDt39d.png) --- 2. Force leave nodes ```bash= nomad server force-leave nomad-du3-vm-01.UAE nomad server force-leave nomad-du3-vm-02.UAE nomad server force-leave nomad-du3-vm-03.UAE ``` ![](https://i.imgur.com/Yyk4LBU.png) --- 3. Start nodes in DU3 with `region = "DU3"` > DU3 started but can't get a `leader` > https://hackmd.io/@PI671aDNRI6LMNOwW21fxg/rkeYZYUwi --- ### Fix DU3 cluster 1. Stop Nomad all servers ```bash= systemctl stop nomad.service ``` 2. Remove old nodes from the cluster ```bash= nomad server force-leave nomad-du3-VM-01.DU3 nomad server force-leave nomad-du3-VM-02.DU3 nomad server force-leave nomad-du3-VM-03.DU3 ``` ![](https://i.imgur.com/D1QFmu3.png) 3. Delete `/opt/nomad` ```bash= rm -rf /opt/nomad ``` 3. Create `/opt/nomad` and grant rights to `nomad` user ```bash= mkdir -p /opt/nomad chown -R nomad:nomad /opt/nomad ``` 4. Start nomad servers ```bash= systemctl start nomad.service ``` 5. Repeat on all cluster servers 6. Add region to global region 7. Result: ![](https://i.imgur.com/GNWxxFf.png) 8. Change region in `global_region` 9. Change region in `versions.tf` ![](https://i.imgur.com/m6aT6jq.png)