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.
Descriptionnikhil kshirsagar
2020-07-14 03:53:31 UTC
Description of problem:
The lvmthin man page currently says
Metadata check and repair
If thin pool metadata is damaged, it may be repairable. Checking and repairing thin pool metadata is analagous to running fsck/repair on a file system.
...
Command to repair a thin pool:
lvconvert --repair VG/ThinPoolLV
Repair performs the following steps:
...
If the repair does not work, the thin pool LV and its thin LVs are lost.
Can we change the wording to suggest that the meta0 will contain the original damaged metadata and that can be used for possible recovery, if the lvconvert --repair fails to automatically repair metadata?
Customer read the line saying that if repair doesnt work, the thin pool is lost, and they are reluctant to run lvconvert --repair
Marking Verified:Tested in the latest lvm rpms.
kernel-4.18.0-305.7.el8.kpq1 BUILT: Mon May 17 12:55:07 CDT 2021
lvm2-2.03.12-2.el8 BUILT: Tue Jun 1 06:55:37 CDT 2021
lvm2-libs-2.03.12-2.el8 BUILT: Tue Jun 1 06:55:37 CDT 2021
device-mapper-1.02.177-2.el8 BUILT: Tue Jun 1 06:55:37 CDT 2021
device-mapper-libs-1.02.177-2.el8 BUILT: Tue Jun 1 06:55:37 CDT 2021
Manual page lvmthin(7)
If the repair works, the thin pool LV and its thin LVs can be activated. User should manually check if repaired thin pool kernel metadata has all data for all lvm2 known LVs by individual
activation of every thin LV. When all works, user should continue with fsck of all filesystems present on these volumes. Once the thin pool is considered fully functional user may remove
ThinPoolLV_metaN (the LV containing the damaged thin pool metadata) for possible space reuse. For a better performance it may be useful to pvmove the new repaired metadata LV (written to
previous pmspare volume) to a faster PV, e.g. SSD.
If the repair operation fails, the thin pool LV and its thin LVs are not accessible and it may be necessary to restore their content from a backup. In such case the content of unmodified
original damaged ThinPoolLV_metaN volume can be used by your support for more advanced recovery methods.
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:4431
Description of problem: The lvmthin man page currently says Metadata check and repair If thin pool metadata is damaged, it may be repairable. Checking and repairing thin pool metadata is analagous to running fsck/repair on a file system. ... Command to repair a thin pool: lvconvert --repair VG/ThinPoolLV Repair performs the following steps: ... If the repair does not work, the thin pool LV and its thin LVs are lost. Can we change the wording to suggest that the meta0 will contain the original damaged metadata and that can be used for possible recovery, if the lvconvert --repair fails to automatically repair metadata? Customer read the line saying that if repair doesnt work, the thin pool is lost, and they are reluctant to run lvconvert --repair