搜索
您的当前位置:首页正文

AIX系统克隆步骤

来源:知库网
AIX硬盘克隆

AIX rootvg的镜像备份

在克隆过程中,系统需完成如下工作:

1.基于当前系统rootvg中内容,产生/image.data 文件. 2.使用系统中未被占用的硬盘, 创建altinst_rootvg卷组 3.创建前缀为alt_inst的逻辑卷和文件系统

4.以当前rootvg为蓝本,生成备份文件列表, 不包含在exclude.list中的文件 5.将所有文件拷到altinst_rootvg的文件系统上

6.如果指定的话,使用installp 命令在新的系统中安装系统的更新软件或新的软件包 7.使用bosboot命令在altinst_rootvg上创建引导逻辑卷 8.若有指定,执行用户的脚本程序

9.卸载文件系统, 修改altinst_rootvg上逻辑卷和文件系统的命名 10. 将引导列表改成从替换硬盘上引导. 需要bos.alt_disk_install.rte这个软件包

这种方法克隆的盘,可以拿到不同硬件配置的机器上去用,用它进行引导时,会删除ODM库里的所有信息,重新配置所有设备信息,相当于使用克隆盘重新安装新的系统一样。

alt_disk_install -OCB hdisk1

如果你是相同硬件配置的机器,则可以运行下列命令克隆而保持所有设备信息: ---------------------------------------------------------------- 1、

# lspv

hdisk0 002074481b340f84 None hdisk1 002074484424da16 rootvg # alt_disk_install -OCB hdisk0

Calling mkszfile to create new /image.data file. Checking disk sizes.

Creating cloned rootvg volume group and associated logical volumes. Creating logical volume alt_hd5. Creating logical volume alt_hd6. Creating logical volume alt_hd8. Creating logical volume alt_hd4. Creating logical volume alt_hd2. Creating logical volume alt_hd9var. Creating logical volume alt_hd3. Creating logical volume alt_hd1. Creating logical volume alt_hd10opt. Creating /alt_inst/ file system. Creating /alt_inst/home file system. Creating /alt_inst/opt file system. Creating /alt_inst/tmp file system. Creating /alt_inst/usr file system. Creating /alt_inst/var file system.

Generating a list of files

for backup and restore into the alternate file system...

Backing-up the rootvg files and restoring them to the alternate file system... Modifying ODM on cloned disk. Building boot image on cloned disk forced unmount of /alt_inst/var forced unmount of /alt_inst/usr forced unmount of /alt_inst/tmp forced unmount of /alt_inst/opt forced unmount of /alt_inst/home forced unmount of /alt_inst forced unmount of /alt_inst

Changing logical volume names in volume group descriptor area. Fixing LV control blocks... Fixing file system superblocks... # lspv

hdisk0 002074481b340f84 ootvg

hdisk1 002074484424da16 # alt_disk_install –X altinst_rootvg 这个命令完成清掉hdisk0上的altinst_rootvg #rmdev –Rdl hdisk0 ……删除hdisk1

altinst_rrootvg #lspv

hdisk1 002074484424da16 rootvg

将hdisk0直接拔下来,放到你要安装的另一台机器上,开机--进入SMS菜单—选择boot 顺序—选择系统安装项—选择show all bootlist—选择aix系统启动—选择normal 之后等其自动安装完成。

在刚hdisk0的位置放入一个新的硬盘,用cfgmgr –v 刷新设备。 之后可以用lspv 在二台机器上查看是否安装完成了。

请注意,

1、DLPAR问题:DLPAR需要SRCT进程的交互,RSCT要求DLPAR的每个分区都是有一个唯一的ID,克隆的机器必须运行/usr/sbin/rsct/install/bin/recfgct才可以解决该问题。

2、HACMP问题:其实是hacmp的clvm问题。clvm同样也需要机器有一个唯一的合法的ID,克隆后的机器要么重新安装cluster.es.clvm.rte,要么手工重新生成该ID。

3、AIO问题:克隆后AIO也需要重新enable一下。AIO不enable,有些数据库软件安装使用会有问题。运行smitty chaio命令修改。

因篇幅问题不能全部显示,请点此查看更多更全内容

Top