Operating System - HP-UX
1752775 Members
5668 Online
108789 Solutions
New Discussion юеВ

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

 
SOLVED
Go to solution
Avinash20
Honored Contributor

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

# mv /etc/lvmtab /etc/lvmtab.working
# vgscan -v
# strings /etc/lvmtab
# mv /etc/lvmtab.working /etc/lvmtab
# strings /etc/lvmtab
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
sujit kumar singh
Honored Contributor

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

hi Guru,

Can you also please give these O/Ps
#strings /etc/lvmtab
#ioscan -fnCdisk
#vgdisplay -v /dev/vgmost
#vgcfgresore -l -n /dev/vgmost
#dd if=/dev/dsk/c4t0d7 of=/dev/null count=10000

Reason is that the VG /dev/vgmost is having Cur PV as 6 and Act PV as 7.
/dev/dsk/c4t0d7 belong to this VG.

Sorry for the inconvenience,
but please give the Above O/pS.

Regards
gurudatta_1
Advisor

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

Hi sujit,

I am attaching the requried data.

Regards
Gurudatta N.R
Avinash20
Honored Contributor
Solution

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

Please confirm that you do not have any error in event.log for

disk 18 0/2/1/0.1.0.39.0.0.7 sdisk CLAIMED DEVICE HP A6218A
/dev/dsk/c4t0d7 /dev/rdsk/c4t0d7


If no errors, try to restore the LVM structures on

# vgcfgrestore -n vgmost /dev/rdsk/c4t0d7
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
gurudatta_1
Advisor

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

Hi Avinash,

I not getting any error in the event.log file

sujit kumar singh
Honored Contributor

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

Hi Guru,
As avinash says that vgcfgrestore can be done to bring back that /dev/dsk/c4t7d0 into the VG /dev/vgmost is correct.
i made a typo in the Earlier post.

That is
#vgcfgrestore -l -n /dev/vgmost.

this shows(lists) the disks(PVs) that are a part of the VG /dev/vgmost as per the VG Config File /etc/lvmconf/vgmost.conf.


From the O/ps sent this seems.
1)the disk /dev/dsk/c4t0d7 has the alternate paths as /dev/dsk/c6t0d7 /dev/dsk/c8t0d7 /dev/dsk/c10t0d7.
2)fcmsutil and the status of the other VGs tell that the FC card is working fine.
3)this is a 60 GB LUN assigned from the storage.
4)diskinfo and dd show that you can read and write to the disk as OK.
5)ioscan shows that the disk is available and CLAIMED.
6)strings /etc/lvmtab shows that the disk was configured as a part of the VG /dev/vgmost.
Are not you facing any issues with the other LVs of the VG /dev/vgmost?

If you are not facing any problem with the LVs of this VG (One PV gone entirely 60 GB in size and you are not having problems with the LVs in the VG!!.. might be there had been Mirrors of the LVs?
1) please run a lvdisplay -v on all the LVs of the VG /dev/vgmost and give the O/pS) Can you please try and give the O/Ps
2) #vgcfgrestore -l -n /dev/vgmost
try this one and also give the O/Ps
3) #pvdisplay -v /dev/dsk/c4t0d7.

Also check once from the Storage team if they have
4) misassigned this LUN also to some Other system.
5)ask them to check the health and assisnment of this LUN from the storage side.
6)or might be this was temporarily assigned from the storage to this server.


yes, the solution as suggested by Avinash is
vgcfgrestore -n /dev/vgmost /dev/rdsk/c4t0d7

but think once please check the above said information also.

7) Please check the Event Logs also at /etc/opt/resmon/log/event.log for any incident regarding to this LUN.

Please answer the Queries as asked as 1,2,3,4
5,6 and 7


@Avinah::: Close to becoming a Wizard... Advance Congrats..
Regards
Sujit
vjta
Regular Advisor

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

Hi Guru,
Pls Check for PV Cross Link Error in Syslog file.

regards
vjta
Vijeta Bhedi
gurudatta_1
Advisor

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

Hi All ,

thanks for your feed back,we are working this i will get back to you soon.

Regards
Gurudatta N.R
Itzjustme--A
Frequent Visitor

Re: vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":

In these kind of issues,

no need to worry.

You may face taking too much time to "


@gurudatta_1 wrote:
Hi all,



i am able to see all disks with ioscan and the not able to mount the same volume group , checked with the syslog it was throwihg
the io error tried restarting the server after that error is cleared,we re getting the below mentioned msg. when i check the vgdisply -v


@server located @ the remote location

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c6t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c10t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
VG Name /dev/vgmost
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 7
Act PV 6
Max PE per PV 15360
VGDA 12
PE Size (Mbytes) 4
Total PE 1530
Alloc PE 1393
Free PE 137
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/vgOldRoot
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4617
VGDA 2
PE Size (Mbytes) 8
Total PE 4607
Alloc PE 2442
Free PE 2165
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/temp
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 9215
VGDA 2
PE Size (Mbytes) 4
Total PE 9214
Alloc PE 13
Free PE 9201
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


Regards
Gurudatta NR

@gurudatta_1 wrote:
Hi all,



i am able to see all disks with ioscan and the not able to mount the same volume group , checked with the syslog it was throwihg
the io error tried restarting the server after that error is cleared,we re getting the below mentioned msg. when i check the vgdisply -v


@server located @ the remote location

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c6t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c10t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
VG Name /dev/vgmost
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 7
Act PV 6
Max PE per PV 15360
VGDA 12
PE Size (Mbytes) 4
Total PE 1530
Alloc PE 1393
Free PE 137
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/vgOldRoot
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4617
VGDA 2
PE Size (Mbytes) 8
Total PE 4607
Alloc PE 2442
Free PE 2165
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/temp
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 9215
VGDA 2
PE Size (Mbytes) 4
Total PE 9214
Alloc PE 13
Free PE 9201
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


Regards
Gurudatta NR



ioscan".

 

First check /etc/lvmtab with strings command.

Check the lvmtab entries are the same with error pv names.

If not same,

do take backup of "/etc/lvmtab" and do "vgscan".

check new lvmtab entry with strings command and compare new lvmtab with the old lvmtab.

 

Now try with vgdisplay or ioscan.

 


..A