Operating System - HP-UX
1752577 Members
5019 Online
108788 Solutions
New Discussion юеВ

Replacing primary boot disk...

 
SOLVED
Go to solution

Replacing primary boot disk...

We have had a primary boot disk failure. We were able to boot system on mirrored root drive and have since replaced the bad primary root disk. What I would like to know is how to make the new disk the primary boot disk again getting the root file systems from the mirrored drives ?
Configuration:
HDWE: V2500
OS: HPUX 11.0
5 REPLIES 5
Cheryl Griffin
Honored Contributor
Solution

Re: Replacing primary boot disk...

Curtis,

If you have access to the ITRC Knowledge Base, see document id: A4381797
"replace root disk with mirroring; mkboot"

This document is relevant to an 11.x machine as well as a 10.x machine.
"Downtime is a Crime."
Antoanetta Naghiu
Esteemed Contributor

Re: Replacing primary boot disk...

If you are replacing a disk that is mirrored, we have to:1.vgcfgbackup (if necessary), 2.replace the disk, 3.run vgcfgrestore, 4. vgchange ?a ?y 5 run sync.
If you already enable the mirror as primary and split the mirror, and you want to go back to the initial configuration, you can create the mirror in the primary (pvcreate ?B raw_divice, vgextend /dev/vg00 block_device, mkboot raw_device, lvextend ?m 1 /dev/vg00/lvolxx block_device, lvlnboot ?v). By the end, if you modified the primary boot path in isl, go in isl and modify it back.
CHRIS ANORUO
Honored Contributor

Re: Replacing primary boot disk...

heck the boot string on the disk that you are trying to boot from: lifls /dev/rdsk/c#t#d#
This will open a list of the files.
The HPUX and the AUTO file are the critical ones. The HPUX file is the utility that is loaded when you did:
mkboot /dev/rdsk/c#t#d#
Your AUTO file is missing. The AUTO file is created when you performed the step:
mkboot -a "hpux (HW_path;0)/stand/vmunix" /dev/rdsk/c#t#d#
LIF errors occur if the AUTO file is not created when the root mirror disk is replaced. The following will correct the problem you were experiencing when you tried to boot from the freshly replaced root mirrored disk, these are the steps you should execute:
1. replace disk
2. vgcfgrestore -n /dev/vg# /dev/rdsk/c#t#d#
3. vgchange -a y /dev/vg#
4. vgsync /dev/vg#
5. mkboot /dev/rdsk/c#t#d#
6. mkboot -a "hpux(;0)/stand/vmunix" /dev/rdsk/c#t#d#

Cheers!



When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.

Re: Replacing primary boot disk...

To all those that input, thank you. I followed advice from Cheryl and resolved the issue. Thanks again
Carl-Johan Ekman
New Member

Re: Replacing primary boot disk...

Replace the failed drive

Boot the machine in lvm maintenance mode

# hpux -lm (;0)/stand/vmunix

If /usr is on a separate logical volume:

#vgchange - a y -q n /dev/vg00

#mount /usr

#mkboot /dev/rdsk/cXtXd0

#mkboot -a "hpux(;0)/stand/vmunix"
/dev/rdsk/cXtXd0

# cd /usr/sbin/diag/lif

#mkboot -b updatediaglif (updatediaglif2 for N, L & V-Class )-p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/cXtXd0
(This is for getting diag on the mirrored disk).

# vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXd0

If /usr is on separate logical volume you have already mounted /usr, run #vgsync /dev/vg00
instead of
#vgchange -a y /dev/vg00.

# vgchange -a y /dev/vg00

Reboot the machine




Nothing is too complicated to solve