How to create rootdg mirror boot disk Integrity

Jump to: navigation, search

How do I create a rootdg mirrored boot disk on Itanium systems ?

  • Note: Steps MUST be executed in sequential 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. The disk device name for this process.

-Example /dev/dsk/c3t2d0 (Controller instance 3, SCSI ID 2, Lun 0)

B) 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:

HPUX 100%

The 4 line entry for 11.23 should look like this:

HPUX 100%

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

# idisk -wf /tmp/partitionfile /dev/rdsk/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 files (cXtXdXs1, cXtXdX2 and cXtXdXs3)

# insf -e

4. Use mkboot to format and populate the newly created EFI partition (This command is done to the whole disk path).

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

5. Use vxdctl to have VxVM see the new cXtXdXs2 disk:

# vxdctl enable

6. Use vxdisk to confirm that the new disk can be seen by vxvm and that it is "online invalid":

# vxdisk list

7. Use vxrootmir to mirror the root disk. Make sure to use the -v option since mirroring volumes takes a long time (The path must be to sub-partition s2):

# /etc/vx/bin/vxrootmir -v cXtXdXs2
  • Note: With the full version of "VERITAS Volume Manager", you will be able to mirror all non-root volumes on rootdg.
# vxassist -g rootdg mirror VOL_NAME

8. Use vxprint to verify that all volumes are mirrored (All vols should have 2 plexes and state ACTIVE):

# vxprint -g rootdg -vp

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)/
IA64_EFI [Acpi(HWP0002,100)/Pci(1|1)/

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.


11. Manually boot the system using each boot option.

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

# setboot (Verify that both disks are in the bootpath)
# vxprint -g rootdg -pv

All vols should have 2 plexes and state ACTIVE