From 34aa54b7664c8901cb47bb321439fc33374f4357 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 8 Oct 2019 10:03:44 +0900 Subject: [PATCH] doc: clarify use of --recovery-conf-only --- doc/repmgr-standby-clone.xml | 12 ++++++++++++ doc/repmgr-standby-register.xml | 23 ++++++++++++++++++----- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/doc/repmgr-standby-clone.xml b/doc/repmgr-standby-clone.xml index dcdfe163..98a2091e 100644 --- a/doc/repmgr-standby-clone.xml +++ b/doc/repmgr-standby-clone.xml @@ -202,6 +202,18 @@ ensure the repmgr.conf file is created for the node, and that it has been registered using repmgr standby register. + + + + To register a standby which is not running, execute + repmgr standby register --force + and provide the connection details for the primary. + + + See for more details. + + + Then execute the command repmgr standby clone --recovery-conf-only. This will create the recovery.conf file needed to attach the node to its upstream, and will also create a replication slot on the diff --git a/doc/repmgr-standby-register.xml b/doc/repmgr-standby-register.xml index 10bb025c..a6df8eff 100644 --- a/doc/repmgr-standby-register.xml +++ b/doc/repmgr-standby-register.xml @@ -75,10 +75,22 @@ Under some circumstances you may wish to register a standby which is not yet running; this can be the case when using provisioning tools to create - a complex replication cluster. In this case, by using the - option and providing the connection parameters to the primary server, - the standby can be registered. + a complex replication cluster, or if the node was not cloned by &repmgr;. + + In this case, by using the + option and providing the connection parameters to the primary server, + the standby can be registered even if it has not yet been started. + + + + Connection parameters can either be provided either as a conninfo string + (e.g. or as individual connection parameters + (, , + , etc.). + + + Similarly, with cascading replication it may be necessary to register a standby whose upstream node has not yet been registered - in this case, @@ -96,9 +108,10 @@ Registering a node not cloned by repmgr If you've cloned a standby using another method (e.g. barman's - barman recover command), first execute + barman recover command), register the node as detailed in section + then execute repmgr standby clone --recovery-conf-only - to add the recovery.conf file, then register the standby as usual. + to generate the appropriate replication configuration.