mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
No need to manually create repmgr schema.
This commit is contained in:
@@ -93,7 +93,6 @@ Create the user and database to manage replication::
|
|||||||
su - postgres
|
su - postgres
|
||||||
createuser -s repmgr
|
createuser -s repmgr
|
||||||
createdb -O repmgr repmgr
|
createdb -O repmgr repmgr
|
||||||
psql -f /usr/share/postgresql/9.0/contrib/repmgr_funcs.sql repmgr
|
|
||||||
|
|
||||||
Restart the PostgreSQL server::
|
Restart the PostgreSQL server::
|
||||||
|
|
||||||
@@ -121,7 +120,7 @@ Log in to node2.
|
|||||||
Clone node1 (the current Master)::
|
Clone node1 (the current Master)::
|
||||||
|
|
||||||
su - postgres
|
su - postgres
|
||||||
repmgr -d repmgr -U repmgr -h node1 standby clone
|
repmgr -d repmgr -U repmgr -h node1 standby clone
|
||||||
|
|
||||||
Start the PostgreSQL server::
|
Start the PostgreSQL server::
|
||||||
|
|
||||||
@@ -172,11 +171,13 @@ Register Master and Standby
|
|||||||
|
|
||||||
Log in to node1.
|
Log in to node1.
|
||||||
|
|
||||||
Register the node as Master::
|
Register the node as master::
|
||||||
|
|
||||||
su - postgres
|
su - postgres
|
||||||
repmgr -f /etc/repmgr/repmgr.conf master register
|
repmgr -f /etc/repmgr/repmgr.conf master register
|
||||||
|
|
||||||
|
This will also create the repmgr schema and functions.
|
||||||
|
|
||||||
Log in to node2. Register it as a standby::
|
Log in to node2. Register it as a standby::
|
||||||
|
|
||||||
su - postgres
|
su - postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user