Operating System - HP-UX
1830466 Members
2601 Online
110005 Solutions
New Discussion

HPUX 11.23 IA 64 error when mirroring

 
SOLVED
Go to solution
Chris Fadrowski
Super Advisor

HPUX 11.23 IA 64 error when mirroring

This is an itanium system running hpux 11.23

i am going thru the mirroring process for this OS and although it says the process was successful;

root@hostname:/>lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t0d0s2
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.
vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c2t0d0


i am getting this comment... any ideas on what this means?

vgcfgbackup: Invalid LVMREC on Physical
7 REPLIES 7
Cheryl Griffin
Honored Contributor

Re: HPUX 11.23 IA 64 error when mirroring

That message appears when there is a problem with the disk. If you can dd and diskinfo the disk successfully, reduce the disk from the volume group, pvcreate -f the disk again to force the header to rewrite. Try adding it again.
"Downtime is a Crime."
Sridhar Bhaskarla
Honored Contributor

Re: HPUX 11.23 IA 64 error when mirroring

Hi Chris,

I am not an itanium guy. But I believe the functionality of LVM should be the same.

Invalid LVMREC indicates a problem with the PV c2t0d0. You should be getting PV errors when you run commands like 'vgdisplay', 'lvlnboot' etc., To verify do

pvdisplay -v /dev/dsk/c2t0d0

If it cannot recognize c2t0d0, then you will have to fix it. Check if the disk is physically there with 'ioscan -f;ioscan -fnC disk' commands. Run

dd if=/dev/rdsk/c2t0d0 of=/dev/null bs=1024k

It should complete successfully without IO errors else you have to replace the disk.

After that, run 'vgcfgrestore' to recover the LVM structures. If it is a mirror disk, then do

1 pvcreate -B -f /dev/rdsk/c2t0d0
2 vgcfgrestore -n vg00 /dev/rdsk/c2t0d0
3 vgchange -a y vg00
4 mkboot -l /dev/rdsk/c2t0d0
5 mkboot -a "hpux -lq" /dev/rdsk/c2t0d0
6 vgsync vg00
7 lvlnboot -R

IF it is not a boot mirror disk but an ordinary mirror, then follow steps 2,3 and 6. If it not a mirror at all, then follow 2,3 but you may have to restore the data.

-Sri

mkboot -l
You may be disappointed if you fail, but you are doomed if you don't try
Chris Fadrowski
Super Advisor

Re: HPUX 11.23 IA 64 error when mirroring

actually there is a completely different process when mirroring boot disks on IA systems. Doc #DBRC00014526
Sridhar Bhaskarla
Honored Contributor

Re: HPUX 11.23 IA 64 error when mirroring

You are right.. It just didn't come to my mind that you had to use the sub partition in IA systems. Please ignore my previous post except the "dd" idea.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Robert-Jan Goossens
Honored Contributor
Solution

Re: HPUX 11.23 IA 64 error when mirroring

Chris Fadrowski
Super Advisor

Re: HPUX 11.23 IA 64 error when mirroring

actually, that is where i may have screwed up. I started to create the disk just like a 11.0 system. I got all the way to "mkboot -a "hpux -lq" before i got an error and checked it out only to find there is a different procedure for IA64 systems.

I thought that going thru the new process would get rid of everything on that disk but i may not have. There is a pvcreate -fB command on the IA64 instructions so i thought that would get rid of any info from before.

i think i have to do a vgreduce /dev/vg00 /dev/dsk/c2t0d0
and then do another PVCREATE -f and then start the procedure again.. right?????

in addition, i don't understand was the "s1" "s2" designations are on the drives in IA64 systems.
Sridhar Bhaskarla
Honored Contributor

Re: HPUX 11.23 IA 64 error when mirroring

Hi,

I suggest if you already established the mirrors, then reduce them and take the disk out of vg00 and start the process again fresh.

From my understanding s1 partition is for EFI and s2 is for HP-UX.


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