免费注册 查看新帖 |

Chinaunix

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

請問誰有做系統盤mirror的步聚? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-04 08:00 |只看该作者 |倒序浏览
幫忙一下,謝謝.

论坛徽章:
0
2 [报告]
发表于 2003-03-04 09:09 |只看该作者

請問誰有做系統盤mirror的步聚?

pvcreate -B /dev/rdsk/c2t2d0
vgextend /dev/vg00 /dev/dsk/c2t2d0
mkboot -l /dev/rdsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t2d0

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

注意:c2t2d0只是我举的例子!

论坛徽章:
0
3 [报告]
发表于 2003-03-04 09:11 |只看该作者

請問誰有做系統盤mirror的步聚?

Solution

The following is the step by step instructions for mirroring
both the root volume group and non-root logical volumes.
This information can also be found in the HP-UX System
Administration Tasks Manual.

Determine and record the hardware address of the disk that
will become the mirror disk with the command:

     ioscan -fnC disk

In this example, the disk to be used as the mirror will
be /dev/dsk/c1t0d0. Please reference the manpage for each command
used below for a better explanation of the commands.

Mirroring the root volume group:

     1) swlist -l bundle

        This will display MirrorDisk/UX if installed on the
        system. If MirrorDisk/UX isn't found, then
        it will need to be loaded. This product **is not**
        part of the standard Core-OS. It must be purchased -
        contact your local HP Sales Office for more information.

     2) pvcreate -B /dev/rdsk/c1t0d0

        The -B option is used to create a bootable
        Physical Volume.

     3) mkboot /dev/rdsk/c1t0d0

        Make sure to use the character device file
        when using mkboot.

     4) mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c1t0d0

     5) vgextend /dev/vg00 /dev/dsk/c1t0d0

        This adds the Physical Volume to the root volume group

     6) lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

        This command extends the mirror to the specified
        Physical Volume.

        *NOTE: The lvextend command has to be done on all
        logical volumes on the primary disk. This means that
        lvextend has to be done on lvol1 ->; lvolX. This also
        includes /dev/vg00/lvol2, which by default is primary swap.
        lvol1 must be the first logical volume mirrored; if it is
        not, then you will not be able to boot from the mirror.

     7) lvlnboot -r /dev/vg00/lvol3

        Specifies the root logical volume.

        * Note: The root logical volume is /dev/vg00/lvol1
        for HP-UX 10.01 & 10.10, and /dev/vg00/lvol3
        (as in this example) is the root logical volume in 10.20.

      lvlnboot -s /dev/vg00/lvol2

        Specifies the swap logical volume

        To determine where the swap logical volume is located
        use the swapinfo command.

     9) lvlnboot -d /dev/vg00/lvol2

        Specifies the dump logical volume

     10) lvlnboot -b /dev/vg00/lvol1

         Specifies the boot logical volume (for 10.20 only)

     11) lvlnboot -R

         Recovers any BDRA info

     12) lvlnboot -v

         Verify boot, root, swap and dump settings.

     13) setboot

         This will display the Primary and Alternate
         boot paths that are currently set.

     14) setboot -a mirror_disk_hardware_address

         Changes the Alternate Boot Path to the
         path of the Root Mirror.

     15) shutdown -r now

         Shut down the system and boot from the mirror disk.

         The system will shut down and reboot, as the system starts to
         come back up, look for the message (system's output may vary):

         TO INTERRUPT THE BOOT SEQUENCE, PRESS AND HOLD ESCAPE (MODEL 700)
         TO INTERRUPT THE BOOT SEQUENCE, PRESS ANY KEY (MODEL 800)

         This will display the Boot Admin display.
         At the boot_admin>; prompt type: bo Mirror_disk_hardware_address
         For example  ->; bo 4/8.10.0 On some systems, "bo alt" will work
         if the alternate boot device is configured.

         The system will prompt to interact with IPL, answer "no", and
         the system will boot from the mirror root disk.

Mirroring on non-root logical volumes:

      Reference the above steps to determine if MirrorDisk/UX
      is installed before continuing. For this example, /dev/vg01
      will be the volume group and /dev/dsk/c0t5d0 will be the mirror
      disk.

     1) pvcreate /dev/rdsk/c0t5d0

     2) vgextend /dev/vg01 /dev/dsk/c0t5d0

     3) lvextend -m 1 /dev/vg01/lvol1  /dev/dsk/c0t5d0

     4) lvextend -m 1 /dev/vg01/lvol2  /dev/dsk/c0t5d0

     Continue for the remaining logical volumes...

论坛徽章:
0
4 [报告]
发表于 2003-03-04 09:41 |只看该作者

請問誰有做系統盤mirror的步聚?

谢谢&up
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP