Operating System - HP-UX
1825731 Members
2726 Online
109687 Solutions
New Discussion

Re: Warning: couldn't query physical volume

 
SOLVED
Go to solution
dictum9
Super Advisor

Warning: couldn't query physical volume

What does this mean?
I tried rebuilding /etc/lvmtab without success. The PV has been reduced from the VG. What else can I do?



biz:/etc#: vgdisplay -v vg00|more
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
14 REPLIES 14
dictum9
Super Advisor

Re: Warning: couldn't query physical volume

Also

ioscan -fnC disk
and diskinfo both look OK.

I am now running the "dd" test.

James R. Ferguson
Acclaimed Contributor
Solution

Re: Warning: couldn't query physical volume

Hi:

Did you move the old 'lvmtab' aside before running 'vgscan'?, as:

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

It appears that you have a bad disk --- c2t0d0.

See if :

# diskinfo /dev/rdsk/c2t0d0

...returns a non-zero size (a good sign if yes' bad if the size is zero).

See if the physical disk shows errors:

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

Regards!

...JRF...

dictum9
Super Advisor

Re: Warning: couldn't query physical volume

Yes, I moved the file before vgscan.

ioscan, diskinfo and dd all look good thus far

(dd is still running)
dictum9
Super Advisor

Re: Warning: couldn't query physical volume

dd test passed without errors! What now?

dictum9
Super Advisor

Re: Warning: couldn't query physical volume

Things just get more interesting - now I am getting this, after vgscan -a


#: vgdisplay -v v00|more
vgdisplay: Volume group "/dev/v00" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "v00".
dictum9
Super Advisor

Re: Warning: couldn't query physical volume

Typo.... Never mind.

Still the same error about "couldn't query physical volume"
James R. Ferguson
Acclaimed Contributor

Re: Warning: couldn't query physical volume

Hi (again):

What event(s) led you to rebuilding the 'lvmtab' in the first place?

Regards!

...JRF...
dictum9
Super Advisor

Re: Warning: couldn't query physical volume

I mirrored the filesystem using the standard Itanium mirroring instructions. I couldn't complete it and was getting errors about the mirror disk. I didn't save the original error.
dictum9
Super Advisor

Re: Warning: couldn't query physical volume


#: vgscan -a -v
vgscan: The physical volume "/dev/dsk/c2t0d0s2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t1d0s2" is already recorded in the "/etc/lvmtab" file.

Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
Physical Volume "/dev/dsk/c2t0d0s2" is not part of a Volume Group

vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg00 failed.

dictum9
Super Advisor

Re: Warning: couldn't query physical volume

Any other ideas what to do?
Deoncia Grayson_1
Honored Contributor

Re: Warning: couldn't query physical volume

lets start from the beginning..
what does
vgdisplay -v vg00 shows? does it even show c2t0d0?


If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
dictum9
Super Advisor

Re: Warning: couldn't query physical volume


#: vgdisplay -v vg00|more
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 16
Total PE 4318
Alloc PE 2310
Free PE 2008
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 1024
Allocated PE 1024
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 32
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 64
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 5216
Current LE 326
Allocated PE 326
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 128
Allocated PE 128
Used PV 1


LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 6144
Current LE 384
Allocated PE 384
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 5328
Current LE 333
Allocated PE 333
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c2t1d0s2
PV Status available
Total PE 4318
Free PE 2
Deoncia Grayson_1
Honored Contributor

Re: Warning: couldn't query physical volume

so if you do a strings /etc/lvmtab it actually shows c2t0d0 belonging to vg00? you did vgreduce of c2t0d0 from vg00, correct? did you try doing vgreduce -f c2t0d0 from vg00?
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
dictum9
Super Advisor

Re: Warning: couldn't query physical volume

It appears that

vgreduce -f vg00
rm /etc/lvmtab
vgscan -v

did the trick