Chinaunix

标题: HP RX系列主机镜像实施步骤4 [打印本页]

作者: jxntcxm    时间: 2007-04-09 09:57
标题: HP RX系列主机镜像实施步骤4

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




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2