GBase 8s
备份恢复
问答

怎么将备份还原到指定时间

发表于2023-09-27 10:29:09357次浏览18个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:GBase8sV8.8_TL_3.5.0_3X2_1_aaf3e0

【操作系统】:

【CPU】:

【问题描述】*: 使用onbar -r -p -t ‘’ 还原的时候会提示 Logical log 60 is needed by this restore but cannot be found in  OnBar ixbar file. 在ixbar文件中有log60的记录 使用 onbar -r -l -t ‘’ 的时候提示 Unable to start the logical log restore: There are no DBspaces or BLOBspaces to recover.
Check the status by using onstat -d.. 也无法还原到指定时间,使用的时间是备份开始时间到备份结束中间的时间点。备份集是从一台主机拷贝到另一台主机操作的,如果不执行基于时间点的恢复,是能正常启动的。是我时间点增加的有问题嘛,还是支持基于时间点的备份集要有特定格式?

评论

登录后才可以发表评论
用户头像
NiJaT发表于 2年前
应该是时间点有问题,时间应该是备份结束之后的时间。
GBase用户11168发表于 2年前
@NiJaT:我看报错是最后一个全量备份 但是实际测试按的是最后一个增量备份的时间 2级备份的时间没测试,然后基于时间的恢复,只能是一直备份归档。新做了全量或增量就回不到这个时间点以前的了
用户头像
曾阿牛发表于 2年前
是否做过最后一个逻辑日志的抢救?
GBase用户11168发表于 2年前
@曾阿牛:没有做,最后一次的逻辑日志抢救不需要 只想恢复到备份时的时间点
GBase用户11168发表于 2年前
@GBase用户11168:拷贝到另一台机器做的恢复
用户头像
liaosnet发表于 2年前
备份是使用哪种方法备份的?onbar仅能恢复onbar生成的备份。
GBase用户11168发表于 2年前
@liaosnet:使用的onbar备份,恢复也使用的onbar,测试恢复时间只能在最后一次一级备份以后选择,恢复不到一级备份以前的时间
用户头像
liaosnet发表于 2年前
@GBase用户11168:能恢复的是0级备份之后的任意时间(有逻辑日志备份的情况下)
GBase用户11168发表于 2年前
@liaosnet:Dbspaces - Archive Status
name number level date log log-position
rootdbs 1 0 10/11/2023.14:02 162 0x1018
1 10/11/2023.15:25 166 0x25018
plog 2 0 10/11/2023.14:02 162 0x1018
1 10/11/2023.15:25 166 0x25018
这是onstat -g arc 查询出来的备份信息
2023-10-11 16:51:07 21631 21629 /opt/gbase/bin/onbar_d -r -l -t 2023-10-11 15:07:33
2023-10-11 16:51:07 21631 21629 Using GBASE's PSM version 12.10.FC4G1 as the Storage Manager. XBSA API version is 1.0.3.
2023-10-11 16:51:07 21631 21629 bar_build_timeline: target time 1697008053
2023-10-11 16:51:07 21631 21629 Unable to start the logical log restore: The Point-In-Time value must be older than the last level-0 archive of
each DBSpace. The specified Point-In-Time is earlier than the most recent
archive of DBSpace 'rootdbs'..
这是通过指定时间恢复 报的错误信息


用户头像
liaosnet发表于 2年前
@GBase用户11168:这里提示你的恢复的时间点,早于0级备份的时间,所以无法恢复。
GBase用户11168发表于 2年前
@liaosnet:我上面要恢复的时间是晚于0级备份的时间
用户头像
liaosnet发表于 2年前
@GBase用户11168:Unable to start the logical log restore: The Point-In-Time value must be older than the last level-0 archive of
each DBSpace.

可能你的系统时间不对~
最佳回答
用户头像
路路路发表于 9个月前
有问题可以再发问答贴
冰凤发表于 8个月前
777
枫溪发表于 8个月前
666
用户头像
levvel发表于 5个月前
给你点个赞
用户头像
levvel发表于 5个月前
太有深度了!
曾浩轩发表于 2个月前
等答案了啊。