Go Premium for a chance to win a PS4. Enter to Win

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 434
  • Last Modified:

HP-UX Mirrors

I have a mirrored root volume and the original disk has broken.  Anyone know how to boot from the mirror, and then create a new mirror???
  • 3
1 Solution

Extracts from:

*** indicates my comments

1) Check that the boot structures are on both disks, with # lvlnboot -v
Both disks must have Boot, Root & Swap structures on them (Not just the
filesystems), or the system won't boot from the mirror.

*** If not, we need to do this BEFORE we reboot!

2) Make sure that your primary boot path is the primary boot disk and the
secondary boot path is your bootable mirrored disk.  Make sure autosearch and
autoboot are on.  The command setboot can check and change these settings.  For
the above example, the following is correct:  
# setboot Primary bootpath :
56/52.6.0 Alternate bootpath :  56/52.4.0

Autoboot is ON (enabled) Autosearch is ON (enabled)

If this is not set correctly, then your system will not look to boot from the
mirror if the primary is not available.

*** You can still interact with the boot process to use an alternate if this is not already set up.

3) Check to make sure that the autoboot string disables the quorum checking.  In
order to activate a Volume Group, LVM requires that MORE than HALF of the disks
be available.  In the case of a 2 disk vg00 that would mean that BOTH need to be
available to activate vg00.  This means that if EITHER your primary disk or your
mirror crashes, then the system will not be able to activate vg00 at boot time.
This means that your system will not come up.  You will have to interrupt the
boot sequence and override the quorum checking in order to bring the system up.
To get around this you can use the mkboot with the -a option to set the autoboot
string to disable quorum checking by default.  You must have this set up
properly on both disks.  For the above example this would be the correct format:
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t6d0
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t4d0

NOTE:  It is the -lq parameter passed to the hpux kernel loader that disables
the quorum checking.

*** Assuming all these are OK, your system will boot from the mirror copy

*** Everything that follows is my own view and is untested; I will try to verify
this process or find a definitive procedure.

When you have a replacement disk, shut the system down, replace the disk and
boot from the mirror. Restore the LVM structures onto the disk with, for example
# vgcfgrestore -v /dev/vg00 /dev/rdsk/c1t6d0

Make this disk bootable with:
mkboot /dev/dsk/c1t6d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t6d0
lvlnboot -R

Bring the replaced disk back into quorum with
vgchange -a y /dev/vg00, which will start re-syncing the filesystems.

gpunkAuthor Commented:
This question has a deletion request Pending
This question no longer is pending deletion
See comment trail:

I put a lot of work into pulling this info together as I thought you had a major problem. At least let us know why you are ignoring this advice and deleting the question!


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now