Solved

HP-UX Mirrors

Posted on 2000-03-07
4
408 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 21

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 21

Expert Comment

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…

680 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