Operating System - HP-UX
1833742 Members
2721 Online
110063 Solutions
New Discussion

Warning: couldn't query physical volume...

 
SOLVED
Go to solution
Ed Hon
Regular Advisor

Warning: couldn't query physical volume...

After the system rebooted Sunday, there was a message on the console, saying it could not resync vg02, because it couldn't reach one of the PV's. I ran

lvdisplay /dev/vg02/lvol1

and the output was

Warning: couldn't query physical volume "/dev/dsk/c5t1d0": The specified path does not correspond to physical volume attached to this volume group...

LV Status available/stale
Mirror copies 1
Consistency Recovery NOMWC

It looks to me like I've got corrupt LVM data on c5t1d0. Can I fix it by running

vgcfgrestore -n /dev/vg02 /dev/rdsk/c5t1d0 ?

-------------------

Now here is the background of what was going on before this particular problem occurred. Last week I had a problem with a disk that was part of vg04 (not vg02). From the messages it looked like one of the two mirrored disks in vg04 had failed. I didn't have a spare to replace it. Over the weekend, the system was rebooted intentionally. After the reboot, inexplicably the two disks in vg04 were OK again, but I got the error message that vg02 could not be resynced. Is there a reason to believe the problem with vg04 caused the problem with vg02? I did a patch search but couldn't find anything relevant.

Thanks,

Ed
18 REPLIES 18
Patrick Wallek
Honored Contributor
Solution

Re: Warning: couldn't query physical volume...

Hmmm....Well, it depends. Are the problematic disks for vg02 and vg04 on the same SCSI chain? Are the both c5t*d0? If so, then you could have a SCSI card problem, cable problem, terminator problem.

If not, I would suspect it is a coincedence.

I would not do the vgcfgrestore on c5t1d0 until you verify whether or not the disk is good or bad. Do a 'pvdisplay /dev/dsk/c5t1d0' and see what happens. You could also try a 'dd if=/dev/rdsk/c5t1d0 of=/dev/null bs=2048k' and see what, if anything, it returns.

Geoff Wild
Honored Contributor

Re: Warning: couldn't query physical volume...

Do the dd that Patrick mentions....also, try just a:

diskinfo /dev/rdsk/c5t1d0

If that fails - then you can not see the disk - maybe a bad disk? SCSI chain, etc...

If box is on support - put in a hardware call....

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.
Helen French
Honored Contributor

Re: Warning: couldn't query physical volume...

Normally, this message comes when the OS cannot talk to a disk. But since you had this problem reported to another disk and now that's okay, it would be confusing. To troubleshoot I would check these:
1) If both problem reported disks are on the same controller, I would check the disk controller, it's termination, connectivity etc.
2) Run STM and dd to check each disks and see if it reports any error.
3) If the disks are very old, suspect both disks are bad and replace it.
4) Some of the old disks, might give you error after a reboot and may be another reboot will erase the problem. But this problem might come again after another reboot, so I would replace any disks (if disk is the problem) that ever gave a h/w error.
5) Doing vgcfgrestore should be the task after replacing the disk. You need to recreate the FS and restore data from backup.
6) Check disks and controllers with STM, diskinfo, dd, ioscan -fnC disk etc.
Life is a promise, fulfill it!
PIYUSH D. PATEL
Honored Contributor

Re: Warning: couldn't query physical volume...

Hi,

Don't run the vgcfgrestore command. Check whether the disk is working fine using the dd command and diskinfo. If there are problems with the disk then replace it.

HTH,
Piyush
Ed Hon
Regular Advisor

Re: Warning: couldn't query physical volume...

Patrick,

The bad PV in vg04 was c6t1d0 (1/2/0/1.1.0)
The bad PV in vg02 is c5t1d0 (1/2/0/0.1.0)

# pvdisplay /dev/dsk/c5t1d0
display: Warning: couldn't query physical volume "/dev/dsk/c5t1d0":

pvdisplay: Cannot display physical volume "/dev/dsk/c5t1d0".

# dd if=/dev/rdsk/c5t1d0 of=/dev/null bs=2048k
/dev/rdsk/c5t1d0: No such device or address
dd: cannot open /dev/rdsk/c5t1d0

Michael Steele_2
Honored Contributor

Re: Warning: couldn't query physical volume...

Might want to 'lvchange' NOMWC to MWC.

lvchange -M y /dev/vg01/lvol1

NOMWC = Mo Mirror Write Cache
should be used with swap devices or when the physical device is expected to pick up the overhead.

MWC = Mirror Write Cache and its important to survive crashes, else a full fsck will be implemented.

For performance enhancement reasons NOMWC is used when a lot of writes are occurring on the disk in question.

See what's going on performance wise with this disk and think about 'lvchange'.

sar -d 5 5
sar -u 5 5
sar -b 5 5
Support Fatherhood - Stop Family Law
PIYUSH D. PATEL
Honored Contributor

Re: Warning: couldn't query physical volume...

Do an ioscan and check whether the system can detect the /dev/dsk/c5t1d0 disk. If not then you need to check the disk.

HTH,
Piyush
Caesar_3
Esteemed Contributor

Re: Warning: couldn't query physical volume...

Hello!

Made the and see if it
return you all the HD that you have and
also the devices for every disk.

The check of dd is good to see if you have
bad sectors on the disk but if it return
that device is not found you shoud check
this point.

Caesar
Ed Hon
Regular Advisor

Re: Warning: couldn't query physical volume...

I could not run STM, because there is no disk showing at 1/2/0/0.1.0 . The last time I ran ioscan there was a disk at 1/2/0/0.1.0 (c5t1d0).

It's a hot swap drive, and just for the heck of it, I reseated it. Now the LED is constantly ON.
Steven E. Protter
Exalted Contributor

Re: Warning: couldn't query physical volume...

I'd run dmesg and if you have an lbolt replace Mr. Hot Swap drive.

If the thing shows up at all, you can use xstm in X Windows to query and "exercize" the drive. It will probably show up red as in bad as in replace now.

Good Luck Ed,

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
Ed Hon
Regular Advisor

Re: Warning: couldn't query physical volume...

ioscan -fnC disk does not show a disk at 1/2/0/0.1.0 . I have

1/2/0/1.1.0
1/2/0/1.0.0
1/2/0/0.0.0
Chapaya
Frequent Advisor

Re: Warning: couldn't query physical volume...

Hello Ed ,

I know this problem ,i had this error last week .

The reason for this error is that the disks
in the mirror aren't synchronise with each other .

You should run :
lvsync /dev/vg0X/rlvolX

on every lvol with stale condition ,
this operation takes some time .....

Good Luck ,
Eran .
Patrick Wallek
Honored Contributor

Re: Warning: couldn't query physical volume...

If ioscan is not even showing the disk, then I'd say you definitely have a bad disk and it is time to call HP and get it replaced.

Until ioscan is able to see the disk again, you're not going to be able to do anything. The fact that the LED is on solid is a pretty good indicator that the disk is toast.
Ed Hon
Regular Advisor

Re: Warning: couldn't query physical volume...

No lbolt in dmesg or syslog. It's lloks like the system didn't see the drive on bootup, therefore there is no path to it.

One thing I've noticed about running STM. If it's a mirrored drive, and you try to exercise the bad drive, it will actually run against the good drive and not report a problem.
Michael Steele_2
Honored Contributor

Re: Warning: couldn't query physical volume...

Ooops. That's a bad disk then. The LED is constantly on. Re-verify with dd, it will hang, and unhang when you pop it out.

dd if=/dev/dsk/cXtYdZ of=/dev/null count=1000000
control c
hangs
pop out
unhang

Then bad disk.
Support Fatherhood - Stop Family Law
Bryan D. Quinn
Respected Contributor

Re: Warning: couldn't query physical volume...

Hey Ed,

I agree with Patrick, chances are this disk is not coming back. Have HP snatch that guy out of there. After that is done, then you can worry about getting it sync'd back up.

-Bryan
Ed Hon
Regular Advisor

Re: Warning: couldn't query physical volume...

There's no hang with the dd command and the led ON. dd immediately reports

# dd if=/dev/rdsk/c5t1d0 of=/dev/null count=1000000
/dev/rdsk/c5t1d0: No such device or address
dd: cannot open /dev/rdsk/c5t1d0
Michael Steele_2
Honored Contributor

Re: Warning: couldn't query physical volume...

Well its bad then. No doubt anymore.
Support Fatherhood - Stop Family Law