diff --git a/doc/configuration-file.xml b/doc/configuration-file.xml index 0ecbcc55..db3486d0 100644 --- a/doc/configuration-file.xml +++ b/doc/configuration-file.xml @@ -210,30 +210,61 @@ conninfo='host=node1 user=repmgr dbname=repmgr connect_timeout=2'/path/to/repmgr.conf). + - - - When upgrading the PostgreSQL cluster to a new major version, updating the &repmgr; configuration file - may be needed. In particular, if default package locations for and - are used, both these options in repmgr.conf - will need to be updated accordingly. - - + + Configuration file and PostgreSQL major version upgrades + + + repmgr.conf + ostgreSQL major version upgrades + + + + When upgrading the PostgreSQL cluster to a new major version, repmgr.conf + will probably needed to be updated. + + + Usually and will need to be modified, + particularly if the default package locations are used, as these usually change. + - - If the location of the configuration file changed after a PostgreSQL major upgrade, the - field from the repmgr.nodes table will - need to reflect this change. This can be accomplished by forcing all nodes to register - again with the new configuration file. This will effectively update the - field in repmgr.nodes. To accomplished this, just - execute - repmgr primary register --force -f /path/to/repmgr.conf - on the primary node, and then - repmgr standby register --force -f /path/to/repmgr.conf - on all the standby nodes (don't forget the witness, if there is one). + It's also possible the location of repmgr.conf itself will change + (e.g. from /etc/repmgr/11/repmgr.conf to /etc/repmgr/12/repmgr.conf). + This is stored as part of the &repmgr; metadata and is used by &repmgr; to execute &repmgr; remotely + (e.g. during a switchover operation). + + + If the content and/or location of repmgr.conf has changed, the &repmgr; metadata + needs to be updated to reflect this. The &repmgr; metadata can be updated on each node with: + + + + + repmgr primary register --force -f /path/to/repmgr.conf + + + + + + + + repmgr standby register --force -f /path/to/repmgr.conf + + + + + + + + + repmgr witness register --force -f /path/to/repmgr.conf -h primary_host + + + + -