Operating System - HP-UX
1748146 Members
3543 Online
108758 Solutions
New Discussion юеВ

Creating new boot disk (lvlnboot errs)

 
David G. Douthitt
Regular Advisor

Creating new boot disk (lvlnboot errs)

I'm creating a new boot disk under HP-UX 11i v3 on an Itanium server. I've already followed the directions here:

http://www.met.ca/itrc/index.php?option=com_content&task=view&id=34&Itemid=2

during the process of creating a mirror of the original boot drive.

Logical volume groups were lvreduced to no mirror, then the disk was removed from the volume group with vgreduce.

Now this disk is configured with new filesystems and a larger swap and /tmp for our needs.

The trouble is that lvlnboot doesn't display data the way I would think it should, and it generates an error when trying to fix it:

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk4_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk4_p2
Root: lvol3 on: /dev/disk/disk4_p2
Swap: lvol2 on: /dev/disk/disk4_p2
Dump: lvol2 on: /dev/disk/disk4_p2, 0

Boot Definitions for Volume Group /dev/vg00b:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk3_p2 -- Boot Disk
No Boot Logical Volume configured
Root: ??? on: /dev/disk/disk3_p2
No Swap Logical Volume configured
No Dump Logical Volume configured

# lvlnboot -r /dev/vg00b/lvol3 /dev/vg00b
lvlnboot: A Logical Volume has already been assigned
to be the Root or Swap Logical Volume.

What do I do with this?
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Creating new boot disk (lvlnboot errs)

Hi David:

> Logical volume groups were lvreduced to no mirror, then the disk was removed from the volume group with vgreduce.

Why did you do this?

> Now this disk is configured with new filesystems and a larger swap and /tmp for our needs.

> You could have added a secondary device swap and simply enlarged the '/tmp' logical volume and filssystem. This could have been done while the logical volumes were mirrored.

> The trouble is that lvlnboot doesn't display data the way I would think it should, and it generates an error when trying to fix it:

That's clear.

I suggest that you start from scratch. I also suggest that you use the official (not copied) HP-UX documention:

http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

http://www.docs.hp.com/en/5992-3385/index.html

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Creating new boot disk (lvlnboot errs)

Shalom,
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

Thanks to all that made this doc right.

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
David G. Douthitt
Regular Advisor

Re: Creating new boot disk (lvlnboot errs)

I did already create secondary swap on the root vol; I want the primary swap to be properly sized. The swap on this box is 8Gb and there is 12Gb of memory.

The reason I'm not starting over is that this is a production environment and I can't just reinstall the operating system when people are expecting to get their work done.

I'm doing essentially these steps:

http://www.docs.hp.com/en/5992-3385/ch03s04.html#v1446112

and have found myself at step 10 with the error given above.

I am also not using cXtXdX as this is HP-UX 11i v3 and it uses the persistent DSFs.
Torsten.
Acclaimed Contributor

Re: Creating new boot disk (lvlnboot errs)

Steven, this is an Integrity with 11.31 - he is already using the proper document

http://www.docs.hp.com/en/5992-3385/ch03s04.html#v1446112

Your procedure applies to older hp-ux versions on PA-RISCs!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
David G. Douthitt
Regular Advisor

Re: Creating new boot disk (lvlnboot errs)

I figured it out. I searched through the forums again, and came across this link (describing how to reduce swap size):

http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1209062777690+28353475&threadId=132937

One of the steps (step #2) in the process described there mentioned the lvrmboot command:

2. Remove the swap and dump link to the current primary swap.

lvrmboot -s /dev/vg00
lvrmboot -d /dev/vg00/lvol2

So I looked up lvrmboot and did a lvrmboot -r on the specified volume. The problem was the '???' listed in the lvlnboot display (root volume link). After a lvrmboot -r all of that was cleared out.

I also found this document that was helpful:

http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01037913-2

That PDF document is "HP-UX Software Recovery Handbook - Logical Volume Manager (LVM)"

Thanks for trying!
David G. Douthitt
Regular Advisor

Re: Creating new boot disk (lvlnboot errs)

Problem solved as previously described; closing thread.