在 db2 dpf 中恢复非 SVV 备份

Restore NON-SVV backup in db2 dpf

我对 DPF 数据库(6 个节点)进行了非 svv 在线备份:

现在我必须将此备份还原到另一台服务器。我打算将 rollforward to end of logs and complete 与溢出路径一起使用(包含来自恢复命令中使用的 logtarget 的日志)。

所以我的问题是:

  1. 新恢复的数据库会一致吗?

  2. 如果是,到什么时间会有一致性(早上 6 点、早上 7 点或中午 12 点)?

以下是使用的命令:

db2_all "db2 backup db db1 online compress"

db2_all '<<+0< db2 restore db db1 taken at <timestamp> into db11 logtarget /tmp/logtar

db2_all '<<-0< db2 restore db db1 taken at <timestamp> into db11 logtarget /tmp/logtar


db2 rollforward db db11 to end of logs and stop overflow log path /tmp/logtar

在恢复时使用来自 LOGTARGET 的日志是不够的。您需要手动复制所有节点的日志,直到最后一个节点完成备份。 (即中午 12 点)

然后当您进行前滚时,它会将您在新系统上的所有节点带到那个时间。