2017-03-04 1 views
1

Barman을 백업하도록 구성하려고합니다. 나는 barman check replica을 할 때 나는 점점 계속 : 나는 PostgreSQL을 9.6 바텐더 2.1을 사용하고WAL 보관 : FAILED (WAL 배송이 설정되어 있는지 확인하십시오)

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 

을; 누군가가 도울 수있는 문제가 무엇인지 확신 할 수 없습니까?

description = "Database backup" 
conninfo = host=<db-ip> user=postgres dbname=db 
backup_method = rsync 
ssh_command = ssh [email protected]<db-ip> 
archiver = on 

답변

5

barman check 시도가 보관 실제로 아카이브에 뭔가가 있다는 주장에 의해 올바르게 설정 확인 : 은 여기 내 바텐더 서버 구성입니다. 그러나 WAL 세그먼트는 일반적으로 채워지는 동안에 만 보관되며 서버가 유휴 상태이면 절대 수행되지 않습니다.

는이 문제를 해결하려면 는, 바텐더, 세그먼트 스위치를 강제로 완성 된 WAL 대기 표시하고, 즉시 그것을 보관하는 명령을 제공합니다

barman switch-xlog --force --archive replica 
관련 문제