File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -386,11 +386,15 @@ Do not forget to validate your backups (for example [pgbackrest auto](https://gi
386
386
387
387
## How to start from scratch
388
388
Should you need to start from very beginning, use the following to clean up:
389
- ``` shell
390
- sudo systemctl stop patroni
391
- sudo rm -rf /var/lib/postgresql/ # be careful with this if there are other PG clusters
392
- etcdctl rm --dir --recursive /service/postgres-cluster # adjust if you changed the cluster's name
393
- ```
389
+ - on all nodes, stop Patroni and remove PGDATA:
390
+ ``` shell
391
+ sudo systemctl stop patroni
392
+ sudo rm -rf /var/lib/postgresql/ # be careful with this if there are other PG clusters
393
+ ```
394
+ - then delete etcd entry (can be run on any node):
395
+ ` ` ` shell
396
+ etcdctl rm --dir --recursive /service/postgres-cluster # adjust if you changed the cluster's name
397
+ ` ` `
394
398
395
399
---
396
400
You can’t perform that action at this time.
0 commit comments