Bom dia a todos !!!

Tenho duas máquinas (master e slave) configuradas com hot-standby e
replicação, usando PostgreSQL 9.0.2, em FreeBSD 8.2.

A replicação esta sendo feita, pelo menos é o que parece, pois tenho os
processos wal sender e o wal receiver, sendo executados respectivamente nos
servidores master e slave.

Só que o hot-standby não esta liberando o slave para consulta. Qdo tento
logar no slave recebo a mensagem : FATAL:  the database system is starting
up

*Minhas configurações no master :*

*Postgresql.conf*

wal_level = hot_standby
archive_mode = on
archive_command = 'test ! -f /dados/wal/hemo/"%f" && cp "%p"
/dados/wal/hemo/"%f"'

# - Streaming Replication -

max_wal_senders = 2
wal_sender_delay = 200ms
wal_keep_segments = 10

*pg_hba.conf *
*
*
#Streming replication : esta linha serve para conexao com o slave
host    replication     all      10.0.0.1/32           trust

*Minhas configurações no slave :*
*
*
*Postgresql.conf*
wal_level = archive
archive_mode = on
archive_command = 'test ! -f /dados/wal/hemostigma/"%f" && cp "%p"
/dados/wal/hemostigma/"%f"'

# - Standby Servers -

hot_standby = on             *

*
max_standby_archive_delay = 30s
max_standby_streaming_delay = 5s

*recovery.conf*
restore_command = 'cp /dados/wal/hemo/%f %p'

standby_mode = 'true'

primary_conninfo = 'host=10.0.0.2 port=5437 user=postgres
password=xxxxxxxxxxx'

trigger_file = '/tmp/trigger_pg901_5437'


Este é log do slave no start :
LOG:  database system was interrupted; last known up at 2011-06-28 09:12:39
BRT
LOG:  restored log file "00000002.history" from archive
LOG:  entering standby mode
LOG:  restored log file "0000000200000004000000A7" from archive
LOG:  redo starts at 4/A7000020
LOG:  restored log file "0000000200000004000000A8" from archive
LOG:  record with zero length at 4/A885BFE0
LOG:  streaming replication successfully connected to primary


Alguma ideia do motivo pelo qual o slave não entra em mode read-only, vejam
que não tenho a seguinte informação no Log :
LOG:  database system is ready to accept read only connections.

Obrigado
André
*
*
*
*
*
*
*
*
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a