1832279 Members
2302 Online
110041 Solutions
New Discussion

mkboot after lvextend -m

 
SOLVED
Go to solution
Bernard  Bravo
Advisor

mkboot after lvextend -m

hi,

I just need to confirm the message regarding "mkboot" below. What should be the correct syntax for mkboot to complete my mirroring based on the messages below.

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.
lvlnboot: LIF information corrupt or not present on "/dev/dsk/c2t5d0".
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/lvol2" has been successfully extended.
lvlnboot: LIF information corrupt or not present on "/dev/dsk/c2t5d0".
Use the "mkboot" command to initialize the LIF area.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf


Hoping for mirroring experts could help me.

thanks in advance.

bern
Do good, Look Good, Feel Good
10 REPLIES 10
Michael Tully
Honored Contributor

Re: mkboot after lvextend -m

Hi,

You need to specify the 'mkboot' command
before you run the lvextend comannd.

Have a look at the link for the
correct way to mirror a boot disk.

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4731f58518e5bd6d41/screen=ckiDisplayDocument?docId=200000055534397

Also here is how I do them.

# pvcreate -Bf /dev/rdsk/cxtxdx
# vgextend /dev/vg00 /dev/dsk/cxtxdx
# mkboot -/dev/rdsk/cxtxdx
# mkboot -a "hpux-lq(;0)/stand/vmunix" /dev/rdsk/cxtxdx
# lvlnboot -R
# for LVOL in /dev/vg00/lv*
> do
> echo $LVOL
> lvextend -m 1 $LVOL
> done

If the disk has been used before, you will need
to use -f option as well as B
HTH
-Michael
Anyone for a Mutiny ?
Sanjay_6
Honored Contributor

Re: mkboot after lvextend -m

Hi Bernard,

The Correct mkboot sequence is:

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

or you can also use,
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtydz

Take a look at this thread,

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/49-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/49-toc.html&searchterms=mkboot&queryid=20011125-221115

Hope this helps.

Regds
Marcin Wicinski
Trusted Contributor

Re: mkboot after lvextend -m

Hi,
have you created mirror pv with "pvcreate -B" ?
Marcin Wicinski
Bernard  Bravo
Advisor

Re: mkboot after lvextend -m

Hi,

Thanks for the immediate reponse...

What if I have already made the lvextend do I need to do anything before doing mkboot?

Thus mkboot make any effect on the logical volumes if I already issued the lvextend -m 1...

please advise...

thanks again.
bern
Do good, Look Good, Feel Good
Bernard  Bravo
Advisor

Re: mkboot after lvextend -m

Hi,

How do I check? I cant remember if I used -B for pvcreate...

please advise.

thanks,
bern
Do good, Look Good, Feel Good

Re: mkboot after lvextend -m

Well the mkboot will simply fail if you didn't use the '-B' option.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Bernard  Bravo
Advisor

Re: mkboot after lvextend -m

Thanks Duncan,
I didnt encounter error on mkboot, it just prompted me that it will overwrite the data on the logical volume that I previously mirrored.

I have another question for everyone:

How do I confirm the all my LV are mirrored and has not problem like overlapping or sharing problem?

please advise...
thanks again.
bern
Do good, Look Good, Feel Good
James R. Ferguson
Acclaimed Contributor
Solution

Re: mkboot after lvextend -m

Hi:

To confirm that each logical volume has current, mirrored, extents, do:

# lvdisplay -v /dev/vgXX/lvolY

To verify the boot, swap and dump attributes, do:

# lvlnboot -v

Regards!

...JRF...
Bernard  Bravo
Advisor

Re: mkboot after lvextend -m

Thanks to everyone...

I have the following output for lvlnboot:

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t6d0 (10/0/15/0.6.0) -- Boot Disk
/dev/dsk/c2t5d0 (10/0/15/0.5.0)
Boot: lvol1 on: /dev/dsk/c2t6d0
/dev/dsk/c2t5d0
Root: lvol3 on: /dev/dsk/c2t6d0
/dev/dsk/c2t5d0
Swap: lvol2 on: /dev/dsk/c2t6d0
/dev/dsk/c2t5d0
Dump: lvol2 on: /dev/dsk/c2t6d0, 0

is it okey?

thanks.
bern
Do good, Look Good, Feel Good
Michael Tully
Honored Contributor

Re: mkboot after lvextend -m

Hi,

Looks fantastic!
Anyone for a Mutiny ?