Symptom
PostgreSQL replication cluster
The Commands Executed
The engineer intended to wipe the `db2.cluster.gitlab.com` (secondary) data directory to restart replication. Instead, they ran the following on `db1.cluster.gitlab.com` (primary):
sudo rm -rf /var/opt/gitlab/postgresql/data/
Root Cause
The incident escalated into a catastrophic outage because 5 out of 5 backup mechanisms failed simultaneously.
- LVM Snapshots: Failed because the backup script was broken.
- Regular Backups: Failed due to a version mismatch between PostgreSQL pg_dump (9.2) and the server (9.6).
- Azure Disk Backups: Were enabled for the NFS server, but not the DB server.
- S3 Backups: Failed because the bucket was empty (the cron job was silently failing).
- Replication: The deletion instantly replicated to the remaining nodes.
Discussions 0