首页 > 数据库 > 数据库开发技术 > HP系统备份及恢复方案
今天应客户要求写了一下HP系统备份及恢复方案
HP系统备份及恢复方案
# swlist -l bundle |grep -i ignite
IGNITE C.7.4.157 HP-UX Installation Utilities (Ignite-UX)
# whereis make_tape_recovery
make_tape_recovery: /opt/ignite/bin/make_tape_recovery /opt/ignite/share/man/man1m.Z/make_tape_recovery.1m
# /opt/ignite/bin/make_tape_recovery -help
Usage: make_tape_recovery [-s iux_server|[-l lanic_id]] [-A]
[-B boot_destination_file] [-I][-a tape_device_file][-p] [-r]
[-t tape_title] [-v] [-i|-ib] [-d description] [-f content_file][-D tape_vol_name]
[-x content-options] [-P s|w|e] [-m tar|cpio|pax] [XToolkit-Options] [-?]
-s iux_server Specifies the server on which configuration files and
archives reside
-A Specifies all files on each selected disk or volume
group that are included
-B boot_dest_file Specifies the temporary location of the LIF volume
-I Cause the system recovery process to be interactive when
booting from the tape
-a tape_device_file Specifies the tape device file
-r Resumes creation of the archive
-p Previews the processing that would take place without
actually creating the archive
-t tape_title Specifies a custom message of the archive tape
-v Specifies verbose output
-i Causes make_tape_recovery to run interactively
-d description Specifies the one line description of the archive
-D tape_vol_name Specifies 6-character ANSI tape volume name. IPF tape only
-f content_file Specifies the location of the file which identifies
keywords to specify inclusions and exclusions for the
archive
-l lanic_id Specifies the lanic id of the system being archived,
used with -s option
-m tar|cpio|pax Specify in which format the files/directories image in
the archive will be stored
-x content_option Specifies the included/excluded disk or volume groups
-n num_cfg_dir Specifies the number of configuration and log file
directories to be saved on the system
-? Display this help screen
# /opt/ignite/bin/make_tape_recovery -Av
# /opt/ignite/bin/make_tape_recovery -Av -a /dev/rmt/1mn (提定磁带设备)
# /opt/ignite/bin/check_tape_recovery
#cat /var/opt/ignite/recovery/latest/recovery.log
[1] 在磁带机中,插入系统恢复带
[2] Boot 系统
[3] 中断Boot 流程,进入 Boot_admin> 提示下
[4] Boot_admin> bo 8/16.0.0 (8/16.0.0: 磁带机的 hardware path )
[5] 选取 " non-interactive "
[6] 等待系统恢复完毕
[1] 在磁带机中,插入系统恢复带
[2] Boot 系统
[3] 中断Boot 流程,进入 Boot_admin> 提示下
[4] Boot_admin> bo 8/16.0.0 (8/16.0.0: 磁带机的 hardware path )
[5] 不选取 " non-interactive "
[6] 选取
a. [ Install HP-UX ]
b. [ Advanced Installation ]
c. 配置或改变如下选项:
disks, file systems,
hostname, IP ddress,
timezone, root password,
DNS server, and gateway
[7] 选取 [install continue… ],直到系统恢复完毕
[1] 在磁带机中,插入系统恢复带
#mt -t /dev/rmt/0mn fsf 1
#tar -xvf /dev/rmt/0m filename (filename为需要恢复的文件名)
# tar -xvf /dev/rmt/0m etc/hosts (恢复文件时,如果需要放在原来的位置,则需要在根目录执行恢复)
# tar -xvf /dev/rmt/0m u01/app/oracle/oradata (恢复oradata目录下的所有文件)
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21282/viewspace-1033737/ ,如需转载,请注明出处,否则将追究法律责任。