barman check after switchover with repmgr

159 views
Skip to first unread message

lonnie....@gmail.com

unread,
Jun 14, 2017, 6:56:41 PM6/14/17
to Barman, Backup and Recovery Manager for PostgreSQL
I have been testing barman and repmgr for backups & disaster recovery on a simple single master, single standby environment.

I have a third server used primarily for backups and after my initial setup for backing up the master things seemed good. ("barman check db" returned all OK and I was able to do a backup)

Then I switched my master and standby server roles, which I did using "repmgr switchover". That too was successful.

When I try to reconfigure the backup server barman configuration to backup the new master, I see an error: archiver errors: FAILED (unknown: 1) when I run "barman check db2"

It seems to be happy to take a backup of db2 if I run "barman backup db2".

I am running on Ubuntu 16.04.2 LTS, PostgreSQL 9.6.3 and using streaming archiver.

I'm not sure what is causing the archiver error and am a bit concerned. Any thoughts out there?

Thanks!

Lonnie

lonnie....@gmail.com

unread,
Jun 15, 2017, 1:11:39 PM6/15/17
to Barman, Backup and Recovery Manager for PostgreSQL
A bit more information:

I put both db1 and db2 in my barman config file. After I did the repmgr switch from db2 to db1 (as the master), a file /var/lib/barman/db1/streaming/0000001E0000000C00000036.partial is created and a corresponding /var/lib/barman/db1/errors/0000001D0000000C00000036.partial.20170615T170101Z.unknown

Will I miss or corrupt data if I ignore and delete the error, and/or am I missing something in my process that would prevent the error?
Reply all
Reply to author
Forward
0 new messages