Skip to content

Commit d76b694

Browse files
authored
Update README.md
1 parent 598f638 commit d76b694

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,15 @@ Do not forget to validate your backups (for example [pgbackrest auto](https://gi
386386

387387
## How to start from scratch
388388
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+
```
394398

395399
---
396400

0 commit comments

Comments
 (0)