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.
Description of problem:
RFE - Request to add --removemissing to lvmdevices command. For example if a user removes 50 backend luns that are PVs, the --removemissing command could remove all entries from the devices file in one command.
Version-Release number of selected component (if applicable):
lvm2-2.03.17-7.el9
lvm2-libs-2.03.17-7.el9
The new command is: lvmdevices --update --delnotfound.
# cat /etc/lvm/devices/system.devices
# LVM uses devices listed in this file.
# Created by LVM command vgimportdevices pid 1186715 at Mon Jul 24 15:16:15 2023
SYSTEMID=foo
VERSION=1.1.2
IDTYPE=sys_wwid IDNAME=naa.50014ee058bfe7b3 DEVNAME=/dev/sda2 PVID=qaWEiaFIIGJwyAgTWucDK00wVFg0s3dj PART=2
# echo "IDTYPE=sys_wwid IDNAME=naa.123 DEVNAME=/dev/sdx1 PVID=aaa PART=1" >> /etc/lvm/devices/system.devices
# echo "IDTYPE=devname IDNAME=/dev/sdy DEVNAME=/dev/sdy PVID=bbb" >> /etc/lvm/devices/system.devices
# pvs
Devices file sys_wwid naa.123 PVID aaa last seen on /dev/sdx1 not found.
Devices file PVID bbb last seen on /dev/sdy not found.
PV VG Fmt Attr PSize PFree
/dev/sda2 rhel_null-04 lvm2 a-- <464.76g 0
# lvmdevices --update --delnotfound
Devices file sys_wwid naa.123 PVID aaa last seen on /dev/sdx1 not found.
Devices file PVID bbb last seen on /dev/sdy not found.
Not searching for missing devnames, search_for_devnames="none".
Deleting IDTYPE=sys_wwid IDNAME=naa.123 PVID=aaa
Deleting IDTYPE=devname IDNAME=/dev/sdy PVID=bbb
Updated devices file to version 1.1.3
# cat /etc/lvm/devices/system.devices
# LVM uses devices listed in this file.
# Created by LVM command lvmdevices pid 1186745 at Mon Jul 24 15:17:11 2023
SYSTEMID=foo
VERSION=1.1.3
IDTYPE=sys_wwid IDNAME=naa.50014ee058bfe7b3 DEVNAME=/dev/sda2 PVID=qaWEiaFIIGJwyAgTWucDK00wVFg0s3dj PART=2
Comment 6RHEL Program Management
2023-09-23 19:14:57 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.
Comment 7RHEL Program Management
2023-09-23 19:20:09 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.
Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.
To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:
"Bugzilla Bug" = 1234567
In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.