Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVVMl-0000hY-9b for pgsql-general@arkaria.postgresql.org; Thu, 22 Oct 2020 07:50:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kVVMk-0007z6-0N for pgsql-general@arkaria.postgresql.org; Thu, 22 Oct 2020 07:50:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVPf8-0002qw-7o for pgsql-general@lists.postgresql.org; Thu, 22 Oct 2020 01:45:06 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kVPf4-0004C0-7b for pgsql-general@postgresql.org; Thu, 22 Oct 2020 01:45:05 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id A1BAC22108CE4 for ; Wed, 21 Oct 2020 18:44:59 -0700 (MST) Date: Wed, 21 Oct 2020 18:44:59 -0700 (MST) From: alanhi To: pgsql-general@postgresql.org Message-ID: <1603331099660-0.post@n3.nabble.com> Subject: Setup Pgpool2 with Postgresql Streaming Replication MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, I'm following the steps from: https://access.crunchydata.com/documentation/pgpool/4.0.0/example-cluster.html I'm at step 7.3.8.1 Set up PostgreSQL standby server: Ran this command on the primary server: pcp_recovery_node -h 192.168.80.90 -p 9898 -U postgres -n 1 And received this error: ERROR: recovery is checking if postmaster is started DETAIL: postmaster on hostname:"ltpgsql12" database:"template1" user:"postgres" failed to start in 90 second How can I get this command to run successfully? Also, when I ran this command: psql -p 5433 -c "show pool_nodes" It shows the following pgpool2 node status, but when I did a listing of databases on the primary and standby servers, I don't see the databases on the primary replicated to the standby. How can I setup the Postgresql Streaming Replication and check if it's working? node_id | hostname | port | status | lb_weight | role | select_cnt | load_balance_node | replication_delay | replication_state | replication_sync_state | last_status_change ---------+-----------+------+--------+-----------+---------+------------+-------------------+-------------------+-------------------+------------------------+--------------------- 0 | ltpgsql11 | 6432 | up | 0.500000 | primary | 0 | true | 0 | | | 2020-10-21 11:56:48 1 | ltpgsql12 | 6432 | down | 0.500000 | standby | 0 | false | 0 | | | 2020-10-21 11:56:48 (2 rows) Thanks, Alan -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html