cancel
Showing results for 
Search instead for 
Did you mean: 

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
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!   
maxell_1
Frequent Advisor

Re: pvdisplay issue

Hi,

1) "hpvmdisplay" is not a recognised command
2) Other output as below:

Thanks

*******************************************
# diskinfo -v /dev/rdisk/disk4
SCSI describe of /dev/rdisk/disk4:
vendor: HP
product id: Virtual LvDisk
type: direct access
size: 35840000 Kbytes
bytes per sector: 512
rev level: 0.04
blocks per disk: 71680000
ISO version: 0
ECMA version: 0
ANSI version: 4
removable media: no
response format: 2
(Additional inquiry bytes: (32)0 (33)0 (34)0 (35)0 (36)0 (37)0 (38)0 (39)0 (40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0 (48)0 (49)0 (50)0 (51)0 (52)0 (53)2 (54)60 (55)3 (56)20 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 (91)0 (92)0 (93)0 (94)0 (95)0 (96)0 (97)0 (98)0 (99)0 (100)0 (101)0 (102)0 (103)0 (104)0 (105)0 (106)0 (107)0 (108)0 (109)0 (110)0 (111)0 (112)0 (113)0 (114)0 (115)0 (116)0 (117)0 (118)0 (119)0 (120)0 (121)0 (122)0 )
# scsimgr get_info -D /dev/rdisk/disk4

STATUS INFORMATION FOR LUN : /dev/rdisk/disk4

Generic Status Information

SCSI services internal state = ONLINE
Device type = Direct_Access
EVPD page 0x83 description code = 2
EVPD page 0x83 description association = 0
EVPD page 0x83 description type = 1
World Wide Identifier (WWID) = HP /dev/vg01/rlvsvr1g3_root
Serial number = 00000000000000-0000
Vendor id = HP
Product id = Virtual LvDisk
Product revision = 0.04
Other properties =
SPC protocol revision = 4
Open count (includes chr/blk/pass-thru/class) = 1
Raw open count (includes class/pass-thru) = 0
Pass-thru opens = 0
LUN path count = 1
Active LUN paths = 1
Standby LUN paths = 0
Failed LUN paths = 0
Maximum I/O size allowed = 1048576
Preferred I/O size = 1048576
Outstanding I/Os = 0
I/O load balance policy = round_robin
Path fail threshold time period = 0
Transient time period = 60
Tracing buffer size = 1024
LUN Path used when policy is path_lockdown = NA
LUN access type = NA
Asymmetric logical unit access supported = No
Asymmetric states supported = NA
Preferred paths reported by device = No
Preferred LUN paths = 0

Driver esdisk Status Information :

Capacity in number of blocks = 71680000
Block size in bytes = 512
Number of active IOs = 0
Special properties =
Maximum number of IO retries = 45
IO transfer timeout in secs = 30
FORMAT command timeout in secs = 86400
START UNIT command timeout in secs = 60
Timeout in secs before starting failing IO = 120
IO infinite retries = false
*******************************************
Kapil Jha
Honored Contributor

Re: pvdisplay issue

Was this disk replaced some time back?
I think it was replaced or smthing and its not attached to any VG.
You will have to add the disk in vg then pvdisplay would give an output.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Torsten.
Acclaimed Contributor

Re: pvdisplay issue

1) "hpvmdisplay" is not a recognised command


This needs to be run on the HPVM host, not the guest!

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!   
maxell_1
Frequent Advisor

Re: pvdisplay issue

Ok geeks,

Beginning to see some light now.

1) Yes it is a VM guest.

2) Output of "strings /etc/lvmtab"
# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk2_p2

3) Output of "ioscan -fnNC disk"
# 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

4) You can see that the device filename is not the same between the output in 2 and 3.

I think once the device mappings are right, things would be fine. Any help to sync the device filename?

Thanks
Kapil Jha
Honored Contributor

Re: pvdisplay issue

Ok
so what does
#hpvmstatus -P vm_name -v
shows, does it shows one disk or 2.
If 2 try running insf on this VM

2>check from which disk your server booted.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: pvdisplay issue

And try to mmv lvmtab
and run vgscan

What about
pvdisplay /dev/disk/disk4_p2
BR,
Kapil
I am in this small bowl, I wane see the real world......
maxell_1
Frequent Advisor

Re: pvdisplay issue

This is the output run from the VM host.
svr1g2 is the vm guest having this problem.

*****************************************

# hpvmstatus -P svr1g2 -v
Version B.04.00.00
[Virtual Machine Details]
Virtual Machine Name VM # OS Type State
==================== ===== ======= ========
svr1g2 19 HPUX On (OS)

[Authorized Administrators]
Oper Groups:
Admin Groups:
Oper Users:
Admin Users:

[Virtual CPU Details]
#vCPUs Entitlement Maximum
====== =========== =======
1 10.0% 100.0%

[Memory Details]
Total Reserved
Memory Memory
======= ========
2 GB 64 MB

[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk avio_stor 0 0 0 0 0 lv /dev/vg01/rlvsvr1g2_root

[Network Interface Details]
Interface Adaptor Name/Num PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === =================
vswitch avio_lan vsw0 2 0 1 0 ba-5d-3d-88-7e-13

[Misc Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
serial com1 tty console
#
*****************************************
Torsten.
Acclaimed Contributor
Solution

Re: pvdisplay issue

Because of this disk2 vs. disk4 problem, I would start with LVM maintenance mode and vgexport/vgimport vg00.

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!   
Kapil Jha
Honored Contributor

Re: pvdisplay issue

And you have got only one disk only assigned to VM.

So this is the only disk you have....

BR,
Kapil+
I am in this small bowl, I wane see the real world......
maxell_1
Frequent Advisor

Re: pvdisplay issue

thanks all.

Ive managed to resolve the issue by going to VM maintenance mode and perform the VG manipulations:

************************************
vgchange -a n vg00
vgexport -m /tmp/vg00.map /dev/vg00
mkdir /dev/vg00
mknod /dev/vg00/group c 64 0x010000
vgimport -m /tmp/vg00.map /dev/vg00 /dev/disk/disk4_p2
vgchange -a y vg00
lvlnboot -R
vgdisplay
reboot
************************************

Thanks to All for your help ;)