Chinaunix

标题: informix 0级恢复失败!请教各位大虾! [打印本页]

作者: tihql    时间: 2006-01-13 08:40
标题: informix 0级恢复失败!请教各位大虾!
本人用磁带机将主机的0级磁带数据恢复到备机,两台服务器的环境配置一致,操作时出现如下错误:

[informix@jhsz01bak userdata]$ontape -r

Please mount tape 1 on /dev/st0 and press Return to continue ...
Physical restore failed - function read archive backup failed code -1 errno 5

Program over.

我的备机数据库可以启动正常。
有没有大虾帮帮忙,在线等。
作者: tihql    时间: 2006-01-13 08:54
需要什么数据参考,我可以帖出来!
作者: IFMXDBA    时间: 2006-01-13 09:46
标题: 回复 1楼 tihql 的帖子
error 5 is I/O error ( defined in /usr/include/errno.h ).  Make sure if the tape driver working properly.  You can try dd if=TapeDevice of=FileName bs=2048 count=1000. It works properly, check if the tape was damaged. You can use the dd to dump out first 20 pages from the tape. Normally the first few pages of the level 0 archive will contain some detail information, say, timestamp, all the chunks, dbspace name, size etc.  you can use od -c to read the dumpped out pages.
作者: tihql    时间: 2006-01-13 10:07
磁带机应该没有什么问题,因为我用备机本机做0级备份,然后再用ontape -r恢复就是正常的。
但从主机做的0级磁带拿过来ontape -r 就会出现上面的错误提示。
onconfig文件与主机配置一样的,chunk大小,数据库大小也是与主机一致。
作者: wenlq    时间: 2006-01-13 10:19
试试主机上tar 到磁带的东西能不能在备机的磁带机上读出
作者: tihql    时间: 2006-01-13 10:57
听说ontape -r 命令恢复时只要rootdbs库配的一样就行,其他业务库从0级恢复就可以了,并不需要一个一个对应的建,对吧。如果是这样的话,我可以考虑将备机的数据库重装一遍,不知道行不行。
作者: IFMXDBA    时间: 2006-01-13 11:18
标题: 回复 6楼 tihql 的帖子
you have to make sure all the chunks defined in the level 0 archive are existing in the target system if your version do not support "re-direct restore".
作者: zycwt    时间: 2006-01-13 18:25
备机退出双机试试看
作者: 大蚂蚁    时间: 2006-01-13 18:42
不会是做了hdr,然后只读状态恢复的吧? ^_^
作者: tihql    时间: 2006-01-14 17:11
没有啦,现在又有新问题了,重装后干脆就直接这样提示了:
[informix@jhsz03bak userdata]$ ontape -r

Please mount tape 1 on /dev/st0 and press Return to continue ...
Floating point exception
[informix@jhsz03bak userdata]$

根本就读不出磁带里面的数据。

不知是何原因,请教请教!
作者: sam_8286    时间: 2006-01-16 11:28
原帖由 tihql 于 2006-1-14 17:11 发表
没有啦,现在又有新问题了,重装后干脆就直接这样提示了:
[informix@jhsz03bak userdata]$ ontape -r

Please mount tape 1 on /dev/st0 and press Return to continue ...
Floating point exception
[inf ...

这个像磁带机的问题
作者: wolfop    时间: 2006-01-16 15:26
不一定是磁带机问题,IDS的磁带恢复一向是臭名昭著了。
作者: imkdk    时间: 2006-01-16 18:23
两台磁带机是同一型号吗?
作者: jl8323    时间: 2006-01-19 15:53
磁带BLOCK大小不一样吧,联系系统管理员,可能是用TAR -TVF DEV检查TAPE BLOCK的大小
作者: jl8323    时间: 2006-01-19 15:57
这两台机器不是做双机了嘛,实在不行你ONTAPE -S到存储盘里,再从备机恢复
作者: zhan_yl    时间: 2006-01-27 22:45
你2边的配置肯定是完全一致的吗?特别是和TAPE有关的那几个参数。你的磁带有问题吗?
作者: happer_xc    时间: 2006-01-28 10:06
看看生产机和备份机的磁带块参数是不是一样。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2