From 028e3ab48df75c13a2f708b4e2a782b9402339a0 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 15 Sep 2020 13:42:18 +0900 Subject: [PATCH] doc: rearrange "repmgr node rejoin" reference for clarity The section looked like an actual subsection, so convert that and the following example section into sections. --- doc/repmgr-node-rejoin.xml | 58 +++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/doc/repmgr-node-rejoin.xml b/doc/repmgr-node-rejoin.xml index 8195f9c2..71bde8ac 100644 --- a/doc/repmgr-node-rejoin.xml +++ b/doc/repmgr-node-rejoin.xml @@ -288,7 +288,15 @@ to execute pg_rewind to ensure the node can be rejoined successfully. - + + + <command>pg_rewind</command> and configuration file retention + + + pg_rewind + configuration file retention + + Be aware that if pg_rewind is executed and actually performs a rewind operation, any configuration files in the PostgreSQL data directory will be @@ -296,17 +304,27 @@ To prevent this happening, provide a comma-separated list of files to retain - using the --config-file command line option; the specified files + using the command line option; the specified files will be archived in a temporary directory (whose parent directory can be specified with - --config-archive-dir) and restored once the rewind operation is - complete. + , default: /tmp) + and restored once the rewind operation is complete. - + - - Example, first using --dry-run, then actually executing the - node rejoin command. - + + + Example using <command>repmgr node rejoin</command> and <command>pg_rewind</command> + + + pg_rewind + configuration file retention + + + + + Example, first using , then actually executing the + node rejoin command. + $ repmgr node rejoin -f /etc/repmgr.conf -d 'host=node3 dbname=repmgr user=repmgr' \ --config-files=postgresql.local.conf,postgresql.conf --verbose --force-rewind --dry-run INFO: replication connection to the rejoin target node was successful @@ -322,17 +340,17 @@ pg_rewind -D '/var/lib/postgresql/data' --source-server='host=node3 dbname=repmgr user=repmgr' INFO: prerequisites for executing NODE REJOIN are met - - - If is used with the option, - this checks the prerequisites for using pg_rewind, but is - not an absolute guarantee that actually executing pg_rewind - will succeed. See also section below. - + + + If is used with the option, + this checks the prerequisites for using pg_rewind, but is + not an absolute guarantee that actually executing pg_rewind + will succeed. See also section below. + - + - + $ repmgr node rejoin -f /etc/repmgr.conf -d 'host=node3 dbname=repmgr user=repmgr' \ --config-files=postgresql.local.conf,postgresql.conf --verbose --force-rewind NOTICE: pg_rewind execution required for this node to attach to rejoin target node 3 @@ -344,8 +362,8 @@ NOTICE: starting server using "pg_ctl -l /var/log/postgres/startup.log -w -D '/var/lib/pgsql/data' start" NOTICE: NODE REJOIN successful DETAIL: node 2 is now attached to node 3 - - + +