WAL 存档:失败(请确保 WAL 运输已设置)
WAL archive: FAILED (please make sure WAL shipping is setup)
我正在尝试将 Barman 配置为备份。当我执行 barman check replica
时,我不断得到:
Server replica:
WAL archive: FAILED (please make sure WAL shipping is setup)
PostgreSQL: OK
superuser: OK
wal_level: OK
directories: OK
retention policy settings: OK
backup maximum age: FAILED (interval provided: 1 day, latest backup age: No available backups)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: FAILED (have 0 backups, expected at least 2)
ssh: OK (PostgreSQL server)
not in recovery: FAILED (cannot perform exclusive backup on a standby)
archive_mode: OK
archive_command: OK
continuous archiving: OK
archiver errors: OK
我正在使用 Postgresql 9.6 和 barman 2.1;我不确定有人可以提供帮助吗?
这是我的 Barman 服务器配置:
description = "Database backup"
conninfo = host=<db-ip> user=postgres dbname=db
backup_method = rsync
ssh_command = ssh postgres@<db-ip>
archiver = on
barman check
试图通过断言存档中确实存在某些内容来确认存档设置是否正确。但是,WAL 段通常只有在填满后才会归档,如果您的服务器空闲,则永远不会发生这种情况。
为了解决这个问题,Barman 提供了一个强制段切换的命令,等待完成的 WAL 出现,然后立即将其归档:
barman switch-xlog --force --archive replica
简述
酒保的 incoming_wals_directory
和 Postgresql.conf 的 archive_command
与详细描述的不匹配 here
详情
另一个原因是不匹配在
之间
- 酒保
incoming_wals_directory
- Postgresql.conf的
archive_command
Bash 用于检查的实用程序
barman@backup $ barman show-server pg | grep incoming_wals_directory
# output1
# > incoming_wals_directory: /var/lib/barman/pg/incoming
postgres@pg $ cat /etc/postgresql/10/main/postgresql.conf | grep archive_command
# output2
# > archive_command = 'rsync -a %p barman@staging:/var/lib/barman/pg/incoming/%f'
我们必须在 :output1 和 :output2 中有相同的路径
如果它们不匹配,请让它们匹配,然后不要忘记重新启动 postgres。
我正在尝试将 Barman 配置为备份。当我执行 barman check replica
时,我不断得到:
Server replica:
WAL archive: FAILED (please make sure WAL shipping is setup)
PostgreSQL: OK
superuser: OK
wal_level: OK
directories: OK
retention policy settings: OK
backup maximum age: FAILED (interval provided: 1 day, latest backup age: No available backups)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: FAILED (have 0 backups, expected at least 2)
ssh: OK (PostgreSQL server)
not in recovery: FAILED (cannot perform exclusive backup on a standby)
archive_mode: OK
archive_command: OK
continuous archiving: OK
archiver errors: OK
我正在使用 Postgresql 9.6 和 barman 2.1;我不确定有人可以提供帮助吗? 这是我的 Barman 服务器配置:
description = "Database backup"
conninfo = host=<db-ip> user=postgres dbname=db
backup_method = rsync
ssh_command = ssh postgres@<db-ip>
archiver = on
barman check
试图通过断言存档中确实存在某些内容来确认存档设置是否正确。但是,WAL 段通常只有在填满后才会归档,如果您的服务器空闲,则永远不会发生这种情况。
为了解决这个问题,Barman 提供了一个强制段切换的命令,等待完成的 WAL 出现,然后立即将其归档:
barman switch-xlog --force --archive replica
简述
酒保的 incoming_wals_directory
和 Postgresql.conf 的 archive_command
与详细描述的不匹配 here
详情
另一个原因是不匹配在
之间- 酒保
incoming_wals_directory
- Postgresql.conf的
archive_command
Bash 用于检查的实用程序
barman@backup $ barman show-server pg | grep incoming_wals_directory
# output1
# > incoming_wals_directory: /var/lib/barman/pg/incoming
postgres@pg $ cat /etc/postgresql/10/main/postgresql.conf | grep archive_command
# output2
# > archive_command = 'rsync -a %p barman@staging:/var/lib/barman/pg/incoming/%f'
我们必须在 :output1 和 :output2 中有相同的路径
如果它们不匹配,请让它们匹配,然后不要忘记重新启动 postgres。