From 85ff3ec28614469de4ac0de5f9ee733092c353e6 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Thu, 30 Aug 2012 02:10:10 -0500 Subject: [PATCH] Fix documentation to always use -h sintax to refer to the node we want to clone or connect to, instead of relying on the fact that for some time putting that argument at last worked. --- autofailover_quick_setup.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autofailover_quick_setup.rst b/autofailover_quick_setup.rst index d5b763ce..a7987ec1 100644 --- a/autofailover_quick_setup.rst +++ b/autofailover_quick_setup.rst @@ -112,7 +112,7 @@ Log in node2. Clone the node1 (the current Master):: su - postgres - repmgr -d repmgr -U repmgr standby clone node1 + repmgr -d repmgr -U repmgr -h node1 standby clone Start the PostgreSQL server:: @@ -173,7 +173,7 @@ Log in witness. Initialize the witness server:: su - postgres - repmgr -d repmgr -U repmgr -h 192.168.1.10 -D $WITNESS_PGDATA -f /etc/repmgr/repmgr.conf witness create node1 + repmgr -d repmgr -U repmgr -h 192.168.1.10 -D $WITNESS_PGDATA -f /etc/repmgr/repmgr.conf witness create It needs information to connect to the master to copy the configuration of the cluster, also it needs to know where it should initialize it's own $PGDATA. As part of the procees it also ask for the superuser password so it can connect when needed.