Operating System - HP-UX
1819777 Members
3880 Online
109607 Solutions
New Discussion юеВ

Re: mirror and /stand/bootconf

 
SOLVED
Go to solution
Sirius Black
Regular Advisor

mirror and /stand/bootconf

Hi all,I've mirrored my boot disk and now I want to know if I've, and how, to put a second entry in the /stand/bootconf with the path of mirrored boot disk.So my first disk is: /dev/dsk/c0t6d0 and mirror disk is /dev/dsk/c3t6d0.In my bootconf file I've this entry :1 /dev/dsk/c0t6d0I've to put a second entry like this ?1 /dev/dsk/c3t6d0Thanks Fabrizio
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: mirror and /stand/bootconf

A complete procedure to make sure you got it all.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: mirror and /stand/bootconf

Fabrizio,

The steps to mirror you boot volume are:

1. Create a physical volume with a boot reserved area
"pvcreate -B /dev/rdsk/c1t6d0"

2. Add the physical volume to the root VG
"vgextend /dev/vg00 /dev/dsk/c1t6d0"

3. Use mkboot to place the boot utilities in the boot area and add the AUTO file
"mkboot /dev/rdsk/c1t6d0"
"mkboot -a "hpux -lq" /dev/rdsk/c1t6d0"

4. Use mkboot to update the AUTO file on the primary boot disk
"mkboot -a "hpux -lq" /dev/rdsk/c0t6d0"
5. Mirror the stand, root and swap logical volumes
"lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t6d0"

6. Modify your alternate boot path
"setboot -a 8/8.6.0 # use the path of your new boot disk"

That's all there is to it.


Pete

Repeat the lvextend for all other LVs


Pete
Pete Randall
Outstanding Contributor

Re: mirror and /stand/bootconf

You may notice that I left out any lvlnboot commands. That is because they are not necessary - see the man page:

"This command should be run in recovery mode (-R) whenever the configuration of the root volume group is affected by one of the following commands: lvextend, lvmerge, lvreduce, lvsplit, pvmove, lvremove, vgextend, or vgreduce (see lvextend(1M), lvmerge(1M), lvreduce(1M), lvsplit(1M), pvmove(1M), lvremove(1M), vgextend(1M), and vgreduce(1M)). Starting with HP-UX Release 10.0, this is done automatically."


Pete

Pete
Sirius Black
Regular Advisor

Re: mirror and /stand/bootconf

But if you look at your /stand/bootconfwhat do you see ??Thanks Fabrizio
Pete Randall
Outstanding Contributor

Re: mirror and /stand/bootconf

Just the primary.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: mirror and /stand/bootconf

From the man page:

"It is used by the Software Distributor and HP-UX kernel control scripts (fileset OS-Core.KERN-RUN) to determine how and where to update the initial boot loader."

I see no reason to update it.


Pete

Pete
Dietmar Konermann
Honored Contributor
Solution

Re: mirror and /stand/bootconf

Pete,

the reason why the lvlnboot commands are listed in most cookbooks (including the Software Recovery Handbook) is the fact that "lvlnboot -R" may fail under some circumstances for older LVM patch levels.

Fabrizio,

the /stand/bootconf file should include the mirror boot disk also. See man page of bootconf(4) for reasons. The entry needs to be done manually.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Dietmar Konermann
Honored Contributor

Re: mirror and /stand/bootconf

Quoting man page bootconf(4):

---
If LVM mirrors are used, then each of the "mirrors" must have its own line.
---

For me this sounds like a very clear statement.

"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Pete Randall
Outstanding Contributor

Re: mirror and /stand/bootconf

Thanks for the clarification, Dietmar. I didn't read far enough in the man page, I guess.


Pete

Pete