Undocumented AIX command lquerypv

lquerypv can read the PVID directly from the disk:

# lquerypv -h /dev/hdisk0 80 10
00000080   00C4489D 5E6002A5 00000000 00000000  |..H.^`..........|

# lspv
hdisk0          00c4489d5e6002a5                    rootvg          active    

And also the VGDA:

 lqueryvg -Atvp hdisk0 
Max LVs:        256
PP Size:        27
Free PPs:       766
LV count:       12
PV count:       2
Total VGDAs:    3
Conc Allowed:   0
MAX PPs per PV: 1016
MAX PVs:        32
Quorum (disk):  0
Quorum (dd):    0
Auto Varyon ?:  1
Conc Autovaryon 0
Varied on Conc: 0
Logical:        00c4489d00004c00000001354404cb5c.2   hd6 1  
                00c4489d00004c00000001354404cb5c.3   hd5 1  
                00c4489d00004c00000001354404cb5c.4   hd8 1  
                00c4489d00004c00000001354404cb5c.5   hd3 1  
                00c4489d00004c00000001354404cb5c.6   hd1 1  
                00c4489d00004c00000001354404cb5c.7   hd11admin 1  
                00c4489d00004c00000001354404cb5c.8   livedump 1  
                00c4489d00004c00000001354404cb5c.13  fslv00 1  
                00c4489d00004c00000001354404cb5c.14  hd4 1  
                00c4489d00004c00000001354404cb5c.15  hd2 1  
                00c4489d00004c00000001354404cb5c.16  hd9var 1  
                00c4489d00004c00000001354404cb5c.17  hd10opt 1  
Physical:       00c4489d5e6002a5                1   0  
                00cf405e3e792147                2   0  
VGid:           00c4489d00004c00000001354404cb5c
Total PPs:      1092
LTG size:       128
HOT SPARE:      0
AUTO SYNC:      0
VG PERMISSION:  0
SNAPSHOT VG:    0
IS_PRIMARY VG:  0
PSNFSTPP:       4352
VARYON MODE:    0
VG Type:        0
Max PPs:        32512
Mirror Pool Str n
Sys Mgt Mode:   0
VG Reserved:    1
PV RESTRICTION: 0
Infinite Retry: 2

To find out which application crashed the OS use:

# /usr/sbin/lquerypv -h /path/to/core 6b0 64

# lquerypv -h /dev/hdiskpower22

hdiskpower22
00000000   00820101 00000000 80000003 5EDF6D84  |............^.m.|
00000010   0001EFD7 00000000 00000000 00000000  |................|
00000020   4F52434C 4449534B 00000000 00000000  |ORCLDISK........|
00000030   00000000 00000000 00000000 00000000  |................|
00000040   0A100000 00030104 41534D5F 50524F47  |........ASM_PROG|
00000050   5F47524F 55505F30 30303300 00000000  |_GROUP_0003.....|
00000060   00000000 00000000 41534D5F 50524F47  |........ASM_PROG|
00000070   5F47524F 55500000 00000000 00000000  |_GROUP..........|
00000080   00000000 00000000 41534D5F 50524F47  |........ASM_PROG|
00000090   5F47524F 55505F30 30303300 00000000  |_GROUP_0003.....|
000000A0   00000000 00000000 00000000 00000000  |................|
000000B0   00000000 00000000 00000000 00000000  |................|
000000C0   00000000 00000000 01F61B0C DB9AFC00  |................|
000000D0   01F61B0C DB9B0800 02001000 00100000  |................|
000000E0   0001BC80 00002800 00000002 00000001  |......(.........|
000000F0   00000002 00000000 0003FFFF FFFFFFFF  |................|

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Aix: How to assign a specific PVID
Viewed 7619 times since Fri, Feb 1, 2019
10 AIX Commands to Add to Your Toolbox
Viewed 4448 times since Sat, May 19, 2018
AIX - How to unlock and reset user’s account
Viewed 16760 times since Fri, Jun 8, 2018
AIX Not all filesets for 6100-07_AIX_ML were found
Viewed 3108 times since Tue, Jul 17, 2018
Customizing a NIM Client Restore With a Post-Install Script
Viewed 11083 times since Wed, May 30, 2018
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 46667 times since Fri, Aug 21, 2020
AIX - How to shutdown or reboot
Viewed 5956 times since Fri, Jun 8, 2018
Reconfigure RSCT ID to fix DLPAR issues on cloned AIX systems
Viewed 14017 times since Thu, Feb 21, 2019
Create a mksysb + SPOT using NIM (CLI)
Viewed 5650 times since Tue, Jul 17, 2018
AIX WIKIS developerworks
Viewed 2445 times since Sun, Jun 17, 2018