From: | zhong ming wu <mr(dot)z(dot)m(dot)wu(at)gmail(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | hot standby waiting for invalid wal file |
Date: | 2011-08-26 12:31:44 |
Message-ID: | CAMUiGabNtfO1aFLOrOe+=cr1s5i=Q1wToiaKqd2xB=bjZd1-iw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Dear List
Since 9.0 comes out, I had been successfully using wal file shipping
readonly hotstandby feature in pg. I am currently trying to
reestablish a readonly slave after master node failure.
The newly established master server is working properly. I have
verified that WAL file shipping is properly working.
Next I do
psql -c "select pg_start_backup('label')"
then I rsync $PGDATA to slave
Exact command is (nice rsync -avz --delete -F --exclude
postgresql.conf --exclude archive_status --exclude
backup_label --exclude postmaster.pid -e ssh data/
pgslave:./data/)
followed by
psql -c "select pg_stop_backup()"
Got "NOTICE: pg_stop_backup complete, all required WAL segments have
been archived"
I then make sure that standby $PGDATA contains relevant
postgresql.conf and recovery.conf
Then start pg on slave.
But slave server never finishes recovery because it is waiting for old
WAL file 000000010000012C00000097 By old I mean the file name seems
to be earlier than what is newly generated WAL files
I have repeated above procedure a few times. Everytime slave keeps
wating for the same 000000010000012C00000097
Can someone give any suggestions on how to solve this?
Sincerely
Wu
From | Date | Subject | |
---|---|---|---|
Next Message | Brett Maton | 2011-08-26 12:33:14 | Postgresql 9.0.4 SRPMS |
Previous Message | Marcin Mańk | 2011-08-26 12:24:22 | Re: access to lexems or access to parsed elements |