Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15023
  • 博文数量: 9
  • 博客积分: 450
  • 博客等级: 下士
  • 技术积分: 120
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-03 19:24
文章分类
文章存档

2008年(9)

我的朋友
最近访客

分类:

2008-12-03 20:44:34

用光盘制作系统备份,除了提高恢复速度外,还可以保存任意时刻的备份,可以将映像文件保存到PC机上,即使刻录好的光盘在紧要关头不可用了,也可以随时找出需要的系统备份,再刻录一张。

制作步骤:
1、建立mksysb image文件
2、用mkcd制作光盘引导映像文件
3、刻录映像文件
 
 
1、建立mksysb image文件
# smit mksysb
                               Back Up the System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP]                                                   [Entry Fields]
    WARNING: Execution of the mksysb command will
              result in the loss of all material
              previously stored on the selected
              output medium. This command backs
              up only rootvg volume group.
* Backup DEVICE or FILE                         [/home/bobo/170-20081114]  +
Create MAP files?                                   yes                    +
EXCLUDE files?                                      no                     +
List files as they are backed up?                   no                     +
Verify readability if tape device?                  no                     +
Generate new /image.data file?                      yes                    +
EXPAND /tmp if needed?                              no                     +
Disable software packing of backup?                 no                     +
Number of BLOCKS to write in a single output        []                     #
(Leave blank to use a system default)
 
 
2、用mkcd制作光盘引导映像文件
# smit mkcd
                     Use an existing mksysb image?                     
  Move cursor to desired item and press Enter.                           
    1 yes        ---选择 yes
    2 no
 
进入操作菜单:
因为我想做个镜像文件,我的170上没有刻录机,所以CD-R Device不用添写。直接把mksysb image文件路径写上就可以了。

                           Back Up This System to CD
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP]                                               [Entry Fields]
  CD-R Device                                       []                             +
* Location of existing mksysb image                 [/home/bobo/170-20081114]      /
  File system to store CD file structure            []                             /
     (If blank, the file system
       will be created for you.)
  File system to store final CD images              []                             /
     (If blank, the file system
       will be created for you.)
  If file systems are being created:
Volume Group for created file systems               [rootvg]                       +
  Advanced Customization Options:
  Do you want the CD to be bootable?                yes                            +
  Remove final images after creating CD?            yes                            +
  Create the CD now?                                no                             +
  Install bundle file                               []                             /
  File with list of packages to copy to CD          []                             /
  Location of packages to copy to CD                []                            +/
  Customization script                              []                             /
  User supplied bosinst.data file                   []                             /
  Debug output?                                     no                             +
  User supplied image.data file                     []                             /

                                 COMMAND STATUS
Command: OK            stdout: yes           stderr: no
Before command completion, additional instructions may appear below.
[TOP]
Initializing mkcd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Creating temporary file system: /mkcd/cd_fs...
Populating the CD or DVD file system...
0512-323 mkcd: The following files are required for the
creation of the CD or DVD image and are not available on the source system:
.....................省略
The files can be installed from the listed filesets.
0512-321 mkcd: Error populating the CD or DVD file system
using the /usr/lpp/bosinst/cdfs.optional.list proto file.
0512-328 mkcd: The CD or DVD may not be able to boot some systems.
Copying backup to the CD or DVD file system...
Building chrp boot image...
Creating temporary file system: /mkcd/cd_images...
Creating Rock Ridge format image: /mkcd/cd_images/cd_image_467044.vol1
Running mkisofs ...
mkrr_fs was successful.
Making the CD or DVD image bootable...
Copying the remainder of the backup to the CD or DVD file system...
Creating Rock Ridge format image: /mkcd/cd_images/cd_image_467044.vol2
Running mkisofs ...
mkrr_fs was successful.
Removing temporary file system: /mkcd/cd_fs...

执行完后,产生/mkcd/cd_images文件系统,其中包括两个映像文件。
# cd /mkcd/cd_images
# ls -l
total 2559000
-rw-r--r--   1 root     sys       677922816 Jan 13 10:28 cd_image_507936.vol1
-rw-r--r--   1 root     sys       632276992 Jan 13 10:28 cd_image_507936.vol2
drwxrwx---   2 root     system          512 Jan 13 10:28 lost+found
3、刻录映像文件
将第二步操作生成的两个映像文件ftp到有刻录机的机器上,可以是任何操作系统的机器,以刻录映像文件的方式刻录到光盘上。
 
下面试刻录好的第一张光盘
# mount /cdrom
# cd cdrom      66594847 
# ls –l
total 28
-r--r--r--   1 root     system           25 Jan 12 19:59 OSLEVEL
dr-xr-xr-x   3 root     system         2048 Jan 12 19:59 RPMS
dr-xr-xr-x   3 root     system         2048 Jan 12 19:59 ismp
-r--r--r--   1 root     system           60 Jan 12 19:59 mkcd.data
dr-xr-xr-x   3 root     system         2048 Jan 12 19:59 sbin
dr-xr-xr-x   3 root     system         2048 Jan 12 19:59 udi
dr-xr-xr-x   5 root     system         2048 Jan 12 19:59 usr
阅读(461) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~