IBM Support

AIX LVM PVID Sources

How To


Summary

The Logical Volume Manager (LVM) has Physical Volume Identifier (PVID) located in 4 places

Objective

The Logical Volume Manager (LVM) on AIX uses a Physical Volume Identifier (PVID) to keep track of disk drives that are part of an LVM volume group. It is located in 4 places: ODM, disk (IPL), disk (VGDA), and kernel. The values in all 4 places should match.

Environment

AIX

Steps

PVID can be found in 4 places:
1) ODM
odmget command shows PVID from ODM. lspv output reads from the ODM.
# odmget -q "name=hdisk1 and attribute=pvid" CuAt
CuAt:
        name = "hdisk1"
        attribute = "pvid"
        value = "00c64c57fb8f263b0000000000000000"
        type = "R"
        generic = "D"
        rep = "s"
        nls_index = 2

# lspv | grep hdisk1
hdisk1          00c64c57fb8f263b                    vg00            active
2) Disk (IPL)
You can also check PVID in disk by checking x80:
# lquerypv -h /dev/hdisk1 80 10
00000080   00C64C57 FB8F263B 00000000 00000000  |..LW..&;........|
3) Disk (VGDA)
# readvgda hdisk1 | grep pv_id
pv_id:          00c64c57fb8f263b
4) Kernel
You can check the pvid in the kernel using kdb:
 
# kdb
           START              END <name>
0000000000001000 0000000007140000 start+000FD8
F00000002FF47600 F00000002FFE1000 __ublock+000000
000000002FF22FF4 000000002FF22FF8 environ+000000
000000002FF22FF8 000000002FF22FFC errno+000000
F1001104C0000000 F1001104D0000000 pvproc+000000
F1001104D0000000 F1001104D8000000 pvthread+000000
read vscsi_scsi_ptrs OK, ptr = 0xF100091590128E90
(0)> volgrp -n vg00 | grep pvols
pvols.............. F1000C0230260100    opn_pin............ F1000C0230250180
(0)> dd F1000C0230260100
F1000C0230260100: F1000C0230310400 F1000C0230310800  ....01......01..
(0)>  pvol F1000C0230310400 | grep pvid
pvid............... 00C64C57FB8F263B0000000000000000
As you can see, the PVID in the kernel matches the PVID at the ODM, disk (IPL), and disk (VGDA).

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z0000001fMuAAI","label":"AIX General Support"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions"}]

Document Information

Modified date:
04 May 2022

UID

ibm16569263