Re: [HELP] Issue with standby server using WAL archive

Поиск
Список
Период
Сортировка
От Praveen Kumar K S
Тема Re: [HELP] Issue with standby server using WAL archive
Дата
Msg-id CANSiNp5qBbY+gn2xqsZJ6aTeNqeMRgpLxf63N5G3CZUecTFcbA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HELP] Issue with standby server using WAL archive  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: [HELP] Issue with standby server using WAL archive  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-admin
Hello,

Thanks for your response.

But if you look at the output below, 00000001000000000000000D is already 16MB and new WAL are created. As per my understanding, 00000001000000000000000D should have been archived. Am I wrong here ?

postgres@pg1:~/9.6/main/pg_xlog$ ls -lrth
total 65M
-rw------- 1 postgres postgres  16M Jul  2 13:09 00000001000000000000000E
-rw------- 1 postgres postgres  16M Jul  2 13:13 00000001000000000000000F
-rw------- 1 postgres postgres  16M Jul  2 13:13 000000010000000000000010
-rw------- 1 postgres postgres  302 Jul  2 13:13 00000001000000000000000C.00000028.backup
drwx------ 2 postgres postgres 4.0K Jul  2 13:23 archive_status
-rw------- 1 postgres postgres  16M Jul  2 15:38 00000001000000000000000D

On Thu, Jul 2, 2020 at 9:26 PM Jeff Janes <jeff.janes@gmail.com> wrote:
On Thu, Jul 2, 2020 at 11:44 AM Praveen Kumar K S <praveenssit@gmail.com> wrote:
Hello,

Thanks for your response. I agree with all your suggestions.

At this moment, I'm concerned about the WAL archiving.

I'm seeing below error on pg3 (DR server) in log. Is this expected ?
cp: cannot stat '/mnt/server/archivedir/00000001000000000000000D': No such file or directory

Yes, this is expected.  That file has not been archived yet because the master is not done writing data to it yet.  pg3 will keep retrying the command until the file shows up.
 
Cheers, 

Jeff


--
Regards,

K S Praveen Kumar
M: +91-9986855625

В списке pgsql-admin по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: [HELP] Issue with standby server using WAL archive
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: [HELP] Issue with standby server using WAL archive