免费注册 查看新帖 |

Chinaunix

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

HP RX系列主机镜像实施步骤4 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-09 09:57 |只看该作者 |倒序浏览

9、   在镜像磁盘上安装启动程序
#mkboot -e -l /dev/rdsk/c3t6d0        
&&把/usr/bin/efi下面的目录和文件拷贝到EFI区域,-l假设该盘为卷组内磁盘

10、 设置镜像盘的启动名称
        #echo "boot vmunix -1q" >/tmp/AUTO.1q
#efi_cp -d /dev/rdsk/c3t6d0s1 /tmp/AUTO.1q /EFI/HPUX/AUTO
&&Efi_cp命令用来在HP-UX和EFI文件系统之间拷贝文件。

11、 验证主启动区和镜像启动区的auto文件内容
        #efi_cp -d /dev/rdsk/c0t6d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri
#efi_cp -d /dev/rdsk/c3t6d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.alt
#cat /tmp/AUTO.pri
boot vmunix
#cat /tmp/AUTO.alt
boot vmunix -1q

12、镜像磁盘划入卷组
#pvcreate -fB /dev/rdsk/c3t6d0s2
Physical volume "/dev/rdsk/c3t6d0s2" has been successfully created.
#vgextend vg00 /dev/dsk/c3t6d0s2
Volume group "vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

13、扩展逻辑卷
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol2" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
          *(此处可以用脚本来扩展逻辑卷:)
          ([root:/]# for i in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8 lvol9
> do lvextend -m 1 /dev/vg00/$i /dev/dsk/c3t6d0s2
> done)



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/23575/showart_273724.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP