From f2db9f3ea4e9684dd5c78955886481e0cbf108a4 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 29 Nov 2017 11:30:38 +0900 Subject: [PATCH] docs: minor fixes to various examples --- doc/repmgr-witness-unregister.sgml | 2 +- doc/switchover.sgml | 4 ++-- doc/upgrading-repmgr.sgml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/repmgr-witness-unregister.sgml b/doc/repmgr-witness-unregister.sgml index 3c220782..33a37aed 100644 --- a/doc/repmgr-witness-unregister.sgml +++ b/doc/repmgr-witness-unregister.sgml @@ -41,7 +41,7 @@ Unregistering a non-running witness node: - $ repmgr -f /etc/repmgr.conf witness unregister -h localhost -p 5501 -F + $ repmgr -f /etc/repmgr.conf witness unregister -h node1 -p 5501 -F INFO: connecting to witness node "node3" (ID: 3) NOTICE: unable to connect to witness node "node3" (ID: 3), removing node record on cluster primary only INFO: unregistering witness node 3 diff --git a/doc/switchover.sgml b/doc/switchover.sgml index ac719cfc..2073ec2b 100644 --- a/doc/switchover.sgml +++ b/doc/switchover.sgml @@ -101,7 +101,7 @@ $ repmgr standby switchover -f /etc/repmgr.conf --siblings-follow --dry-run NOTICE: checking switchover on node "node2" (ID: 2) in --dry-run mode - INFO: SSH connection to host "localhost" succeeded + INFO: SSH connection to host "node1" succeeded INFO: archive mode is "off" INFO: replication lag on this standby is 0 seconds INFO: all sibling nodes are reachable via SSH @@ -133,7 +133,7 @@ INFO: searching for primary node INFO: checking if node 1 is primary INFO: current primary node is 1 - INFO: SSH connection to host "localhost" succeeded + INFO: SSH connection to host "node1" succeeded INFO: archive mode is "off" INFO: replication lag on this standby is 0 seconds NOTICE: local node "node2" (ID: 2) will be promoted to primary; current primary "node1" (ID: 1) will be demoted to standby diff --git a/doc/upgrading-repmgr.sgml b/doc/upgrading-repmgr.sgml index 4dd5308f..fcfe0e9a 100644 --- a/doc/upgrading-repmgr.sgml +++ b/doc/upgrading-repmgr.sgml @@ -167,7 +167,7 @@ $ ./convert-config.pl /etc/repmgr.conf node_id=2 node_name=node2 - conninfo=host=localhost dbname=repmgr user=repmgr connect_timeout=2 + conninfo=host=node2 dbname=repmgr user=repmgr connect_timeout=2 pg_ctl_options='-l /var/log/postgres/startup.log' rsync_options=--exclude=postgresql.local.conf --archive log_level=INFO