0% found this document useful (0 votes)
12 views10 pages

Repmgr Installation

Uploaded by

kapil Jadhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views10 pages

Repmgr Installation

Uploaded by

kapil Jadhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Install repmgr package on both nodes

Node 1 rpm installation

Node 2 rpm installation

Create .pgpass file on both nodes.

Modify pg_hba.conf file on both nodes with replication parameters.


Create .bash_profile on both nodes
Create .bash_profile on node 2

Modify repmgr.conf file on both nodes

Add following parameter in postgres.conf file

shared_preload_libraries = 'repmgr'
Create extension on source node kk1

Run ssh-keygen on both nodes


Copy the key to remote node.

Do ssh-copy-id on both nodes 1 by 1

Copy the node details to /etc/hosts file


Check passwordless setup between 2 nodes

Now register repmgr service on standby

Modify pg_hba.conf file on both nodes


Now register standby node.

Configure primary database first

Now register command on standby

Now register with –force option

Now check cluster status on node 1

Run following command to remove error from cluster show command


Now check the cluster show command on node1

Check cluster crosscheck on both nodes.

Run the following command for switchover


Perform switchover on standby

Now run same command on primary to switchback

You might also like