RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1917920 - pvck --dump headers|metadata both report non 0 return codes when run on non 4k page size machines
Summary: pvck --dump headers|metadata both report non 0 return codes when run on non ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lvm2
Version: 8.4
Hardware: ppc
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: David Teigland
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-19 17:07 UTC by Corey Marthaler
Modified: 2021-09-07 11:52 UTC (History)
9 users (show)

Fixed In Version: lvm2-2.03.11-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:02:12 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:1659 0 None None None 2021-05-18 15:02:30 UTC

Description Corey Marthaler 2021-01-19 17:07:59 UTC
Description of problem:
[root@p8-224-node1 ~]# getconf PAGESIZE
65536


[root@p8-224-node1 ~]# pvcreate /dev/mapper/mpatha[12]
  Physical volume "/dev/mapper/mpatha1" successfully created.
  Physical volume "/dev/mapper/mpatha2" successfully created.
[root@p8-224-node1 ~]# vgcreate testvg /dev/mapper/mpatha[12]
  Volume group "testvg" successfully created


[root@p8-224-node1 ~]# pvck --dump metadata /dev/mapper/mpatha1
  CHECK: pv_header.disk_locn[2].offset expected 4096 # for first mda
  metadata text at 66048 crc 0xefbf503d # vgname testvg seqno 1
  ---
testvg {
id = "U2deyK-VstL-YAei-FIac-GUdO-A4dn-77Oad8"
seqno = 1
format = "lvm2"
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192
max_lv = 0
max_pv = 0
metadata_copies = 0

physical_volumes {

pv0 {
id = "nW60gV-6gGc-lRby-Fxvj-WHFh-ulvU-G8pMBr"
device = "/dev/mapper/mpatha1"

status = ["ALLOCATABLE"]
flags = []
dev_size = 110100440
pe_start = 65543
pe_count = 13431
}

pv1 {
id = "XrgjfZ-H4u8-eY0k-EIKa-BZ98-R8pE-3yfqWv"
device = "/dev/mapper/mpatha2"

status = ["ALLOCATABLE"]
flags = []
dev_size = 110100440
pe_start = 65535
pe_count = 13431
}
}


}
# Generated by LVM2 version 2.03.11(2)-git (2020-12-22): Tue Jan 19 10:53:06 2021

contents = "Text Format Volume Group"
version = 1

description = "Write from vgcreate testvg /dev/mapper/mpatha1 /dev/mapper/mpatha2."

creation_host = "p8-224-node1.lab.msp.redhat.com"       # Linux p8-224-node1.lab.msp.redhat.com 4.18.0-268.el8.ppc64le #1 SMP Mon Dec 28 04:29:22 EST 2020 ppc64le
creation_time = 1611075186      # Tue Jan 19 10:53:06 2021


  ---
  Found bad header or metadata values.
[root@p8-224-node1 ~]# echo $?
5


[root@p8-224-node1 ~]# pvck --dump headers /dev/mapper/mpatha1
  label_header at 512
  label_header.id LABELONE
  label_header.sector 1
  label_header.crc 0x9e87a97a
  label_header.offset 32
  label_header.type LVM2 001
  pv_header at 544
  pv_header.pv_uuid nW60gV6gGclRbyFxvjWHFhulvUG8pMBr
  pv_header.device_size 56371425280
  pv_header.disk_locn[0] at 584 # location of data area
  pv_header.disk_locn[0].offset 33558016
  pv_header.disk_locn[0].size 0
  pv_header.disk_locn[1] at 600 # location list end
  pv_header.disk_locn[1].offset 0
  pv_header.disk_locn[1].size 0
  pv_header.disk_locn[2] at 616 # location of metadata area
  pv_header.disk_locn[2].offset 65536
  pv_header.disk_locn[2].size 33492480
  CHECK: pv_header.disk_locn[2].offset expected 4096 # for first mda
  pv_header.disk_locn[3] at 632 # location list end
  pv_header.disk_locn[3].offset 0
  pv_header.disk_locn[3].size 0
  pv_header_extension at 648
  pv_header_extension.version 2
  pv_header_extension.flags 1
  pv_header_extension.disk_locn[0] at 656 # location list end
  pv_header_extension.disk_locn[0].offset 0
  pv_header_extension.disk_locn[0].size 0
  mda_header_2 at 65536 # metadata area
  mda_header_2.checksum 0x8b008381
  mda_header_2.magic 0x204c564d3220785b35412572304e2a3e
  mda_header_2.version 1
  mda_header_2.start 65536
  mda_header_2.size 33492480
  mda_header_2.raw_locn[0] at 65576 # commit
  mda_header_2.raw_locn[0].offset 512
  mda_header_2.raw_locn[0].size 1008
  mda_header_2.raw_locn[0].checksum 0xefbf503d
  mda_header_2.raw_locn[0].flags 0x0
  mda_header_2.raw_locn[1] at 65600 # precommit
  mda_header_2.raw_locn[1].offset 0
  mda_header_2.raw_locn[1].size 0
  mda_header_2.raw_locn[1].checksum 0x0
  mda_header_2.raw_locn[1].flags 0x0
  metadata text at 66048 crc 0xefbf503d # vgname testvg seqno 1
  Found bad header or metadata values.
[root@p8-224-node1 ~]# echo $?
5


Version-Release number of selected component (if applicable):
kernel-4.18.0-268.el8    BUILT: Mon Dec 28 03:47:31 CST 2020
lvm2-2.03.11-0.4.20201222gitb84a992.el8    BUILT: Tue Dec 22 06:35:32 CST 2020
lvm2-libs-2.03.11-0.4.20201222gitb84a992.el8    BUILT: Tue Dec 22 06:35:32 CST 2020

Comment 3 Corey Marthaler 2021-02-01 22:52:42 UTC
Marking Verified:Tested

kernel-4.18.0-268.el8    BUILT: Mon Dec 28 03:47:31 CST 2020
lvm2-2.03.11-2.el8    BUILT: Thu Jan 28 14:41:14 CST 2021
lvm2-libs-2.03.11-2.el8    BUILT: Thu Jan 28 14:41:14 CST 2021


[root@p8-224-node1 ~]# uname -ar
Linux p8-224-node1.lab.msp.redhat.com 4.18.0-268.el8.ppc64le #1 SMP Mon Dec 28 04:29:22 EST 2020 ppc64le ppc64le ppc64le GNU/Linux


[root@p8-224-node1 ~]# pvscan
  PV /dev/mapper/mpatha1   VG VG                  lvm2 [52.46 GiB / 52.46 GiB free]

[root@p8-224-node1 ~]# vgs
  VG                #PV #LV #SN Attr   VSize  VFree 
  VG                  1   0   0 wz--n- 52.46g 52.46g

[root@p8-224-node1 ~]# pvck --dump metadata /dev/mapper/mpatha1
  metadata text at 66048 crc 0x78cb18c7 # vgname VG seqno 1
  ---
VG {
id = "vfnNHd-Tf5F-aIdX-U5oc-ivP2-lxA3-UOSFsg"
seqno = 1
format = "lvm2"
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192
max_lv = 0
max_pv = 0
metadata_copies = 0

physical_volumes {

pv0 {
id = "Y4Ylzl-YEjz-fsTs-CQ39-OQga-TJfC-qymH2m"
device = "/dev/mapper/mpatha1"

status = ["ALLOCATABLE"]
flags = []
dev_size = 110100440
pe_start = 65543
pe_count = 13431
}
}


}
# Generated by LVM2 version 2.03.11(2)-RHEL8 (2021-01-08): Wed Jan 27 14:42:31 2021

contents = "Text Format Volume Group"
version = 1

description = "Write from vgcreate VG /dev/mapper/mpatha1."

creation_host = "p8-224-node1.lab.msp.redhat.com"       # Linux p8-224-node1.lab.msp.redhat.com 4.18.0-268.el8.ppc64le #1 SMP Mon Dec 28 04:29:22 EST 2020 ppc64le
creation_time = 1611780151      # Wed Jan 27 14:42:31 2021


  ---
[root@p8-224-node1 ~]# echo $?
0


[root@p8-224-node1 ~]# pvck --dump headers /dev/mapper/mpatha1
  label_header at 512                                                            label_header.id LABELONE                                                       label_header.sector 1                                                          label_header.crc 0xb46a6824                                                    label_header.offset 32                                                         label_header.type LVM2 001                                                     pv_header at 544                                                               pv_header.pv_uuid Y4YlzlYEjzfsTsCQ39OQgaTJfCqymH2m                             pv_header.device_size 56371425280                                              pv_header.disk_locn[0] at 584 # location of data area                          pv_header.disk_locn[0].offset 33558016
  pv_header.disk_locn[0].size 0
  pv_header.disk_locn[1] at 600 # location list end
  pv_header.disk_locn[1].offset 0
  pv_header.disk_locn[1].size 0
  pv_header.disk_locn[2] at 616 # location of metadata area
  pv_header.disk_locn[2].offset 65536
  pv_header.disk_locn[2].size 33492480
  pv_header.disk_locn[3] at 632 # location list end
  pv_header.disk_locn[3].offset 0
  pv_header.disk_locn[3].size 0
  pv_header_extension at 648
  pv_header_extension.version 2
  pv_header_extension.flags 1
  pv_header_extension.disk_locn[0] at 656 # location list end
  pv_header_extension.disk_locn[0].offset 0
  pv_header_extension.disk_locn[0].size 0
  mda_header_2 at 65536 # metadata area
  mda_header_2.checksum 0x518e92ba
  mda_header_2.magic 0x204c564d3220785b35412572304e2a3e
  mda_header_2.version 1
  mda_header_2.start 65536
  mda_header_2.size 33492480
  mda_header_2.raw_locn[0] at 65576 # commit
  mda_header_2.raw_locn[0].offset 512
  mda_header_2.raw_locn[0].size 804
  mda_header_2.raw_locn[0].checksum 0x78cb18c7
  mda_header_2.raw_locn[0].flags 0x0
  mda_header_2.raw_locn[1] at 65600 # precommit
  mda_header_2.raw_locn[1].offset 0
  mda_header_2.raw_locn[1].size 0
  mda_header_2.raw_locn[1].checksum 0x0
  mda_header_2.raw_locn[1].flags 0x0
  metadata text at 66048 crc 0x78cb18c7 # vgname VG seqno 1
[root@p8-224-node1 ~]# echo $?
0

Comment 8 Corey Marthaler 2021-02-17 17:23:48 UTC
Fix verified with the latest rpms/kernel

[root@p8-224-node1 ~]# uname -ar
Linux p8-224-node1.lab.msp.redhat.com 4.18.0-287.el8.ppc64le #1 SMP Thu Feb 11 03:54:46 EST 2021 ppc64le ppc64le ppc64le GNU/Linux

lvm2-2.03.11-4.el8    BUILT: Thu Feb 11 04:38:15 CST 2021
lvm2-libs-2.03.11-4.el8    BUILT: Thu Feb 11 04:38:15 CST 2021

[root@p8-224-node1 ~]# getconf PAGESIZE
65536

[root@p8-224-node1 ~]# pvcreate /dev/mapper/mpatha1
  Physical volume "/dev/mapper/mpatha1" successfully created.
[root@p8-224-node1 ~]# vgcreate VG /dev/mapper/mpatha1
  Volume group "VG" successfully created with system ID p8-224-node1.lab.msp.redhat.com

[root@p8-224-node1 ~]# pvck --dump metadata /dev/mapper/mpatha1
  metadata text at 66048 crc 0x3c939053 # vgname VG seqno 1
  ---
VG {
id = "Y3AhH3-02sC-J0u3-k3Eh-bnzM-8BFn-fGi3Od"
seqno = 1
format = "lvm2"
status = ["RESIZEABLE", "READ"]
flags = ["WRITE_LOCKED"]
system_id = "p8-224-node1.lab.msp.redhat.com"
extent_size = 8192
max_lv = 0
max_pv = 0
metadata_copies = 0

physical_volumes {

pv0 {
id = "gjgfpS-9SY0-4keG-PaVl-FNoE-I6rC-bjCpeP"
device = "/dev/mapper/mpatha1"

status = ["ALLOCATABLE"]
flags = []
dev_size = 110100440
pe_start = 65543
pe_count = 13431
}
}


}
# Generated by LVM2 version 2.03.11(2)-RHEL8 (2021-01-28): Wed Feb 17 11:20:13 2021

contents = "Text Format Volume Group"
version = 1

description = "Write from vgcreate VG /dev/mapper/mpatha1."

creation_host = "p8-224-node1.lab.msp.redhat.com"       # Linux p8-224-node1.lab.msp.redhat.com 4.18.0-287.el8.ppc64le #1 SMP Thu Feb 11 03:54:46 EST 2021 ppc64le
creation_host_system_id = "p8-224-node1.lab.msp.redhat.com"
creation_time = 1613582413      # Wed Feb 17 11:20:13 2021


  ---
[root@p8-224-node1 ~]# echo $?
0


[root@p8-224-node1 ~]# pvck --dump headers /dev/mapper/mpatha1
  label_header at 512
  label_header.id LABELONE
  label_header.sector 1
  label_header.crc 0xaa8ee829
  label_header.offset 32
  label_header.type LVM2 001
  pv_header at 544
  pv_header.pv_uuid gjgfpS9SY04keGPaVlFNoEI6rCbjCpeP
  pv_header.device_size 56371425280
  pv_header.disk_locn[0] at 584 # location of data area
  pv_header.disk_locn[0].offset 33558016
  pv_header.disk_locn[0].size 0
  pv_header.disk_locn[1] at 600 # location list end
  pv_header.disk_locn[1].offset 0
  pv_header.disk_locn[1].size 0
  pv_header.disk_locn[2] at 616 # location of metadata area
  pv_header.disk_locn[2].offset 65536
  pv_header.disk_locn[2].size 33492480
  pv_header.disk_locn[3] at 632 # location list end
  pv_header.disk_locn[3].offset 0
  pv_header.disk_locn[3].size 0
  pv_header_extension at 648
  pv_header_extension.version 2
  pv_header_extension.flags 1
  pv_header_extension.disk_locn[0] at 656 # location list end
  pv_header_extension.disk_locn[0].offset 0
  pv_header_extension.disk_locn[0].size 0
  mda_header_2 at 65536 # metadata area
  mda_header_2.checksum 0xdc8fd56b
  mda_header_2.magic 0x204c564d3220785b35412572304e2a3e
  mda_header_2.version 1
  mda_header_2.start 65536
  mda_header_2.size 33492480
  mda_header_2.raw_locn[0] at 65576 # commit
  mda_header_2.raw_locn[0].offset 512
  mda_header_2.raw_locn[0].size 915
  mda_header_2.raw_locn[0].checksum 0x3c939053
  mda_header_2.raw_locn[0].flags 0x0
  mda_header_2.raw_locn[1] at 65600 # precommit
  mda_header_2.raw_locn[1].offset 0
  mda_header_2.raw_locn[1].size 0
  mda_header_2.raw_locn[1].checksum 0x0
  mda_header_2.raw_locn[1].flags 0x0
  metadata text at 66048 crc 0x3c939053 # vgname VG seqno 1
[root@p8-224-node1 ~]# echo $?
0

Comment 10 errata-xmlrpc 2021-05-18 15:02:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (lvm2 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1659


Note You need to log in before you can comment on or make changes to this bug.