免费注册 查看新帖 |

Chinaunix

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

dump问题求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-12 21:48 |只看该作者 |倒序浏览
求助:(自己做实验有点不太明白)
第一步:我想把emilangel这个目录备份,执行如下命令:
[root@nanji home]# ls
emilangel  svnuser
[root@nanji home]# dump -0f emilangel.dump emilangel
  DUMP: Date of this level 0 dump: Thu Dec  2 19:23:02 2010
  DUMP: Dumping /dev/mapper/VolGroup00-LogVol00 (/ (dir home/emilangel)) to emilangel.dump
  DUMP: Label: none
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 600 blocks.
  DUMP: Volume 1 started with block 1 at: Thu Dec  2 19:23:02 2010
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Closing emilangel.dump
  DUMP: Volume 1 completed at: Thu Dec  2 19:23:03 2010
  DUMP: Volume 1 600 blocks (0.59MB)
  DUMP: Volume 1 took 0:00:01
  DUMP: Volume 1 transfer rate: 600 kB/s
  DUMP: 600 blocks (0.59MB) on 1 volume(s)
  DUMP: finished in 1 seconds, throughput 600 kBytes/sec
  DUMP: Date of this level 0 dump: Thu Dec  2 19:23:02 2010
  DUMP: Date this dump completed:  Thu Dec  2 19:23:03 2010
  DUMP: Average transfer rate: 600 kB/s
  DUMP: DUMP IS DONE
[root@nanji home]# ls
emilangel  emilangel.dump  svnuser
[root@nanji home]#
应该是成功了吧?
第二步:我打算在home目录下建立一个data1文件夹,把dump备份还原到data1文件夹下
[root@nanji home]# mkdir data1
[root@nanji home]# ls
data1  emilangel  emilangel.dump  svnuser
[root@nanji home]# restore -rf emilangel.dump data1
./lost+found: (inode 11) not found on tape
./boot: (inode 786433) not found on tape
./sys: (inode 589825) not found on tape
./proc: (inode 1179649) not found on tape
./dev: (inode 1114113) not found on tape
./etc: (inode 2228225) not found on tape
./.autorelabel: (inode 98305) not found on tape
./var: (inode 917505) not found on tape
./tmp: (inode 1212417) not found on tape
./root: (inode 1441793) not found on tape
./selinux: (inode 622593) not found on tape
./lib: (inode 2162689) not found on tape
./usr: (inode 1998849) not found on tape
./bin: (inode 2260993) not found on tape
./home/svnuser: (inode 267702) not found on tape
./home/.svn: (inode 270135) not found on tape
./media: (inode 950273) not found on tape
./mnt: (inode 196609) not found on tape
./opt: (inode 1900545) not found on tape
./sbin: (inode 557057) not found on tape
./srv: (inode 262145) not found on tape
./misc: (inode 1933313) not found on tape
./.autofsck: (inode 98306) not found on tape
./net: (inode 425993) not found on tape
./data1: (inode 1376257) not found on tape
./svn: (inode 1048587) not found on tape
./restoresymtable: (inode 98307) not found on tape
[root@nanji home]# ls
data1  emilangel  emilangel.dump  home  restoresymtable  svnuser
[root@nanji home]# ls -l data1
total 0
[root@nanji home]# ls -l home
total 4
drwxr-xr-x 3 emilangel emilangel 4096 Sep  8 07:27 emilangel
[root@nanji home]#
可是还原时确还原在当前目录,并没有还原到我指定的目录,而且还原的目录为在home目录下的/home/emilangel。并且多出一个文件 restoresymtable  不知是什么用处,谢谢楼主能帮忙看一下吗?还有那些not found on tape是正常的现象吗?

论坛徽章:
0
2 [报告]
发表于 2011-03-13 09:08 |只看该作者
求助

论坛徽章:
0
3 [报告]
发表于 2011-03-15 13:02 |只看该作者
请大侠们帮助一下谢谢了。

论坛徽章:
0
4 [报告]
发表于 2011-03-15 18:57 |只看该作者
佩服,佩服!
以后要向你多请教。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP