Postgres 9.4 BDR - Replicazione non funziona

From: Francesco Andrisani <francesco(dot)andrisani(at)acotel(dot)com>
To: pgsql-it-generale(at)postgresql(dot)org
Subject: Postgres 9.4 BDR - Replicazione non funziona
Date: 2017-12-07 15:35:04
Message-ID: CALceD1tG3Rf_SCyKL-pJoaBzewGPbM8T0JLiskW+UbjQvNh0cw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-it-generale

Buongiorno,
sto provando a creare un Cluster Master Master usando Postgres-9.4 BDR su
due nodi.
Sul primo nodo il DB già esiste ed è bello grosso (più di 3Gb).
Nell'aggiungere il secondo nodo (ho popolato il DB con un dump fatto dal
primo nodo), dopo aver configurato tutto (primo e secondo nodo) seguendo la
guida ufficiale (http://bdr-project.org/docs/stable/quickstart.html)
nell'eseguire l'ultimo step (
http://bdr-project.org/docs/stable/quickstart-enabling.html) sul nodo 2,
resto bloccato su "SELECT bdr.bdr_node_join_wait_for_ready();" ed il nodo2
stampa a log questo:

< 2017-12-07 09:33:15.781 EST >LOG: starting background worker process
"bdr db: zabbix"
< 2017-12-07 09:33:15.793 EST >ERROR: previous init failed, manual cleanup
is required
< 2017-12-07 09:33:15.793 EST >DETAIL: Found bdr.bdr_nodes entry for bdr
(6496055908800323183,1,16386,) with state=i in remote bdr.bdr_nodes
< 2017-12-07 09:33:15.793 EST >HINT: Remove all replication identifiers
and slots corresponding to this node from the init target node then drop
and recreate this database and try again
< 2017-12-07 09:33:15.795 EST >LOG: worker process: bdr db: zabbix (PID
26818) exited with exit code 1

Non riesco a venirne a capo.
Sul primo nodo se eseguo :
zabbix=# select * from bdr.bdr_nodes;
node_sysid | node_timeline | node_dboid | node_status | node_name
| node_local_dsn
| node_init_from_dsn | node_read_only | node_seq_id
---------------------+---------------+------------+-------------+-----------+-------------------------------------------------------------------------------+--------------------+----------------+-------------
6494544977234587558 | 1 | 16386 | r | zabbix01
| user=postgres password=xxxxxxxx host=10.200.x.xx port=5432 dbname=zabbix
| | f |
(1 row)"

Vedo solo il primo nodo ma non il secondo.
Come devo proseguire?
Grazie a tutti
--
____________________________________________________
*Francesco Andrisani*
mailto:francesco(dot)andrisani(at)acotel(dot)com
*Acotel Spa*
http://www.acotel.com
Via della Valle dei Fontanili, 29
00168 Roma
Tel +390661141200
Fax +39066149936
____________________________________________________

Le informazioni contenute nella comunicazione che precede possono essere
riservate e sono, comunque, destinate esclusivamente alla persona o
all’ente sopraindicati. La diffusione, distribuzione e/o copiatura non
autorizzata del documento trasmesso da parte di qualsiasi soggetto è
proibita. La sicurezza e la correttezza dei messaggi di posta elettronica
non possono essere garantite. Se avete ricevuto questo messaggio per
errore, Vi preghiamo di contattarci immediatamente. Grazie.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any transmission. If you
receive this message in error, please immediately delete it and all copies
of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. Thanks

Responses

Browse pgsql-it-generale by date

  From Date Subject
Next Message Giuseppe Broccolo 2017-12-07 16:12:26 Re: Postgres 9.4 BDR - Replicazione non funziona
Previous Message Gabriele Bartolini 2016-09-29 13:03:48 Esce PostgreSQL 9.6!