分类: AIX
2015-05-20 14:46:22
IBM P550小型机
192.168.1.205
AIX6.1
# oslevel -s
6100-01-01-0823
2块,146GB
(1)重启设备
(2)进入SMS(按1)
(3)选择安装和引导设备(选择console口配置)
(4)使用光驱作为引导设备(normal正常启动)
(5)开始安装(按1设置当前终端为主控制台)
(6)等待安装完成
(7)配置网络地址,修改cosole口设置(保证HMC可以登陆终端),配置root密码
umirror rootvg
reducevg rootvg hdisk1
bootlist –m normai -o
# lspv
hdisk0 0041a97b0622ef7f rootvg active
hdisk1 00452f0b2b1ec84c None
确认这个磁盘目前没有分配给任何卷组
#
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.
…......
…......
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
…..
…..
Changing logical volume names in volume group descriptor area.
Fixing LV control blocks...
Fixing file system superblocks...
Bootlist is set to the boot disk: hdisk1
现在,有了一个克隆的 rootvg,它的名称是 altinst_rootvg。注意,前面的输出表明,alt_disk_copy 已经把引导列表改为从克隆的 rootvg(现在是 hdisk1)引导。
# lspv
hdisk0 0041a97b0622ef7f rootvg active
hdisk1 00452f0b2b1ec84c altinst_rootvg
可以通过执行 bootlist 命令确认这一点。
# bootlist -m normal -o
hdisk1 blv=hd5
bootlist -m normal –o hdsik0
System Model: IBM,8233-E8B
Machine Serial Number: 06A400R
Update Installed Software to Latest Level (Update All)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* INPUT device / directory for software .
* SOFTWARE to update _update_all
PREVIEW only? (update operation will NOT occur) no +
COMMIT software updates? yes +
SAVE replaced files? no +
AUTOMATICALLY install requisite software? yes +
EXTEND file systems if space needed? yes +
VERIFY install and check file sizes? no +
DETAILED output? no +
Process multiple volumes? yes +
ACCEPT new license agreements? yes +
Preview new LICENSE agreements? no +
Esc+1=Help Esc+2=Refresh Esc+3=Cancel Esc+4=List
Esc+5=Reset F6=Command F7=Edit F8=Image
Oslevel -s
6100-03-01-0921
原rootvg正常启动
克隆后的rootvg亦可正常启动
# alt_rootvg_op -X altinst_rootvg
# lspv
hdisk0 0041a97b0622ef7f rootvg active
hdisk1 00452f0b2b1ec84c altinst_rootvg
· rootvg:升级后有问题的拷贝。
· altinst_rootvg :升级前的正常拷贝。
把引导列表改为从 hdisk0 (old_rootvg) 引导并重新引导:
# bootlist -m normal -o hdisk0
# shutdown -Fr
重新引导(准备应用修复措施)之后,现在的 rootvg 磁盘如下:
# lspv
hdisk0 0041a97b0622ef7f rootvg active
hdisk1 00452f0b2b1ec84c altinst_rootvg
假设系统现在又可以正常操作了。
测试系统之后,令把 hdisk1 重新放回 rootvg 中:
#
alt_rootvg_op -X altinst_rootvg
Bootlist is set to the boot disk: hdisk0
# extendvg -f rootvg hdisk1
# mirrorvg rootvg hdisk1
bootlist -m normal -o hdisk0 hdisk1
hdisk0 blv=hd5
hdisk1
# bosboot -a
bosboot: Boot image is 35803 512 byte blocks.
# bootlist -m normal -o
hdisk0 blv=hd5
hdisk1 blv=hd5
# lspv
hdisk0 0041a97b0622ef7f rootvg active
hdisk1 00452f0b2b1ec84c rootvg active