wal-e backup-push不会终止(等待所需的WAL段被存档)

时间:2017-05-26 11:52:02

标签: postgresql wal wal-e

尝试为postgres设置wal-e

遵循各种教程,我最终要做一个干净的9.6 postgres安装的第一次备份。

遵循一些教程,最后阅读初始wal-e backup-push,如下所示:

sudo -u postgres -i envdir /etc/wal-e.d/env wal-e backup-push /var/lib/postgresql/9.6/main

我希望命令能够快速终止,因为它是一个空的数据库。

然而它似乎无限期地等待。显示waiting for required WAL segments to be archived

 postgres@postgres:~$ envdir /etc/wal-e.d/env wal-e backup-push /var/lib/postgresql/9.6/main
wal_e.main   INFO     MSG: starting WAL-E
        DETAIL: The subcommand is "backup-push".
        STRUCTURED: time=2017-05-26T11:45:52.138889-00 pid=10426
wal_e.operator.backup INFO     MSG: start upload postgres version metadata
        DETAIL: Uploading to s3://xxxxxx/basebackups_005/base_000000010000000000000060_00000040/extended_version.txt.
        STRUCTURED: time=2017-05-26T11:45:52.719220-00 pid=10426
wal_e.operator.backup INFO     MSG: postgres version metadata upload complete
        STRUCTURED: time=2017-05-26T11:45:52.929696-00 pid=10426
wal_e.worker.upload INFO     MSG: beginning volume compression
        DETAIL: Building volume 0.
        STRUCTURED: time=2017-05-26T11:45:53.075771-00 pid=10426
wal_e.worker.upload INFO     MSG: begin uploading a base backup volume
        DETAIL: Uploading to "s3://xxxxxx/basebackups_005/base_000000010000000000000060_00000040/tar_partitions/part_00000000.tar.lzo".
        STRUCTURED: time=2017-05-26T11:45:53.752390-00 pid=10426
wal_e.worker.upload INFO     MSG: finish uploading a base backup volume
        DETAIL: Uploading to "s3://xxxxxx/basebackups_005/base_000000010000000000000060_00000040/tar_partitions/part_00000000.tar.lzo" complete at 9106.47KiB/s. 
        STRUCTURED: time=2017-05-26T11:45:54.327037-00 pid=10426
NOTICE:  pg_stop_backup cleanup done, waiting for required WAL segments to be archived
WARNING:  pg_stop_backup still waiting for all required WAL segments to be archived (60 seconds elapsed)
HINT:  Check that your archive_command is executing properly.  pg_stop_backup can be canceled safely, but the database backup will not be usable without all the WAL segments.
WARNING:  pg_stop_backup still waiting for all required WAL segments to be archived (120 seconds elapsed)
HINT:  Check that your archive_command is executing properly.  pg_stop_backup can be canceled safely, but the database backup will not be usable without all the WAL segments.

说实话,我有点超出我的深度。 Afaik,上面应该做一个初始备份,但不要等待显然不断更新的WAL文件。 (我在我的postgres配置中有archive_mode=on并设置archive_command = 'envdir /etc/wal-e.d/env wal-e wal-push %p'哪个应该进行增量推送。再次afaik。)。

如何完成此初始备份命令?

0 个答案:

没有答案