2016-06-09 52 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 

尝试再次检查。