免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2463 | 回复: 11
打印 上一主题 下一主题

[VTL与磁带系统] 磁带还原问题[急] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-01 14:12 |只看该作者 |倒序浏览
我把一个30G的文件备份到了两盒20G的磁带里,
刚刚我测试还原这个文件,
先插入第一张磁带
#ufsrestore xvf /dev/rmt/1 oradbsol1.dmp
系统提示输入卷号:1
还原了第一盒磁带后提示插入第二盒磁带,
照做,
提示输入卷号:2
结果系统提示找不到文件,我记得当时我备份的时候输入卷号是2啊,不行,
输入这个文件名称oradbsol1.dmp,同样的提示,找不到。

查看磁带的内容:
#ufsrestore tvf /dev/rmt/1
系统提示找不到卷1,然后就什么也没有了,
不知道各位有没有遇到这样的问题?

在线等

论坛徽章:
0
2 [报告]
发表于 2005-03-01 14:13 |只看该作者

磁带还原问题[急]

注:
  备份用命令是:
#ufsdump 0ucf /dev/rmt/1 oradbsol1.dmp

论坛徽章:
0
3 [报告]
发表于 2005-03-01 14:26 |只看该作者

磁带还原问题[急]

When you span multiple tapes, you must load the 1st tape to start the ufsrestore, and when it ask for the volume name, put the last tape (2nd tape in your case) and restore from the last to first. In your case type 2 for volume number, put the 2nd tape in first.  When prompt for the next tape, type 1 for volume number and put 1st tape in. Please try it.

论坛徽章:
0
4 [报告]
发表于 2005-03-01 15:27 |只看该作者

磁带还原问题[急]

我的e文不好,你说了半天,把我都说迷糊了,
能用中文解释一下吗?
我记得我在写第一盒磁带的时候,系统没有提示我输入卷号,
只有检测到了磁带尾部时,让我换磁带,并输入第二盒磁带的卷号,
这个时候我输入的卷号是2,

在还原的时候,我先插入第一盒磁带,
提示我键入卷号,我输入1,
然而提示我插入第二盒磁带,我输入卷2,却总是找不到,

是不是我在备份的时候就有问题,还是我还原的时候有错?

论坛徽章:
0
5 [报告]
发表于 2005-03-01 16:01 |只看该作者

磁带还原问题[急]

刚刚我又备份了另外一个25G的文件,
在检测到第一盒磁带的尾部,系统提示:
dump:更改卷:将卷‘#2’安装到‘。。。。。’上
dump:需要注意:新卷(#2)是否已经安装在‘。。。。。’上,并且为运行做好了准备?:(“是”或者“否”)是------插入新磁带,输入“是”
dump:卷2以索引节点17中的块开始
。。。。。

论坛徽章:
0
6 [报告]
发表于 2005-03-01 16:06 |只看该作者

磁带还原问题[急]

备份应该没有问题。还原的时候提示键入卷号时输入2,放第二盘。等到提示下一盘时键入1,放入第一盘,倒过来还原。你试试看

论坛徽章:
0
7 [报告]
发表于 2005-03-01 18:48 |只看该作者

磁带还原问题[急]

# ufsdump 0ucf 10.3.2.56:/dev/rmt/1n oradbsol4.dmp
  DUMP: 写入 63 千字节记录
  DUMP: 本级 0 日期转储:2005年03月01日 星期二 14时05分21秒
  DUMP: 上一级 0 日期转储:纪元
  DUMP: 转储 /dev/rdsk/c1t2d0s7 (sun8802:/export/home4) 到 10.3.2.56:/dev/rmt/1n。
  DUMP: 映射(传送 I) [规则文件]
  DUMP: 映射 (传送 II) [目录]
  DUMP: 估计 48565878 块 (23713.81MB)。
  DUMP: 转储(传送 III) [目录]
  DUMP: 转储(传送 IV) [规则文件]
  DUMP: 6.44% 完成,在 2:25 完成
  DUMP: 12.85% 完成,在 2:15 完成
  DUMP: 19.26% 完成,在 2:05 完成
  DUMP: 25.78% 完成,在 1:55 完成
  DUMP: 32.19% 完成,在 1:45 完成
  DUMP: 38.59% 完成,在 1:35 完成
  DUMP: 45.13% 完成,在 1:25 完成
  DUMP: 51.54% 完成,在 1:15 完成
  DUMP: 57.95% 完成,在 1:05 完成
  DUMP: 64.47% 完成,在 0:55 完成
  DUMP: 检测到磁带结尾
  DUMP: 69.50% 完成,在 0:47 完成
  DUMP: 更改卷:将卷 `#2' 安装到 `10.3.2.56:/dev/rmt/1n' 上
  DUMP: 需要注意:新卷 (#2) 是否已经安装在 `10.3.2.56:/dev/rmt/1n' 上并且为运行做好了准备?:("是" 或者 "否"
  DUMP: 需要注意:新卷 (#2) 是否已经安装在 `10.3.2.56:/dev/rmt/1n' 上并且为运行做好了准备?:("是" 或者 "否"
  DUMP: 卷 2 以索引节点 17 中的块开始
  DUMP: 72.72% 完成,在 0:42 完成
  DUMP: 79.13% 完成,在 0:32 完成
  DUMP: 85.54% 完成,在 0:22 完成
  DUMP: 92.08% 完成,在 0:12 完成
  DUMP: 98.52% 完成,在 0:02 完成
  DUMP: 在 2 卷上的 48565816 块 (23713.78MB)速率是 2599 KB/sec
  DUMP: 转储已完成

备份情况

论坛徽章:
0
8 [报告]
发表于 2005-03-01 18:50 |只看该作者

磁带还原问题[急]

查看第一盒磁带:
# ufsrestore tvf 10.3.2.56:/dev/rmt/1
Verify volume and initialize maps
Media block size is 126
Extract directories from tape
Initialize symbol table.
Dump   date: Tue Mar 01 14:05:21 2005
Dumped from: the epoch
Level 0 dump of a partial file system on sun8802radbsol4.dmp
Label: none
dir          2  .
dir          8  ./haihebak
leaf        17  ./haihebak/oradbsol4.dmp
#

第二盒磁带:
# ufsrestore xvf 10.3.2.56:/dev/rmt/1
Verify volume and initialize maps
Media block size is 126
This is not volume 1 of the dump

论坛徽章:
0
9 [报告]
发表于 2005-03-01 18:51 |只看该作者

磁带还原问题[急]

直接用第二盒磁带还原:
# ufsrestore xvf 10.3.2.56:/dev/rmt/1
Verify volume and initialize maps
Media block size is 126
Dump   date: Tue Mar 01 14:05:21 2005
Dumped from: the epoch
Level 0 dump of a partial file system on sun8802radbsol4.dmp
Label: none
This is not volume 1 of the dump

论坛徽章:
0
10 [报告]
发表于 2005-03-01 18:54 |只看该作者

磁带还原问题[急]

用第一盒磁带还原:
# ufsrestore xvf 10.3.2.56:/dev/rmt/1
Verify volume and initialize maps
Media block size is 126
Dump   date: Tue Mar 01 14:05:21 2005
Dumped from: the epoch
Level 0 dump of a partial file system on sun8802radbsol4.dmp
Label: none
Extract directories from tape
Initialize symbol table.
Warning: ./haihebak: File exists
Extract requested files
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #:1
。。。。。
时间很长,不知道这次行不行,

不过dxia  兄台的办法好像行不通,
不能先用第二盒磁带还原,根本就不会给提示
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP