Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2583525
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: 系统运维

2009-04-08 10:53:59

说明:
假设当前系统有两个逻辑分区LPAR01和LPAR02,LPAR01上已经安装了AIX,并且包含一个硬盘(hdisk0),另外一个硬盘分配给了LPAR02,
现在需要把LPAR02的硬盘临时分配给lPAR01,来克隆rootvg.
1. 在LPAR01上执行lspv察看硬盘信息
#lspv
hdisk0 000030029158b447 rootvg
hdisk1 00003002490a45b7 None
并且确认安装了alternate disk install文件集:
– bos.alt_disk_install.boot_images
– bos.alt_disk_install.rte
– bos.msg.en_US.alt_disk_install.rte
2. 运行alt_disk_install从hdisk0上克隆rootvg到hdisk1
#alt_disk_install -C -O hdisk1
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_hd10opt.
Creating /alt_inst/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.
Resetting all device attributes.
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
forced unmount of /alt_inst
Changing logical volume names in volume group descriptor area.
Fixing LV control blocks...
Fixing file system superblocks...
alt_disk_install执行完后,察看运行结果:
#lpsv
hdisk0 000030029158b447 rootvg
hdisk1 00003002490a45b7 altinst_rootvg
3. 激活(varyonvg)altinst_rootvg,并且为LPAR02修改系统配置信息,如/etc/resolv.conf文件等。
#alt_disk_install -W hdisk1
altinst_rootvg上的所有文件系统被mount到目录/alt_inst,如/alt_inst/etc/resolv.conf.
4.修改完后,停止altinst_rootvg
#alt_disk_install -S
5. 删除LPAP01上ODM中有关alt_disk_install的信息(不要执行exportvg altinst_rootvg)
#alt_disk_install -X
Bootlist is set to the boot disk:hdisk0
6.从ODM库删除hdisk1的信息
#rmdev -l hdisk1 -d
7.Shutdown LPAR01
#shutdown -F now
8. 把第二块硬盘重新分配给LPAR02,并写激活从硬盘引导
9. 在LPAR02上配置系统信息,如TCP/IP相关的设置,IP地址,主机名...等,并且修改RMC的配置:
#/usr/sbin/rsct/install/bin/recfgct
If the source partition is installed with 5100-03 Recommended Maintenance
10.重新引导LPAR01
 
--个人感觉如果机器多的话,NIM安装是最高效的。这篇文章主要展现了alt_disk_install命令的使用。
阅读(2055) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~