Chinaunix首页 | 论坛 | 博客
  • 博客访问: 327669
  • 博文数量: 81
  • 博客积分: 2107
  • 博客等级: 大尉
  • 技术积分: 742
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-30 09:38
文章分类

全部博文(81)

文章存档

2011年(2)

2010年(28)

2009年(45)

2008年(6)

我的朋友

分类:

2009-11-09 14:22:04

使用 #smit mksysb 备份AIX系统
1. 一次完整的备份日志
   #tail /smit.log
   [Jul 07 2009, 18:27:59]
   Command_to_Execute follows below:
   >> /usr/bin/mksysb   '-i'   /dev/rmt0

   Output from Command_to_Execute follows below:
   ---- start ----

   Creating information file (/image.data) for rootvg.
   Creating tape boot image......
   bosboot: Boot image is 37774 512 byte blocks.
   .
   Creating list of files to back up..
   Backing up 253800 files..............................
   24 of 253800 files (0%)..............................
   34 of 253800 files (0%)..............................
   954 of 253800 files (0%)..............................
   1783 of 253800 files (0%)..............................
   4164 of 253800 files (1%)..............................
   ...................
   17451 of 253800 files (6%)..............................
   19630 of 253800 files (7%)..............................
   20501 of 253800 files (8%)..............................
   21455 of 253800 files (8%)..............................
   41969 of 253800 files (16%)......................cannot access ./usr/IBM/WebSphere/PortalServer/log/SystemOut_09.07.07_16.52.
   51.log: A file or directory in the path name does not exist.
   179375 of 253800 files (70%)..............................
   197964 of 253800 files (78%)..............................
   239358 of 253800 files (94%)....cannot access ./usr/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/exoa1/SystemOut_09.07.07_1
   7.52.50.log: A file or directory in the path name does not exist.
   ..........................
   243252 of 253800 files (95%)..............................
   245365 of 253800 files (96%)..............................
   245365 of 253800 files (96%)..............................
   252065 of 253800 files (99%).....................
   0512-003 mksysb may not have been able to archive some files.
   The messages displayed on the Standard Error contained additional
   information.
   bosboot: Boot image is 37774 512 byte blocks.
  
   ---- end ----
   [Jul 07 2009, 21:50:29]
2. 备份的命令
   # smit mksysb
   # /usr/bin/mksysb -i /dev/rmt0
   不想备份的目录写在 /etc/exclude.rootvg
   bash-3.2# more /etc/exclude.rootvg  (内容如下)
   /IMIS_SOFT/
3. 显示备份内容
   A. 要列出位于缺省设备 /dev/rmt0 下的系统备份内容,请输入:
      # lsmksysb
   B. 显示备份的内容 
      # lsmksysb -f /dev/rmt0.1
   C. 显示指定目录的内容 
      # lsmksysb -l -f /tmp/mybackup
   D. 要验证 /dev/rmt0 中的卷组备份磁带的每个头的可读性,请输入:
      # lsmksysb -V -f /dev/rmt0
 

???????????????????????????????????????????????????????????????
1. 磁带能否重复利用?
答:不能,重新备份会覆盖以前的内容。
     /dev/rmt0  使用这个备份系统后磁带自动回滚,即下次备份会覆盖以前的内容
     /dev/rmt0.1 使用这个备份系统后磁带不会回滚,可重复备份
 
阅读(959) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~