Operating System - HP-UX
1748275 Members
3951 Online
108761 Solutions
New Discussion юеВ

vgdisplay error: Couldn't query volume group "vg00"

 
Francisco Pardillo Mart
Occasional Contributor

vgdisplay error: Couldn't query volume group "vg00"

Hi,

One of our servers is showing the error (vgdisplay -v):

vgdisplay: Couldn't query volume group "vg00".
Possible error in the Volume Group minor number; Please check and make sure the group minor number i
s unique.
vgdisplay: Cannot display volume group "vg00".

If y recreate the lvmtab file:

mv /etc/lvmtab /etc/lvmtab.bak
vgscan -v

No vg00 is created, if i make a strings /etc/lvmtab, it shows:

/dev/
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/vgMDIF
/dev/dsk/c35t1d7
/dev/dsk/c35t2d0
...

/dev # ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Aug 21 14:55 /dev/vg00/group
crw-rw-r-- 1 root sys 64 0x030000 Nov 10 03:58 /dev/vgMDIF/group


The systems reboots normaly, but the problem is that we cant't create new lvols or do any operation with the volume group vg00.

Has anyone any idea?

Thanks in advise.
Frank
7 REPLIES 7
Jeff Schussele
Honored Contributor

Re: vgdisplay error: Couldn't query volume group "vg00"

Hi Francisco,

I'd scan the entire /dev dir for any other possible major 64 / minor 0x000000 devices.
It may not be in a /dev/vg* dir.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: vgdisplay error: Couldn't query volume group "vg00"

More than likely there is a bad disk in vg00.

Its not responding so vg00 is not created with the vgscan -va command.

I had a similar problem recently.

I had to first identify the disk and then use the vgreduce -f /dev/dsk/c1t1d0

Then vgscan -va rebuilt the vg00 group.

How to find it.

mv /etc/lmvtab.back /etc/lvmtab

run the script I'm attaching. It should spot the bad disk and let you do the disk replacement followed by the steps above.

Sometimes the bad device isn't a disk. Ours was a disk array being detected and mistaken as a disk.

See attachment.

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
Mister_Z
Frequent Advisor

Re: vgdisplay error: Couldn't query volume group "vg00"

Francisco,

try to get the latest LVM patch level for yout system. Ensure the following patches (or superseding) are installed:

PHKL_20419 - LVM Cumulative patch
PHCO_21630 - LVM commands cumulative patch

HTH,
I work for HP
Kent Ostby
Honored Contributor

Re: vgdisplay error: Couldn't query volume group "vg00"

This can happen if lvmtab has a different VGID then the system is expecting for some reason.

The fix listed in certified document ULVMKBRC00008020 is to do the following four steps:

# mv /etc/lvmtab /etc/lvmtab.save
# vgscan -v
# vgchange -a y vg00
# vgdisplay vg00

Also if you are running ServiceGuard, there may be an /dev/slvmvg file that exists and is causing the problem.

To resolve the errors:

1. Check to see if the /dev/slvmvg file exists:

# ll /dev/slvmvg

Note: If the file "does exist", then perform Steps
A, B, C, D, and E.

If the file "does not exist", perform Steps B, C, D,
and E. (do not perform Step A).

2. Perform the following commands:

A. # mv /dev/slvmvg /tmp

B. # mv /etc/lvmtab /etc/lvmtab.currentdate

C. # vgscan -v

D. # strings /etc/lvmtab

Note: This command verifies that everything is correct.

E. # vgchange -a y /dev/vg00

F. # vgdisplay -v /dev/vg00

If the above does not correct the issue, it may be necessary to vgexport and vgimport the volume group. But the above should take care of it.


"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Michael Steele_2
Honored Contributor

Re: vgdisplay error: Couldn't query volume group "vg00"

Regarding "...No vg00 is created..." in /etc/lvmtab.

-and-

/dev # ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Aug 21 14:55 /dev/vg00/group

There is an obvious conflict.

Please attach:

# lvlnboot -v | grep -i boot

Question is: What did you boot off of?

Also check for older /etc/lvmtabs and for the existence of vg00 in them:

# ll /etc/lvmtab*

Hopefully there is an older /etc/lvmtab.

Finally, check for 'vg00' in /etc/lvmconf/vg00.conf. If present then run:

# vgcfgrestore -f /etc/lvmconf/vg00.conf -l

...and verify the boot disks.

Here's a thread hit:

http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xad338f960573d611abdb0090277a778c%2C00.html&admit=716493758+1068567267000+28353475
Support Fatherhood - Stop Family Law
Ashwani Kashyap
Honored Contributor

Re: vgdisplay error: Couldn't query volume group "vg00"

Looks like there is another group file with the same minor number . Its just not in the /dev/vg* directory .

Try #ll /dev/*/group and see if it comes up with a conflicting number .
Francisco Pardillo Mart
Occasional Contributor

Re: vgdisplay error: Couldn't query volume group "vg00"

Hi,

Thanks for all your inputs so quickly.

Kent was in the right, there was a file:

/etc/slvmvg, i moved it and made a vgscan, all was fine.

Thanks.
Frank