Didn't seem to help. I ran a 'barman switch-xlog testdb` which resulted in a log message: 2016-10-02 17:39:57,836 [13] barman.command_wrappers INFO: testdb: pg_receivexlog: finished segment at 0/2000000 (timeline 1)
I waited for over 5 minutes and nothing else happened (as far as I recall, 5 minutes is the default wal checkpoint length). I went to my test db, created a table and did a generate_series which resulted in another: 2016-10-02 17:51:21,239 [13] barman.command_wrappers INFO: testdb: pg_receivexlog: finished segment at 0/3000000 (timeline 1)
root@a9fe2193f7d1:/# barman diagnose
{
"global": {
"config": {
"barman_home": "/var/lib/barman",
"barman_user": "barman",
"compression": "gzip",
"configuration_files_directory": "/etc/barman.d",
"errors_list": [],
"log_file": "/var/log/barman/barman.log",
"log_level": "INFO"
},
"system_info": {
"barman_ver": "2.0",
"kernel_ver": "Linux a9fe2193f7d1 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 GNU/Linux",
"python_ver": "Python 2.7.9",
"release": "Distributor ID:\tDebian\nDescription:\tDebian GNU/Linux 8.6 (jessie)\nRelease:\t8.6\nCodename:\tjessie",
"rsync_ver": "rsync version 3.1.1 protocol version 31",
"ssh_ver": "OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t 3 May 2016"
}
},
"servers": { [40/236]
"testdb": {
"backups": {},
"config": {
"active": true,
"archiver": false,
"archiver_batch_size": 0,
"backup_directory": "/var/lib/barman/testdb",
"backup_method": "postgres",
"backup_options": "concurrent_backup",
"bandwidth_limit": null,
"barman_home": "/var/lib/barman",
"barman_lock_directory": "/var/lib/barman",
"basebackup_retry_sleep": 30,
"basebackup_retry_times": 0,
"basebackups_directory": "/var/lib/barman/testdb/base",
"check_timeout": 30,
"compression": "gzip",
"conninfo": "host=postgres user=barman dbname=postgres",
"custom_compression_filter": null,
"custom_decompression_filter": null,
"description": "Test",
"disabled": false,
"errors_directory": "/var/lib/barman/testdb/errors",
"immediate_checkpoint": false,
"incoming_wals_directory": "/var/lib/barman/testdb/incoming",
"last_backup_maximum_age": null,
"minimum_redundancy": 0,
"msg_list": [],
"name": "testdb",
"network_compression": false,
"path_prefix": null,
"post_archive_retry_script": null,
"post_archive_script": null,
"post_backup_retry_script": null,
"post_backup_script": null,
"pre_archive_retry_script": null,
"pre_archive_script": null,
"pre_backup_retry_script": null,
"pre_backup_script": null,
"recovery_options": "",
"retention_policy": null,
"retention_policy_mode": "auto",
"reuse_backup": null,
"slot_name": "barman",
"ssh_command": null,
"streaming_archiver": true,
"streaming_archiver_batch_size": 0,
"streaming_archiver_name": "barman_receive_wal",
"streaming_backup_name": "barman_streaming_backup",
"streaming_conninfo": "host=postgres user=streaming_barman",
"streaming_wals_directory": "/var/lib/barman/testdb/streaming",
"tablespace_bandwidth_limit": null,
"wal_retention_policy": "main",
"wals_directory": "/var/lib/barman/testdb/wals"
},
"status": {
"config_file": "/var/lib/postgresql/data/postgresql.conf",
"connection_error": null,
"current_size": 40169784.0,
"current_xlog": "000000010000000000000003",
"data_directory": "/var/lib/postgresql/data",
"hba_file": "/var/lib/postgresql/data/pg_hba.conf",
"ident_file": "/var/lib/postgresql/data/pg_ident.conf",
"is_superuser": true,
"pg_basebackup_bwlimit": true,
"pg_basebackup_compatible": true,
"pg_basebackup_installed": true,
"pg_basebackup_path": "/usr/bin/pg_basebackup",
"pg_basebackup_tbls_mapping": true,
"pg_basebackup_version": "9.6.0",
"pg_receivexlog_compatible": true,
"pg_receivexlog_installed": true,
"pg_receivexlog_path": "/usr/bin/pg_receivexlog",
"pg_receivexlog_supports_slots": true,
"pg_receivexlog_synchronous": true,
"pg_receivexlog_version": "9.6.0",
"pgespresso_installed": false,
"replication_slot": [
"barman",
true,
"0/3EB4A70"
],
"replication_slot_support": true,
"server_txt_version": "9.6.0",
"streaming": true,
"streaming_supported": true,
"synchronous_standby_names": [
"barman_receive_wal"
],
"systemid": "6336703731832320025",
"timeline": 1,
"wal_level": "replica",
"xlogpos": "0/3EB4A70"
}
}
}
}