免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3266 | 回复: 0
打印 上一主题 下一主题

使用alt_disk_install命令快速完成多台服务器环境的部署 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-20 21:09 |只看该作者 |倒序浏览
在拥有多台PSeries服务器的环境下,多台服务器/分区环境要求一致,但是需要快速部署时,一台一台地安装或者用mksysb/restore的方式显然是费时费力。此时,alt_disk_install可以说是较适合的AIX工具了。\r\n\r\n说明:\r\n下面通过一个简单的实例来说明在AIX 5L下怎么使用alt_disk_install命令来完成快速部署:\r\n\r\n# lspv\r\nhdisk0 005d25cf9d6b63a8 rootvg active\r\nhdisk11 005d25cf9d57fae8 None \r\nhdisk12 005d25cf76b5e519 None \r\n\r\n# alt_disk_install -C -O hdisk11 (也可以通过smitty alt_clone 菜单, 来将rootvg 克隆到备份磁盘)\r\nCalling mkszfile to create new /image.data file.\r\nChecking disk sizes.\r\nCreating cloned rootvg volume group and associated logical volumes.\r\nCreating logical volume alt_hd5\r\nCreating logical volume alt_hd6\r\nCreating logical volume alt_hd8\r\nCreating logical volume alt_hd4\r\nCreating logical volume alt_hd2\r\nCreating logical volume alt_hd9var\r\nCreating logical volume alt_hd3\r\nCreating logical volume alt_hd1\r\nCreating logical volume alt_hd10opt\r\nCreating logical volume alt_fwdump\r\n\r\nCreating /alt_inst/ file system.\r\nCreating /alt_inst/home file system.\r\nCreating /alt_inst/opt file system.\r\nCreating /alt_inst/tmp file system.\r\nCreating /alt_inst/usr file system.\r\nCreating /alt_inst/var file system.\r\nCreating /alt_inst/var/adm/ras/platform file system.\r\nGenerating a list of files\r\nfor backup and restore into the alternate file system...\r\nBacking-up the rootvg files and restoring them to the \r\nalternate file system...\r\nModifying ODM on cloned disk.\r\nBuilding boot image on cloned disk.\r\nResetting all device attributes.\r\nNOTE: The first boot from altinst_rootvg will prompt to define the new system console.\r\nforced unmount of /alt_inst/var/adm/ras/platform\r\nforced unmount of /alt_inst/var\r\nforced unmount of /alt_inst/usr\r\nforced unmount of /alt_inst/tmp\r\nforced unmount of /alt_inst/opt\r\nforced unmount of /alt_inst/home\r\nforced unmount of /alt_inst\r\nforced unmount of /alt_inst\r\nChanging logical volume names in volume group descriptor area.\r\nFixing LV control blocks...\r\nFixing file system superblocks...\r\nBootlist is set to the boot disk: hdisk11\r\n\r\n此时如果再查看一下pv的信息,可以看到系统已经认出hdisk11是一个altinst_rootvg了。\r\n# lspv\r\nhdisk0 005d25cf9d6b63a8 rootvg active\r\nhdisk11 005d25cf9d57fae8 altinst_rootvg \r\nhdisk12 005d25cf76b5e519 None \r\n\r\n由于我们最终需要的是要将hdisk11盘作为其他机器的rootVG来引导系统,所以需要将这个\r\n从系统中剔除。需要用到下面的命令:\r\n\r\n# alt_disk_install –X\r\nBootlist is set to the boot disk: hdisk0\r\n-X的参数:从 ODM 数据库中除去 altinst_rootvg 卷组定义。这将返回卷的lspv列表的值“None”。 \r\n\r\n在执行完上面的命令后,再查看pv的状态可以看到,系统的ODM库中已经没有hdisk11是altinst_rootvg\r\n记录了…\r\n# lspv\r\nhdisk0 005d25cf9d6b63a8 rootvg active\r\nhdisk11 005d25cf9d57fae8 None \r\nhdisk12 005d25cf76b5e519 None \r\n\r\n然后可以删除掉hdisk11在系统中的定义:\r\n# rmdev -dl hdisk11\r\nhdisk11 deleted\r\n\r\n之后可以在diag菜单里完成hdisk的断电工作之后,可以把物理硬盘hdisk11拔下来,放到新的机器/分区中来引导系统,并重复上述操作…\r\n\r\n注:最好在做alt_disk_install之前能做好版本升级、补丁安装以及必要的应用程序安装的工作,这样在克隆之后也可以避免一个一个地安装升级。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP