【问题标题】:Unable to do backup using barman due to systemid error由于 systemid 错误,无法使用 barman 进行备份
【发布时间】:2022-07-23 23:52:17
【问题描述】:

我正在尝试使用 barman 命令进行备份:barman backup pg 但它显示了类似的错误

ERROR: Impossible to start the backup. Check the log for more details, or run 'barman check pg'

后来我使用barman命令检查:barman check pg我发现另一个错误 systemid coherence: FAILED 。接下来我在酒保检查 postgres 的 systemid,我发现 systemdid 不同。 在这种情况下需要做什么?

我删除了identity.json 文件形式的酒保。虽然它以某种方式解决了我的问题。但我不确定解决这个问题是否正确?

identity.json 的实际用途是什么?我正在寻找专家意见。

Server pg:
        PostgreSQL: OK
        superuser or standard user with backup privileges: OK
        PostgreSQL streaming: OK
        wal_level: OK
        replication slot: OK
        directories: OK
        retention policy settings: OK
        backup maximum age: OK (interval provided: 1 day, latest backup age: 2 hours, 57 minutes, 55 seconds)
        backup minimum size: OK (876.1 MiB)
        wal maximum age: OK (no last_wal_maximum_age provided)
        wal size: OK (31.5 KiB)
        compression settings: OK
        failed backups: OK (there are 0 failed backups)
        minimum redundancy requirements: OK (have 3 backups, expected at least 1)
        ssh: OK (PostgreSQL server)
        systemid coherence: FAILED (the system Id of the connected PostgreSQL server changed, stored in "/var/lib/barman/pg/identity.json")
        pg_receivexlog: OK
        pg_receivexlog compatible: OK
        receive-wal running: OK
        archive_mode: OK
        archive_command: OK
        continuous archiving: OK
        archiver errors: FAILED (duplicates: 50)

【问题讨论】:

    标签: postgresql postgresql-12 postgresql-13 barman


    【解决方案1】:

    没有文档解释这个错误“systemid coherence: FAILED (the system Id of the connected PostgreSQL server changed, stored in "/var/lib/barman/pg/identity.json")”

    谢谢,解决方案奏效了。 IT 会自动创建身份文件。

    【讨论】:

    • 请不要添加 thanks 作为答案。它们实际上并没有提供问题的答案,并且可能被未来的访问者视为噪音。一旦你earn足够reputation,你将获得upvote answers你喜欢的特权。这样,问题的未来访问者将看到对该答案的更高投票数,并且回答者也将获得声誉积分奖励。见Why is voting important
    猜你喜欢
    • 2022-08-04
    • 2019-03-08
    • 2021-05-27
    • 2012-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-02
    • 1970-01-01
    相关资源
    最近更新 更多