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.
-
+
+
+ pg_rewind 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 repmgr node rejoin and pg_rewind
+
+
+ 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
-
-
+
+