Extend disk /dev/sdb on `patroni-*-db-gprd` to 5T
C2
Production Change - Criticality 2Change Objective | Describe the objective of the change |
---|---|
Change Type | Extend disk /dev/sdb on patroni-*-db-gprd to 5T |
Services Impacted | ~"Service:Postgres" |
Change Team Members | SRE - Ongres |
Change Severity | C2 |
Buddy check | A colleague will review the change |
Tested in staging | - |
Schedule of the change | 2019-08-05 2200 UTC |
Duration of the change | Time to execute the change ( including a possible rollback ) |
Detailed steps for the change. Each step must include: | - pre-conditions for execution of the step, - execution commands for the step, - post-execution validation for the step , - rollback of the step |
-
Extend disks in GCP manually, SECONDARIES ONLY -
Run resize2fs /dev/sdb
on eachpatroni-*-db-gprd
SECONDARY!- For verifying that you are placed in a replica, you can execute:
curl -s http://127.0.0.1:8009/ | jq .role
- For verifying that you are placed in a replica, you can execute:
-
Switch primary to one of the extended secondaries -
Extend disks in GCP manually of the former primary -
Run resize2fs /dev/sdb
on the former primary. -
Sync Terraform with GCP -
-
Apply resize to terraform
-
-
-
tf plan -target module.patroni -out db_resize.plan
-
-
-
post plan in issue
-
-
-
Review plan
-
-
-
tf apply db_resize.plan
-
Edited by Jose Finotto