Solved

HP-UX Mirrors

Posted on 2000-03-07
4
396 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
Comment Utility


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
Comment Utility
This question has a deletion request Pending
0
 
LVL 20

Expert Comment

by:tfewster
Comment Utility
This question no longer is pending deletion
0
 
LVL 20

Accepted Solution

by:
tfewster earned 200 total points
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

772 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

11 Experts available now in Live!

Get 1:1 Help Now