【发布时间】:2019-10-23 17:55:55
【问题描述】:
我对一个 DPF 数据库(6 个节点)进行了非 svv 在线备份:
目录节点 0 分区备份从早上 6 点开始,在早上 7 点完成
节点 1 分区备份从早上 7 点开始,到早上 8 点完成,
节点 2 分区备份从早上 8 点开始,到早上 9 点完成,
节点 3 分区备份于上午 9 点开始,并于上午 10 点完成,
节点 4 分区备份于上午 10 点开始,并于上午 11 点完成,
节点 5 分区备份从上午 11 点开始,在下午 12 点完成
现在我必须将此备份恢复到另一台服务器。我将使用rollforward to end of logs and complete 和溢出路径(包含来自恢复命令中使用的logtarget 的日志)。
所以我的问题是:
新恢复的数据库会保持一致吗?
如果是,直到什么时候才能保持一致性(早上 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
【问题讨论】: