Use these steps to uninstall your HA cluster setup.
Before you begin
Stop all the services before you uninstall.
Procedure
-
Uninstall PostgreSQL.
- Find the postgresql12 packages with the following command:
rpm -qa | grep -i postgresql12
You can see three packages:
- postgresql11-server-11.5-1PGDG.rhel7.x86_64.rpm
- postgresql11-libs-11.5-1PGDG.rhel7.x86_64.rpm
- postgresql11-11.5-1PGDG.rhel7.x86_64.rpm
- Uninstall each package with the following command:
- Uninstall
Patroni.
Use the pip to uninstall the Python packages related to
Patroni.
pip uninstall setuptools
pip uninstall psycopg2-binary
pip uninstall patroni
pip uninstall python-etcd
- Uninstall
etcd.
Remove the etcd binary files with the following commands:
rm -rf etcd etcdctl
rm -rf /var/lib/etcd
rm -rf /etc/etcd
- Uninstall
HAProxy.
- Find the
HAProxy 1.5.18 package with the following command:
rpm -qa | grep -i haproxy-1.5.18
You can see the haproxy-1.5.18-9.el7.x86_64.rpm file.
- Uninstall each package with the following command:
rpm -e haproxy-1.5.18-9.el7.x86_64