2016-06-09 55 views
1

我試圖建立的Postgres與pgbarman。當檢查酒保檢查我正在geetting WAL歸檔:失敗(請確保WAL航運設置)PostgreSQL的PG巴曼備份設置

可能有人請幫我一下吧

+0

看一看PostgreSQL的日誌文件,以檢查您的'archive_command'錯誤。根據文檔中的說明,很可能您沒有正確配置ssh。 –

+0

我已經正確配置了postgres和barman。這對postgres master來說工作正常。當我嘗試從postgres獲取備份時,我收到以下錯誤。 – devops

+0

2016-06-10 06:20:03,592 [5693] barman.server錯誤:檢查'WAL檔案'服務器失敗'smapgrep02.example.com' 2016-06-10 06:20:03,783 [5693]酒保。服務器錯誤:檢查'服務器'備份最大時限'失敗'smapgrep02.example.com' 2016-06-10 06:20:03,928 [5693] barman.server錯誤:檢查服務器'smapgrep02'中'沒有恢復'失敗。 example.com」 – devops

回答

0

我有同樣的問題。我解決了改變存檔的postgresql.conf

前:

archive_mode = on 
wal_level = 'replica' 
archive_command = 'rsync -a %p [email protected]:INCOMING_WALS_DIRECTORY/%f' 

後:

archive_mode = on 
wal_level = 'replica' 
archive_command = 'rsync -a %p [email protected]:/data/barman/pgsql-master/incoming/%f' 

**重新啓動應用更改Postgres的。

我發現目錄中使用此命令(INCOMING_WALS_DIRECTORY):

$ barman show-server pgsql-master 

下一步,我使用:

barman switch-xlog --force --archive pgsql-master 

嘗試再次檢查。