免费注册 查看新帖 |

Chinaunix

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

HPUX11.23如何做镜像 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-16 14:12 |只看该作者 |倒序浏览
Assume that the primary disk is at c2t0d0 and secondary disk is at c2t1d0.

1. Use vi to create a partition description file by doing the following:

   # vi /tmp/partitionfile

    For HPUX < 11.23 the 3 line entry should look like this:

    2
    EFI 100MB
    HPUX 100%

    For HPUX 11.23 or later the 4 lines should look like this:

    3
    EFI 500MB
    HPUX 100%
    HPSP 400MB

2. Use idisk to setup the disk partitioning using the file created above:

   # idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0

3. Use insf to create the new device dfiles (c2t1d0s1 and c2t1d0s2)

   # insf -e

4. pvcreate the new subpartition - make sure specify s2 !

   # pvcreate -B /dev/rdsk/c2t1d0s2

5. Use mkboot to format and populate the newly created EFI partition:

   # mkboot -e -l /dev/dsk/c2t1d0

6. Extend vg to include new disk sub-partition s2.

   # vgextend /dev/vg00 /dev/dsk/c2t1d0s2

7. extend lvols to new sub-partition on the disk

   # lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0s2
       .... lvextend -m 1 (additional LV)...

8. update lvol boot paths

   # lvlnboot -r /dev/vg00/lvol3 /dev/vg00
   # lvlnboot -b /dev/vg00/lvol1 /dev/vg00
   # lvlnboot -s /dev/vg00/lvol2 /dev/vg00
   # lvlnboot -d /dev/vg00/lvol2 /dev/vg00

9. Use efi_ls to confirm that the EFI partition is present and populated on the new disk:

   # efi_ls -d /dev/rdsk/c2t1d0s1

10. edit the AUTO file so we can boot when one disk is missing:

   # efi_cp -d /dev/rdsk/c2t0d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO

   # vi /tmp/AUTO
    modify "boot vmunix" to "boot vmunix -lq"

then put back the file on both EFI partitions with:

   # efi_cp -d /dev/rdsk/c2t1d0s1 /tmp/AUTO /EFI/HPUX/AUTO

   # efi_cp -d /dev/rdsk/c2t0d0s1 /tmp/AUTO /EFI/HPUX/AUTO

11.  Reboot and add the new mirrored disk to the EFI-Bootmenu.

12.  Test booting from each drive.

论坛徽章:
0
2 [报告]
发表于 2007-03-16 16:19 |只看该作者
lvlnboot -R

论坛徽章:
0
3 [报告]
发表于 2007-03-19 00:10 |只看该作者

不错,还没有做过11.23的

收下,等有机会试验.

论坛徽章:
0
4 [报告]
发表于 2008-07-28 16:41 |只看该作者
很好,学习了~~

论坛徽章:
0
5 [报告]
发表于 2008-07-28 22:08 |只看该作者
这是安腾主机使用的,pa上是用不了的!LZ也不给大家说明白了。

论坛徽章:
0
6 [报告]
发表于 2008-08-05 21:56 |只看该作者
安腾主机,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP