lvlnboot - output?

 
SOLVED
Go to solution
bill_allen
Frequent Advisor

lvlnboot - output?

I have mirrored my boot disk with MirrorDisk-UX. lvdisplay indicates that the boot disk volumes are indeed mirrored. However, when I run lvlnboot, it leaves me wondering if the mirror disk is correctly configured. Shouldn't both disks be tagged as -- Boot ?

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0)
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0
8 REPLIES 8
TTr
Honored Contributor
Solution

Re: lvlnboot - output?

Yes, both disks should be tagged as boot. There is special procedure to mirror boot disks. There are many docs about this, one of them is (page 26 for RISC servers)
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
James R. Ferguson
Acclaimed Contributor

Re: lvlnboot - output?

Hi Bill:

It is likely that you failed to use the '-B' switch when you performed your 'pvcreate' of the boot disk.

If this is an 11.23 or 11.31 system, you can use 'vgmodify' to change the non-boot to a boot disk. Otherwise, you will need to destroy and recreate your mirrored boot disk from scratch.

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: lvlnboot - output?

This is a PA-RISC based system, right?

I assume too you did not do the pvcreate ** -B ** step, but I think you should get errors while doing the mkboot commands ...

Check with

# lifls -l /dev/rdsk/c2t2d0

and you should get at least something like

volume ISL10 data size 7984 directory size 8 99/10/28 15:23:53
filename type start size implement created
===============================================================
ISL -12800 584 240 0 99/10/28 15:23:53
AUTO -12289 824 1 0 99/10/28 15:23:53
HPUX -12928 832 800 0 99/10/28 15:23:53
PAD -12290 1632 1700 0 99/10/28 15:23:54
LABEL BIN 3336 8 0 06/04/25 18:01:35



Safest way is IMHO to remove the mirror and start over.

The link to the procedure is already provided.


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!   
bill_allen
Frequent Advisor

Re: lvlnboot - output?

Something is definately going on and I am not seeming to be getting the LIF initialized properly. I am running mkboot with the -B option. Here is the output I am getting when I run my lvextend commands for the volumes and when I run the lifls command.

fcdshp03/root # mirrorit.sh
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol2" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol3" has been successfully extended.
lvlnboot: LIF information corrupt or not present on "/dev/dsk/c2t2d0".
Use the "mkboot" command to initialize the LIF area.
lvlnboot: LIF information corrupt or not present on "/dev/dsk/c2t2d0".
Use the "mkboot" command to initialize the LIF area.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol5" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol6" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol7" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol8" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
fcdshp03/root # lifls -l /dev/rdsk/c2t2d0
volume c2t2d0 data size 29 directory size 1 08/04/29 15:34:09
filename type start size implement created
===============================================================
LABEL BIN 8 8 0 08/04/29 15:34:09
fcdshp03/root #
bill_allen
Frequent Advisor

Re: lvlnboot - output?

I think that part of my problem is that I am getting the following output from the pvcreate command when I start this process. This is what I am getting:

# pvcreate -fB /dev/rdsk/c2t2d0
pvcreate: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.


Is it seeing this entry in the lvmtab file and not doing what it should?
James R. Ferguson
Acclaimed Contributor

Re: lvlnboot - output?

Hi (again):

To start over, 'lvreduce' your logical volume mirrors on the "bad" disk and 'vgreduce' that physical volume from vg00.

*THEN* begin with a 'pvcreate -B' and follow the steps to build a mirrored boot disk.

Regards!

...JRF...
bill_allen
Frequent Advisor

Re: lvlnboot - output?

Great! Got it done. It's a bit different goting from a cookbook to actually having to learn it when things are a little out of the ordinary. I now understand much more about how this process works and the in and outs.

Thanks much to everyone! :-))
bill_allen
Frequent Advisor

Re: lvlnboot - output?

:-)