Operating System - HP-UX
1834829 Members
2177 Online
110070 Solutions
New Discussion

Re: vgdisplay "can't query physical..."

 
SOLVED
Go to solution
Charles McCary
Valued Contributor

vgdisplay "can't query physical..."

Group,

A while back we did some maintenance on one of our boxes in a SG cluster. After the box was booted and the packages came up, it became apparent that one of the controller paths to our array (va7100) was having problems (in fact I just needed to push in on a fiber connector a little more firmly).

However, I just realized that although the disks are there, the vgdisplay doesn't work correctly for all vg's on this array. I'm assuming that's because they were activated while the controller was down.

All of the disks are present in the /etc/lvmtab. In fact, I ran vgscan just to be sure and it's like it should be...

My thoughts on how to fix this are:
1) deactivate and reactivate the vg's.
2) Possibly re-import the vg's.
3) Possibly Reboot.


I'm hoping #1 will fix the problem, if not I'll try 2 and then 3.

Please provide any insight on my "plan".

thanks,

c
6 REPLIES 6
RAC_1
Honored Contributor

Re: vgdisplay "can't query physical..."

First check all pvs that you have problem with are in claimed state in ioscan.

Do an insf -ev -Cdisk

Deactivate vgs and activate again.

This should be OK.

Anil
There is no substitute to HARDWORK
Charles McCary
Valued Contributor

Re: vgdisplay "can't query physical..."

RAC,

yes forgot to mention ioscan looks good, all disks are present and all have the appropriate device files associated with them.

So you think deactivating and reactivating will fix it?

thanks,
c
jpcast_real
Regular Advisor

Re: vgdisplay "can't query physical..."

If the vg activation/reactivation do not work you can try to have a look at the disk header to know if there is any problem . In this case vgcfgrestore is the best way..
Here rests one who was not what he wanted and didn't want what he was
RAC_1
Honored Contributor

Re: vgdisplay "can't query physical..."

Deactivate and activate will take care.

If that does not work, we can do vgcfrestore on those disks and check.

Thanks you,

Anil Rajapure.
There is no substitute to HARDWORK
Sanjay_6
Honored Contributor
Solution

Re: vgdisplay "can't query physical..."

Hi Charles,

Doing a "vgchange -a e vg_name" for the package vg's even when the package is up can fix the problem. If this is a non-cluster vg, you can do "vgchange -a y vg_name". You need to run this command on the node where the vg is active.

Hope this helps.

Regds
Charles McCary
Valued Contributor

Re: vgdisplay "can't query physical..."

Thanks Sanjay - that did it - just need to pvchange the links around a little now...