module 2 System Recovery with Ignite-UX
make_tape_recovery
Restore a non-bootable system with little or no intervention
Restore a system in the event of a root disk(volume group )failure
Convert file systems in the root volume from hfs to vxfs(logical volumes)
Modify the root file system size(logical volume)
Modify the size of primary swap(logical volume)
Clone software from one system to another
MILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">备份Tape上的内容
Boot/Configuration Files | Archive |
lANT: normal" roman??="" new="" times=""> Boot files ISL HPUX AUTO LIF区 l System Configuration Hostname ip disk layout l Ignite-UX kernel/UI
| You Control the contents of archive l Minimum core system l Entire root volume group l Additional files/volume groups |
Make_tape_recovery 是Ignite-UX组件中的命令,Ignite-UX在下列网址
http://www.software.hp.com/products/IUX
不加参数的make_tape_recovery做最小os的磁带,其中内容在/opt/ignite/recovery/mnr_essentials中定义,如要想要加入自己的内容,只作一个备份放入/var/opt/ignite/recovery/mnr_essentials,然后编辑其中的内容,make_tape_recovery总是先检查/var目录中的这个文件,依据此文件来进行创建磁带。创建磁带时,/var目录要有32M的磁盘空间,如果没有,可以在创建磁带时通过-B参数指定目录。
Make_tape_recovery –x inc_entire=vg00可以创建包含vg00的全备份
Make_tape_recovery –A创建整个文件系统,包括在其他VG上的文件系统。
l Files/Directories
-x include=
-x inc_cross=
-x exclude=
l Disks/Volume Groups
-x inc_entire=
l Use a contents file
-f
l Archive all volume groups that contain essential files
Make_tape_recovery –A
例子
make_tape_recovery –x inc_entire=vg00 –x inc_entire=vg01 –x exclude=/tmp
make_tape_recovery的说明
LVM disk mirrors 不能够恢复,需要重新手工mirror
可以参考文档/opt/ignite/share/doc/diskmirror.pdf
VxVM磁盘组不包含在archive中,当恢复完成后,需要重新集成到系统中来
验证recovery tape
/var/opt/ignite/recovery/
列出磁带上的内容
# mt –t /dev/rmt/0mn fsf 1
# tar tvf /dev/rmt/0m
/var/opt/ignite/recovery/latest/flist 可能归档备份到磁带上的内容
启动recovery tape
l power up the system (or
l interrupt the boot
l load the recovery tape
l search for bootable devices (Main Menu> sea ipl)
l boot from the recovery tape
l Automatic or interactive restore
make.net_recovery
网络备份可以使用2种方法
1. 从服务器端发起
add new client for recovery
create system recovery archive
select files for the client archive
monitoring creation of client archive (client status from action pulldown menu)
2. 从客户端发起
make_net_recovery –s IUX_server_name –x inc_entire=vg00 –x inc_entire=vg01 \
-x exclude=/depots
上面IUX_server_name指定恢复服务器
这个工作可以用cron自动调度来执行
从客户端启动的方法
PDC下
Bo lan.IP_Address_of_Ignite_server install
Don’t interact with IPL
Select [Install HP-UX], Select “Advanced Installation”
Fill in the appropriate networking information
Select the recovery configuration for your client
文章来源于领测软件测试网 https://www.ltesting.net/