Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
When using LVM1 (legacy) metadata and lvmetad together, LVM commands could run into infinite loops (hang) when invoked. The problem (which was fixed) was a failure in "pvscan --cache" to read part of LVM1 metadata.
Description of problem:
when creating lvm1 type PV + VG, pvs enters infinite loop after vgscan --cache.
Version-Release number of selected component (if applicable):
upstream lvm2
How reproducible:
100%
Steps to Reproduce:
PV1=/dev/PV1
VG=vg
pvcreate --metadatatype 1 $PV1
vgscan --cache
pvs # OK
vgcreate --metadatatype 1 $VG $PV1
vgs # LVM1 type VG is not listed
pvs # ERROR
Actual results:
vgs not showing $VG
infinite loop after pvs
Expected results:
vgs should list $VG
pvs should list PVs
Additional info:
*Updated reproducer*: after vgcreate run `vgscan --cache`
The repeating part in `pvs -vvvv` is following:
#format1/disk-rep.c:404 Found /dev/vdh1 in VG snapper
#device/dev-io.c:577 Closed /dev/vdh1
#device/dev-cache.c:600 unknown device: stat failed: No such file or directory
#metadata/metadata.c:3626 <backtrace>
#metadata/metadata.c:2771 <backtrace>
#format1/format1.c:317 Reading physical volume data /dev/vdh1 from disk
#device/dev-io.c:524 Opened /dev/vdh1 RO O_DIRECT
#device/dev-io.c:137 /dev/vdh1: block size is 512 bytes
Looks like this is caused by missing VG record.
To be sure: this happens only *with lvmetad running*.
Also: `lvremove` any LV on lvm1 type VG is displaying errors (what again may be related) and `vgscan --cache` is not the way to sort it out.
I am happy with "Release note only" solution: lvmetad + lvm1 is not supported.
But should this be fixed, please verify other operations as well.
Can't reproduce in tests. I have pushed the following test:
. lib/test
test -e LOCAL_LVMETAD || skip
aux prepare_devs 2
pvcreate --metadatatype 1 $dev1
vgscan --cache
pvs | grep $dev1
vgcreate --metadatatype 1 $vg1 $dev1
vgs | grep $vg1
pvs | grep $dev1
and it passes both on my machine and in hydra. Any further details you could share to help track this down?
(In reply to comment #4)
> Can't reproduce in tests.
You must run vgscan --cache after vgcreate:
(In reply to comment #1)
> *Updated reproducer*: after vgcreate run `vgscan --cache`
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2013-0501.html
Description of problem: when creating lvm1 type PV + VG, pvs enters infinite loop after vgscan --cache. Version-Release number of selected component (if applicable): upstream lvm2 How reproducible: 100% Steps to Reproduce: PV1=/dev/PV1 VG=vg pvcreate --metadatatype 1 $PV1 vgscan --cache pvs # OK vgcreate --metadatatype 1 $VG $PV1 vgs # LVM1 type VG is not listed pvs # ERROR Actual results: vgs not showing $VG infinite loop after pvs Expected results: vgs should list $VG pvs should list PVs Additional info: