二维码

对HP安腾机器的系统根盘做镜象

1747 人阅读 | 时间:2019年10月09日 16:03

HP安腾机器的系统根盘做镜象

(11.31)

1. From HPUX, use vgdisplay to identify the disk that is in vg00. Use ioscan to

find the spare disk.

   # vgdisplay -v --> vg00 is on /dev/disk/disk3 in this example

   # ioscan -efunC disk --> Let's assume disk3 for this example

2. Create the system, OS, and service partitions.

   # vi /tmp/partitionfile

     3

     EFI 500MB

     HPUX 100%

     HPSP 400MB

   # idisk -wf /tmp/partitionfile /dev/rdisk/disk3

idisk version: 1.31

********************** WARNING ***********************

If you continue you may destroy all data on this disk.

Do you wish to continue(yes/no)? yes  <-- Answer "yes" and not "y"

3. Create device files needed for the new partitions.

   # insf -eC disk

4. Verify the partition table.

   # idisk /dev/rdisk/disk3

5. Verify that the device files were created properly.

   # ioscan -efnNC disk --> disk3 is 0/1/1/1.2.0

6. Populate the /efi/hpux/ directory in the new EFI system partition.

   # mkboot -e -l /dev/rdisk/disk3

7. Change the auto file for the mirror to boot without quorum.

   NOTE: Using "s1"

   # echo "boot vmunix -lq" > /tmp/AUTO.lq

   # efi_cp -d /dev/rdisk/disk14_p1 /tmp/AUTO.lq /EFI/HPUX/AUTO

# efi_cp -d /dev/rdisk/disk4_p1 /tmp/AUTO.lq /EFI/HPUX/AUTO

NOTE: We assume that if we boot from the primary, the mirror is fully

functional and therefore we don't need to override quorum. Your site might

require that both disks override quorum.

9. Verify the contents of the auto file on the primary and the mirror.

   NOTE: Using "s1"

   # efi_cp -d /dev/rdisk/disk4_p1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri

   # efi_cp -d /dev/rdisk/disk3_p1 -u /EFI/HPUX/AUTO /tmp/AUTO.alt

   # cat /tmp/AUTO.pri

   # cat /tmp/AUTO.alt

10. Add the new partition to vg00.

    NOTE: Using "p2"

   # pvcreate -fB /dev/rdisk/disk3_p2

   # vgextend vg00 /dev/disk/disk3_p2

11. Mirror all logical volumes in vg00.

NOTE: Using "p2"

for i  in $(ls -1 /dev/vg00/lvol?)

do

lvextend –m 1 $i

done

   # lvextend -m 1 /dev/vg00/lvol1 /dev/disk/disk3_p2

   # lvextend -m 1 /dev/vg00/lvol2 /dev/disk/disk3_p2

   # lvextend -m 1 /dev/vg00/lvol3 /dev/disk/disk3_p2

   .

   .

   .

   # lvextend -m 1 /dev/vg00/lvol8 /dev/disk/disk3_p2

12. Add the new disk to /stand/bootconf.

    NOTE: Using "p2"

    # vi /stand/bootconf

    l /dev/disk/disk4_p2

    l /dev/disk/disk3_p2

13. Verify that the new disk was added to vg00, and the lv's are in sync.

    # vgdisplay -v vg00

14. Verify that the BDRA was updated properly. Take note of the HW paths for

    step 15.

# lvlnboot –v

#lvlnboot –R /dev/vg00

15. Add EFI primary and high availability boot path menu entries.

    # setboot -p 0/1/1/0.1.0 <-- Set primary disk

    # setboot -h 0/1/1/1.2.0 <-- Set mirror disk

    # setboot -b on <-- Set autoboot on

16. Verify that the primary and mirror boot paths are configured properly.

    # setboot

17. Test the new mirror by booting off of it.

    # shutdown -r -y 0

18. Select "HP-UX HA Alternate Boot" to test the mirror.

    EFI Boot Manager ver 1.10 [14.61]  Firmware ver 2.21 [4334]

    Please select a boot option

         HP-UX Primary Boot: 0/1/1/0.1.0

         HP-UX HA Alternate Boot: 0/1/1/1.2.0

         EFI Shell [Built-in]

20. Verify which disk/kernel you booted from.

    # grep "Boot device" /var/adm/syslog/syslog.log

       vmunix: Boot device's HP-UX HW path is: 0.1.1.1.2.0

21. Remove temporary files.

    # rm /tmp/partitionfile /tmp/AUTO*

Done.

HP ONLY

For 11.22 -> there is no HPSP partition and the

setboot command does NOT add boot options to the

EFI menu, see KBRC00011156 step D) to add boot options

under 11.22

ALT KEYWORDS

setboot B.11.23 alternate mirror efi ipf ipf2 ia64

/////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////

KBRC00011156              

How to mirror root LVM disks on Itanium.

Document Information Table

How to mirror root LVM disks on Itanium. DocId: KBRC00011156   Updated: 2/16/04 7:31:00 AM

PROBLEM

How to mirror root LVM disks on Itanium.

CONFIGURATION

HP Itanium Servers and Workstations running HP-UX 11.22 / 11.23

RESOLUTION

==========================================================================

NOTE: These steps MUST be executed in this order.

==========================================================================

A)  The first step is to determine which drive is the new drive.  Use

    "ioscan -fnC disk" command or obtain help from an HP Hardware

    Engineer (HP-CE) or HP's Response Center.  You need the disk

    device name for this process.

      -Example /dev/disk/disk3 (Controller instance 3, SCSI ID 2, Lun 0)

B) Setup the mirror root disk.  Partition the new disk and populate.

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

      # vi /tmp/partitionfile

    The 3 line entry for 11.22 should look like this:

       2

       EFI 100MB

       HPUX 100%

    The 4 line entry for 11.23 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/rdisk/cXtXdX

    NOTE:  There will be a prompt with a message saying the operation may be

    destructive and asks to continue.  Be sure to answer 'yes' for the

    operation to be successful.  If the prompt is answered with 'y' only,

    an error is received along with a message saying "user aborting".

    3. Use insf to create the new device dfiles (cXtXdXs1, cXtXdX2 and cXtXdXs3)

       # insf -e

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

       # pvcreate -B /dev/rdisk/cXtXdXs2

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

       # mkboot -e -l /dev/disk/cXtXdX

C) Use standard LVM commands to create the mirror information.  Be careful

   to specify the s2 device file (cXtXdXs2) when performing LVM commands.

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

       # vgextend /dev/vg00 /dev/disk/disk3_p2

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

       # lvextend -m 1 /dev/vg00/lvol1 /dev/disk/cXtXdXs2

       # lvextend -m 1 /dev/vg00/lvol2 /dev/disk/cXtXdXs2

            ***  Run lvextend command for each lvol in vg00 ***

    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

       # lvlnboot -v       (to verify both disks are setup as bootable)

       # vgdisplay -v vg00 (Each LV should be "SYNCd" and "Used PV = 2")

D) Create a new EFI boot option.

    9.  Reboot and select the EFI "Boot Option Maint menu" --> "Add a

        boot Option", then select the correct disk.  Select "EFI" -->

        "HPUX" --> "HPUX.efi". Then name the entry to either

        "HP-UX Primary boot" or "HP-UX alternate boot".

      Selecting the mirror disk. Example,

       (Pun1,Lun0) represents SCSI target 1, Lun 0 (cXt1d0):

       (Pun2,Lun0) represents SCSI target 2, Lun 0 (cXt2d0):

      ---------------------------------------------------------------

      EFI Boot Maintenance Manager ver 1.10 [14.61]

      Add a Boot Option.  Select a Volume

          IA64_EFI [Acpi(HWP0002,100)/Pci(1|0)/

                                  Scsi(Pun1,Lun0)/HD(Part1,SigB45A0000)

          IA64_EFI [Acpi(HWP0002,100)/Pci(1|1)/

                                  Scsi(Pun2,Lun0)/HD(Part1,Sig958B0000)

    10.  If required  select "Change boot order" to manage the boot

         order.  For example, "HP-UX Primary boot" should be on the

         top, followed by the "HP-UX alternate boot" boot option.

E) VERIFY YOUR WORK!!!

    11.  Manually boot the system using each boot option.

    12. Run the following command after booting HP-UX.

        # lvlnboot -v       (to verify both disks are setup as bootable)

        # vgdisplay -v vg00 (Each LV should be "SYNCd" and "Used PV = 2")

Additional Information:

  man 1M idisk

  man 1M pvcreate

  man 1M mkboot

  man 1M vgcfgrestore

  KBRC00014036,     Replace failed root & non-root LVM disks On Itanium.

  IA64KBRC00012172, Managing boot options from EFI shell.

  IA64KBRC00012173, How to Mirror VxVM rootdg on Itanium

  IA64KBRC00012174, How to add an EFI boot menu entry using menus

  IA64KBRC00012175, How to change disk volume labels from EFI.

HP ONLY

NOTE:  There is a known issue with mkboot possibly corrupting

the boot disk on Itanium systems.  The customer may receive the

error:

        No root vol information found in LABEL file

The kernel will also fail to load.  Please reference the

following documents:

[8606317453/STARS-ACTIVE/English]

[8606296878/STARS-ACTIVE/English]

[4000052963/ESS-ACTIVE/English]

2200515799


©著作权归作者所有:来自ZhiKuGroup博客作者没文化的原创作品,如需转载,请注明出处,否则将追究法律责任 来源:ZhiKuGroup博客,欢迎分享。

评论专区
  • 昵 称必填
  • 邮 箱选填
  • 网 址选填
◎已有 0 人评论
搜索
作者介绍
30天热门
×
×
本站会员尊享VIP特权,现在就加入我们吧!登录注册×
»
会员登录
新用户注册
×
会员注册
已有账号登录
×