GBase 8s
备份恢复
问答

gbase 8s 修改rootpath导致数据库起不来

发表于2023-06-26 11:00:58257次浏览6个评论

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

【GBase版本】:Gbase v8.8

【操作系统】:rebhat 6.8

【CPU】:4C 

【问题描述】*:

客户现场数据库通过ontape -s -L 0 级备份数据恢复本地后报错,Physical restore failed - ONCONFIG ROOTPATH: '/dbs/rootdbs' differs from archive: '/home/gbasedbt/dbs/rootdbs' 提示rootpath 不一致尝试将本地onconfig.gbaseserver环境变量,重新初始化报错,oninit: Fatal error in shared memory initialization

WARNING: server initialization failed or timed out.请大神帮忙解答,如何替换rootpath方法

评论

登录后才可以发表评论
小天才红发表于 3年前
关掉实例,onconfig里面把ROOTPATH路径改成/home/gbasedbt/dbs/rootdbs
对应路径touch一个rootdbs,赋权
chmod 660 rootdbs
chown gbasedbt:gbasedbt rootdbs
不用重新初始化,直接再试试ontape恢复
最佳回答
GBase用户8725发表于 3年前
@小天才红:您好,按照您提示进行操作后报,这个错误Physical restore failed - ONCONFIG ROOTSIZE: '50000' differs from archive: '1000000' ,按照提示没找到修改ROOTSIZE参数文件,请问这个参数在哪里定义的?
小天才红发表于 3年前
@GBase用户8725:如图位置
GBase用户8725发表于 3年前
@小天才红:你好 ,按照您提示已经恢复数据库但启动 onmode -m 状态卡死了
GBase用户8725发表于 3年前
@小天才红:你好,按照您提示已经恢复数据库,但执行onmode -m 卡死
新疆油腻大叔发表于 2个月前
等答案了啊。