Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HP-UX Mirrors

Posted on 2000-03-07
4
Medium Priority
?
428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

722 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