I have set up our database cluster like Scenario 2b from the 2.0 docs:
To do this, I set up to servers in the barman config, a ssh-server and a stream-server. I believe that everything is set up correctly, but I am not seeing any the WAL update as I would expect. Checking the logs, I see these two lines repeated:
2016-10-25 19:37:01,764 [5597] barman.wal_archiver INFO: No xlog segments found from file archival for ssh-server.
2016-10-25 19:37:01,774 [5598] barman.wal_archiver INFO: No xlog segments found from streaming for stream-server.
2016-10-25 17:55:29,256 [2424] barman.wal_archiver INFO: Synchronous WAL streaming for barman_receive_wal: False
>> barman check stream-server
Server stream-server:
PostgreSQL: OK
superuser: OK
PostgreSQL streaming: OK
wal_level: OK
replication slot: OK
directories: OK
retention policy settings: OK
backup maximum age: OK (no last_backup_maximum_age provided)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: OK (have 2 backups, expected at least 0)
pg_basebackup: OK
pg_basebackup compatible: OK
pg_basebackup supports tablespaces mapping: OK
pg_receivexlog: OK
pg_receivexlog compatible: OK
receive-wal running: OK
archiver errors: OK
>> barman check ssh-api
Server ssh-api:
PostgreSQL: OK
superuser: OK
wal_level: OK
directories: OK
retention policy settings: OK
backup maximum age: OK (interval provided: 1 day, latest backup age: 22 hours, 50 minutes)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: OK (have 1 backups, expected at least 0)
ssh: OK (PostgreSQL server)
not in recovery: OK
archive_mode: OK
archive_command: OK
continuous archiving: OK
archiver errors: OK
>> ls -la /var/lib/barman/ssh-server/wals/0000000100000001/
total 2356
drwxr-xr-x 2 barman barman 4096 Oct 25 18:51 .
drwxr-xr-x 3 barman barman 4096 Oct 24 20:47 ..
-rw------- 1 barman barman 27768 Oct 24 20:47 00000001000000010000005E
-rw------- 1 barman barman 27163 Oct 24 20:47 00000001000000010000005F
-rw------- 1 barman barman 205 Oct 24 20:47 00000001000000010000005F.00000028.backup
-rw------- 1 barman barman 2174167 Oct 25 18:22 000000010000000100000060
-rw------- 1 barman barman 27167 Oct 25 18:22 000000010000000100000061
-rw------- 1 barman barman 191 Oct 25 18:22 000000010000000100000061.00000028.backup
-rw------- 1 barman barman 101909 Oct 25 18:50 000000010000000100000062
-rw------- 1 barman barman 27168 Oct 25 18:50 000000010000000100000063
-rw------- 1 barman barman 189 Oct 25 18:50 000000010000000100000063.00000028.backup
>> ls -la /var/lib/barman/stream-server/wals/0000000100000001/
total 2288
drwxr-xr-x 2 barman barman 4096 Oct 25 18:52 .
drwxr-xr-x 3 barman barman 4096 Oct 25 18:22 ..
-rw------- 1 barman barman 2174167 Oct 25 18:22 000000010000000100000060
-rw------- 1 barman barman 27167 Oct 25 18:22 000000010000000100000061
-rw------- 1 barman barman 101909 Oct 25 18:50 000000010000000100000062
-rw------- 1 barman barman 27168 Oct 25 18:50 000000010000000100000063
--
--
You received this message because you are subscribed to the "Barman for PostgreSQL" group.
To post to this group, send email to pgba...@googlegroups.com
To unsubscribe from this group, send email to
pgbarman+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB
---
You received this message because you are subscribed to the Google Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgbarman+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[stream-api]
conninfo = host=pg user=barman dbname=db
streaming_conninfo = host=pg user=streaming_barman dbname=db
backup_method = postgres
streaming_archiver = on
slot_name = barman
[ssh-api]
conninfo = host=pg user=barman dbname=apiv2_1
backup_method = rsync
ssh_command = ssh postgres@pg
reuse_backup = link
archiver = on
retention_policy_mode = auto
retention_policy = RECOVERY WINDOW OF 4 WEEKS
last_backup_maximum_age = 1 DAYS
wal_retention_policy = main
[stream-api]
conninfo = host=pg user=barman dbname=db
streaming_conninfo = host=pg user=streaming_barman dbname=db
backup_method = postgres
streaming_archiver = on
slot_name = barman
ssh_command = ssh postgres@pg
reuse_backup = link
archiver = on
retention_policy_mode = auto
retention_policy = RECOVERY WINDOW OF 4 WEEKS
last_backup_maximum_age = 1 DAYS
wal_retention_policy = main
You received this message because you are subscribed to a topic in the Google Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pgbarman/MVwIwLJsQZo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pgbarman+unsubscribe@googlegroups.com.