1752786 Members
5874 Online
108789 Solutions
New Discussion юеВ

Re: pvdisplay issue

 
SOLVED
Go to solution
maxell_1
Frequent Advisor

pvdisplay issue

Hi Gurus,

I had below error when executing the "pvdisplay" command after performing a logical volume group routines. Appreciate any help. Thanks!

********************************************
# pvdisplay /dev/disk/disk2_p2
pvdisplay: Warning: couldn't query physical volume "/dev/disk/disk2_p2":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg00".
pvdisplay: Cannot display physical volume "/dev/disk/disk2_p2"
********************************************
19 REPLIES 19
Kapil Jha
Honored Contributor

Re: pvdisplay issue

hmmmmm
i think
#pvdisplay /dev/disk/disk2
should work.
And does this disk is added in some vg (trrelevent though ;)
Currently I don have any server to check this out.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Mark S Meadows
Valued Contributor

Re: pvdisplay issue

Hi,

This is one of your boot disks that the system is complaining about.

>>when executing the "pvdisplay" command after performing a logical volume group routines. <<

Please can you elaborate - performing what routines ?

Can the system see the disk :

ioscan -funNC disk

Is it still registered in the lvmtab :

strings /etc/lvmtab

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Hakki Aydin Ucar
Honored Contributor

Re: pvdisplay issue

Hi

when you issue this command:

vgdisplay -v

can you see this dev: "/dev/disk/disk2_p2"

if not , probably it is not used by LVM. need to create. .
maxell_1
Frequent Advisor

Re: pvdisplay issue

Hi guys,

Thanks for the quick response. Ok here is the output when execute "vgdisplay -v vg00"

******************************************
vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk2_p2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/datavol
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0
******************************************

Suraj K Sankari
Honored Contributor

Re: pvdisplay issue

Hi,
>>LV Size (Mbytes) 0
>>Current LE 0
>>Allocated PE 0
>>Used PV 0

These output are showing 0, did you check with diskinfo command for this disk?

Hi,

These docs is reffer by When_Good_Disks_Go_Bad_WP.pdf doc.

These are the methods to check the disk is bad or good

# ioscan -fCdisk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST34572WC
disk 1 8/4.8.0 sdisk UNCLAIMED UNKNOWN SEAGATE ST34572WC
disk 2 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5401TA

Note:Only disks in state CLAIMED are currently accessible by the system. Disks in other states such as NO_HW or disks that are completely missing from the ioscan output are suspicious.
In this example, the disk at hardware path 8/4.8.0 is not accessible.

# pvdisplay /dev/dsk/c1t2d3 | grep
"PV Status"
PV Status unavailable

Note:if the pvdisplay command is able to report a valid status (unavailable/available) for it. Otherwise, the disk is unattached

# diskinfo /dev/rdsk/c0t5d0
SCSI describe of /dev/rdsk/c0t5d0:
vendor: SEAGATE
product id: ST34572WC
type: direct access
size: 0 Kbytes
bytes per sector: 512

Note:In this example the size is 0, so the disk is malfunctioning.

# dd if=/dev/rdsk/c1t3d0 of=/dev/null bs=1024k &
dd read error: I/O error
0+0 records in 0+0 records out

Note:If the disk is functioning properly, no I/O errors are reported.

Suraj


F Verschuren
Esteemed Contributor

Re: pvdisplay issue

eiter the disk is broken or the patitions of the disk are gone/corupted,

Can you post a ioscan -fn disk
(only post you root disks)
maxell_1
Frequent Advisor

Re: pvdisplay issue

Hi Guys,

Been able to get the "ioscan" output as below. I have another server with similar config. and it works fine. Thanks

*****************************************
# ioscan -fnNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 4 64000/0xfa00/0x5 esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk4 /dev/rdisk/disk4
/dev/disk/disk4_p1 /dev/rdisk/disk4_p1
/dev/disk/disk4_p2 /dev/rdisk/disk4_p2
/dev/disk/disk4_p3 /dev/rdisk/disk4_p3

# pvdisplay /dev/disk/disk4_p2
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/disk/disk4_p2" belongs.
pvdisplay: Cannot display physical volume "/dev/disk/disk4_p2".
Raj D.
Honored Contributor

Re: pvdisplay issue

maxell,
Can you query the disk using diskinfo:

What do you see with:
# diskinfo -v /dev/rdisk/disk4


And :
#scsimgr get_info -D /dev/rdisk/disk4


It may be a problem with the disk / lun,
above needs to be verify. And when this disk causing problem.


Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Torsten.
Acclaimed Contributor

Re: pvdisplay issue

>> disk 4 64000/0xfa00/0x5 esdisk CLAIMED DEVICE HP Virtual
LvDisk

So it is a virtual machine using a LVOL based backing store.

Can you provide the configuration details from the host and guest (hpvmdisplay)?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!