1833642 Members
5076 Online
110062 Solutions
New Discussion

Re: mirror root disk

 
SOLVED
Go to solution

mirror root disk

I am trying to mirror the root disk on a B2000 workstation with 11i OS. I get the following error:
Logical volume "/dev/vg00/lvol3" has been successfully extended.
lvlnboot: LIF information corrupt or not present on "/dev/dsk/c2t6d0".
Use the "mkboot" command to initialize the LIF area.
lvlnboot: LIF information corrupt or not present on "/dev/dsk/c2t6d0".
Use the "mkboot" command to initialize the LIF area.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
peartree::rbhounsc[37] >
I have done the mkboot command and it was successsful. What am I doing wrong?
Thanks,
Rebecca
16 REPLIES 16
A. Clay Stephenson
Acclaimed Contributor

Re: mirror root disk

Best guess: You did not use the -B flag in your pvcreate.
If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: mirror root disk

Hi Rebecca,

Looks like the PV was not created as bootable using "pvcreate -B /dev/rdsk/cxtydz". Try it. Search the forums for exact procedure. There are quite a few threads on root's mirroring.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: mirror root disk

As a reference Rebecca,

A complete cookbook:

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

Re: mirror root disk

I did the pvcreate with -B -f. I also did the exact command and order that SEProtter listed and I still the get the same error on lvol3.
Patrick Wallek
Honored Contributor

Re: mirror root disk

It could possibly be a bad disk.

# dd if=/dev/rdsk/c2t6d0 of=/dev/null bs=2048k

If it errors out at any point, you got a bad disk.
Sridhar Bhaskarla
Honored Contributor

Re: mirror root disk

Hi (Again),

It could be a bad disk as mentioned by Patrick.

What order are you trying to mirror?. Are you getting this error only if you are mirroring lvol3?. You should have already completed mirroring lvol1 and lvol2. Remember lvol1 should be the first logical volume on the boot disk though this error doesn't necessarily correspond to it.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try

Re: mirror root disk

I am doing the lvols in order (1,2,3...). I am running the dd command now to verify the disk.

Re: mirror root disk

This is the results from the dd command:
peartree::rbhounsc[39] > sudo dd if=/dev/rdsk/c2t6d0 of=/dev/null bs=2048k
4339+1 records in
4339+1 records out
peartree::rbhounsc[40] >
Sridhar Bhaskarla
Honored Contributor

Re: mirror root disk

Hi,

If your dd is successful, then I would suggest you to run this step by step. Take out the disk from vg00 after reducing the mirrors on the lvols that got extended already.

Execute all the steps until 'vgextend vg00 /dev/dsk/c2t6d0'. Before extending the logical volumes, do

'lvlnboot -v' and make sure /dev/dsk/c2t6d0 appears as the boot disk. If not, then post the commands you ran.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: mirror root disk

I didn't literally mean "until". :-) Execute all the steps including (or upto) vgextend and then 'lvlnboot -v'. Sorry about that.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try

Re: mirror root disk

SRI - I am not sure what you mean by "take out the disk from vg00".
Thanks.
Sridhar Bhaskarla
Honored Contributor
Solution

Re: mirror root disk

Hi,

You might have already run the command "vgextend vg00 /dev/dsk/c2t6d0" to add the disk to vg00. I meant to take it out and start from the scratch. If your intended_to_be_mirror_disk is c2t6d0, then

#pvdisplay -v /dev/dsk/c2t6d0
Note all the logical volumes
#lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t6d0

(repeat the above for all the lvs)
#vgreduce vg00 /dev/dsk/c2t6d0

Now run the commands

#pvcreate -f -B /dev/rdsk/c2t6d0
#mkboot -l /dev/rdsk/c2t6d0
#vgextend vg00 /dev/dsk/c2t6d0
#lvlnboot -v

See if it is recognized as a boot disk. If so, then

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

And follow the procedure as outlined in SEP's message.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try

Re: mirror root disk

SRI - Thank you so much. That worked. I am going to test now to verify it will boot via the mirrored disk.
Thanks again,
Rebecca
Sridhar Bhaskarla
Honored Contributor

Re: mirror root disk

I only gave the part until extending the disk to vg00 as a part of troubleshooting. You will still need to complete the rest of the mirroring process.

Another tip is to make sure your boot paths are set correctly. 'setboot' will help you.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: mirror root disk

I am happy to see your problem solved. But you don't need to be so generous in awarding the points as it defeats the purpose of having the point system which is *merely* to validate the help each response rendered to the poster.

My responses 2,3,4 and 6 do not deserve more than 3 points.

-Sri

PS: 0 points will be appreciated for this. Thanks.
You may be disappointed if you fail, but you are doomed if you don't try

Re: mirror root disk

SRI - I assigned the points to each reply as an ongoing but guess that isn't how it should be done. I apologize for being "generous" with the points. I will be more careful in the future.
Thanks,
Rebecca