1848757 Members
4758 Online
104036 Solutions
New Discussion

mirror root

 
Nobody's Hero
Valued Contributor

mirror root

Trying to mirror root after an 11.11 upgrade. The upgrade wipes out the mirror.

Here is what I get:

#vgextend /dev/vg00 /dev/dsk/c2t6d0
vgextend: Couldn't query volume group "/dev/vg00".
Possible error in the Volume Group minor number; Please check and make sure the group minor number is unique.
UNIX IS GOOD
17 REPLIES 17
Gary L. Paveza, Jr.
Trusted Contributor

Re: mirror root

I had a problem similar to this this past weekend. Looked like the kernel was out of sync with the volume groups. A reboot cleared it up nicely.

Of course first check to see that you infact do not have duplicate minor numbers:

ls -la /dev/vg*/group

Check the 0x number. The first two digits after the 0x are the minor numbers. They should be unique.
Nobody's Hero
Valued Contributor

Re: mirror root

Oh yea, I can't even to a vgdisplay....not good.

vgdisplay -v /dev/vg00
vgdisplay: Couldn't query volume group "/dev/vg00".
Possible error in the Volume Group minor number; Please check and make sure the group minor number is unique.
vgdisplay: Cannot display volume group "/dev/vg00".
UNIX IS GOOD
Torsten.
Acclaimed Contributor

Re: mirror root

Hi Robert,

was this disk in use befor or is it already a physical volume? Check your /etc/lvmtab and vgdisplay output file if the disk is included, if not, create it as a physical volume first
pvcreate (-f) -B /dev/rdsk/c2t6d0,
then vgextend.

You will get a lot of response with advisories how to mirror the disk, I'm sure
;-))

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!   
Nobody's Hero
Valued Contributor

Re: mirror root

Here is what I get...looks ok to me...

ls -al /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Aug 20 13:13 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x030000 Nov 10 2004 /dev/vg01/group
crw-r--r-- 1 root sys 64 0x040000 Nov 10 2004 /dev/vg02/group
crw-rw-rw- 1 root sys 64 0x010000 Aug 20 16:57 /dev/vgfinap/group
crw-rw-rw- 1 root sys 64 0x020000 Aug 20 17:23 /dev/vgfindb/group
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: mirror root

This was a new disk I installed for the mirror. It was probably used before.

I tried to do a pvcreate -f on it, but no luck. Says its already in the lvmtab...and it is.
UNIX IS GOOD
Mel Burslan
Honored Contributor

Re: mirror root

I have not done a "upgrade" per se to 11.11 but if I my memory serves me right, there was an issue about this while upgrading. The mirror copy does not get preserved as if you are recovering from an ignite image.

something you can try :

mv /etc/lvmtab /etc/lvmtab.old
vgscan -a

________________________________
UNIX because I majored in cryptology...
Nobody's Hero
Valued Contributor

Re: mirror root

moving the lvmtab and doing a vgscan didn't work...
UNIX IS GOOD
Steven E. Protter
Exalted Contributor

Re: mirror root

Upgrade should not do that.

Do you have mirror/ux codewords for 11i, you eventually will need them, but existing mirrors should not be touched.

You seem to have an LVM problem and may need to vgexport all of the volume groups, recreate the group files and then vgimport them all.

Back them up first and then do that, re-creating all the minor numberes and everything should be fine.

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
Juan M Leon
Trusted Contributor

Re: mirror root

If the reboot does not fix the problem, I will check vgdisplay see if the system thinks that the volume group has a mirror if it does then I will try
vgscan and vgcfgrestore


I hope it helps
Torsten.
Acclaimed Contributor

Re: mirror root

Please wait and DON'T pvscan so fast!!!
We could/should do some checks before.

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!   
James R. Ferguson
Acclaimed Contributor

Re: mirror root

Hi Robert:

If you had MC/ServiceGuard on this system at one time, look for '/dev/slvmvg'. If you find it, do:

# rm /dev/slvmvg
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v

...and make sure that any pvlinks are ordered in the primary/secondary arrangemetns you want, since 'vgscan' is likely to change the how you want to declare them!

Regards!

...JRF...
Nobody's Hero
Valued Contributor

Re: mirror root

No service guard...
UNIX IS GOOD
Tim Nelson
Honored Contributor

Re: mirror root

So vgdisplay fails, pvcreate on new disk for mirror fails. How is the OS up and running ?

bdf |grep vg00

anything mounted or are we in kernel boot i.e. /dev/vgroot

single root disk and quorum missing ?

reboot and override quorum hpux -lq

check logs from upgrade.

do vgscan in preview mode
Uday_S_Ankolekar
Honored Contributor

Re: mirror root

If you have /dev/slvmvg then move this file in to different place and also move /etc/lvmtab file , then run vgscan to recreate lvmtab.

IF this server has ServiceGaurd previously installed then slvmvg file remains in /dev


Good Luck..
Geoff Wild
Honored Contributor

Re: mirror root

strings /etc/lvmtab

where is it? in vg00?

Try reducing it:

vgreduce /dev/vg00 /dev/dsk/c2t6d0

Then try the pvcreate.

I think the disk was in another system - and it was vg00 already - that's why the "minor number" error....

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sameer_Nirmal
Honored Contributor

Re: mirror root

The error shows that the vg00 could not be queried because there is no PVs underneath to query whoes should be the part of the vg00 to able to show VG details (vgdisplay)

It is clear that even if you have group file for vg00, it is not pointing to either of the disks. It's quite weired and it is not LVM stuff at all. Are you sure the OS disk is a part of LVM or just a partioned disk?
Since you have the group files there , it doesn't mean the disk is a LVM disk. Or those disk might be used in other system before .


Can you do post the following
pvdisplay -v of the existing OS disk strings /etc/lvmtab

It seems that originally two disks were mirrored with old OE. You might have removed the alt path mirrored disk by reducing the lvs , but you didn't do vgreduce. Thats whay the disk is there in lvmtab. Try vgreduce vg00 /dev/dsk/c2t6d0

Let us know the exact step you had followed during upgrade to know the cause of the problem.

vinod_25
Valued Contributor

Re: mirror root

Hi Bob

The problem that you are facing is due to the VGID of VG00 on /etc/lvmtab and on the disk are different.

You can check this by executing the following steps :

[Test-Server]/ >xd -j8200 -N16 /dev/rdsk/cXtXdX
0000000 bfa5 2f7a 430c 4c4c bfa5 2f7a 430c 4c4c

[Test-Server]/ >strings -t d /etc/lvmtab | grep /dev | grep -v /dev/dsk | while read offsetpath; do xd -An -j$(($offset+1024)) -N8 -tx /etc/lvmtab | read vgid1 vgid2;echo $path $vgid1/$vgid2; done
/dev/vg00 bfa52f7a/430c4c4c

compare the disk id and strings output from these commands... if they are different, then you will get the same error.

To Rectify:

# mv /etc/lvmtab /etc/lvmtab.save

# vgscan -v

# vgchange -a y vg00

# vgdisplay vg00

Your problem will be solved...

All the best

Vinod