Funcionou. Muito obrigado à todos.
Excluí o diretório pg_xlog e recriei com os arquivos dos master.
Vlw.
Em 11 de janeiro de 2012 22:44, Emerson Martins
emersonmarti...@gmail.comescreveu:
Arquivos pré -configurados
### postgresql.conf - Master
Ao tentar subir a replicação o seguinte log é gerado:
LOG: database system was interrupted while in recovery at log time
2012-01-11 16:48:31 BRST
HINT: If this has occurred more than once some data might be corrupted and
you might need to choose an earlier recovery target.
LOG: entering
2012/1/11 Dauro Sobrinho dauroadpostg...@gmail.com:
Ao tentar subir a replicação o seguinte log é gerado:
LOG: database system was interrupted while in recovery at log time
2012-01-11 16:48:31 BRST
HINT: If this has occurred more than once some data might be corrupted and
you might need to
Postgresql - Principal
listen_addresses = '*'
wal_level = hot_standby
max_wal_senders = 1
wal_keep_segments = 40
Postgresql - Secundário
hot_standby=on
Recovery - Secundário
standby_mode = on
primary_conninfo = 'host=ip_number port=port_number user=user password=pass'
trigger_file =
Postgresql - Principal
listen_addresses = '*'
wal_level = hot_standby
max_wal_senders = 1
wal_keep_segments = 40
Postgresql - Secundário
hot_standby=on
Recovery - Secundário
standby_mode = on
primary_conninfo = 'host=ip_number port=port_number user=user password=pass'
rsync -av --exclude postmaster.pid --exclude postgresql.conf --exclude
pg_hba.conf --exclude backup_label --exclude pg_xlog/*
--exclude pg_log/* /bd/primario/ postgres@10.1.1.2:/bd/secundario
Em 11 de janeiro de 2012 17:21, Flavio Henrique Araque Gurgel
fha...@gmail.com escreveu:
Postgresql
Este rsync ficou entre um pg_start_backup e pg_stop_backup ?
O archive_mode esta on no master ?
Em 11 de janeiro de 2012 18:25, Dauro Sobrinho
dauroadpostg...@gmail.com escreveu:
rsync -av --exclude postmaster.pid --exclude postgresql.conf --exclude
pg_hba.conf --exclude backup_label
Um dia desses meu slave deu pau..Recriei assim..Seguintes passos.
*Servidor master*
Su - postgres
1 - Inicializa o Backup
/usr/local/pgsql/bin/psql -c SELECT pg_start_backup('replication');
2 - Envia através do rsync a copia das bases e arquivos do master
rsync -av --exclude pg_xlog
Arquivos pré -configurados
### postgresql.conf - Master
#
listen_addresses = '*'
port = 5432
max_connections = 400
wal_level = hot_standby
fsync = on
checkpoint_segments = 10
checkpoint_timeout = 5min
checkpoint_warning = 30s