Solved

HP-UX Mirrors

Posted on 2000-03-07
4
398 Views
Last Modified: 2013-12-16
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???
0
Comment
Question by:gpunk
  • 3
4 Comments
 
LVL 20

Expert Comment

by:tfewster
ID: 2596076


Extracts from:
http://partners1.americas.hp.com/forums/hpux.nsf/6a5a6ca60e6a9d81802567c3005857ed/28bb3f9f4943c2f68825681e0068cab2?OpenDocument

*** 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.


0
 

Author Comment

by:gpunk
ID: 2596619
This question has a deletion request Pending
0
 
LVL 20

Expert Comment

by:tfewster
ID: 2596745
This question no longer is pending deletion
0
 
LVL 20

Accepted Solution

by:
tfewster earned 200 total points
ID: 2596746
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!

Tim
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now