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:
Internal error and confusing error message when running --repair on cmeta.
I have a cache volume used by cache LV.
Running `lvconvert --repair` on cpool's cmeta fails mentioning thin pool:
Repair of thin metadata volume of thin pool vg/cpool_ck69 failed (status:1). Manual repair required!
Device vg-cpool_ck69_cmeta (253:2) is used by another device.
Cannot deactivate thin pool metadata volume cpool_ck69_cmeta.
Also internal error is reported:
Internal error: pool_is_active called with non-pool LV cpool_ck69.
syscall 'open' failed: Device or resource busy
Note: you cannot run this tool with these options on live metadata.
Version-Release number of selected component (if applicable):
lvm2-2.02.130-5.el7.x86_64
Steps to Reproduce:
1. create a cpool with cache volume
2. run:
lvconvert --repair vg/cpool_cmeta
Actual results:
Repair of thin metadata volume of thin pool vg/cpool_ck69 failed (status:1). Manual repair required!
Device vg-cpool_ck69_cmeta (253:2) is used by another device.
Cannot deactivate thin pool metadata volume cpool_ck69_cmeta.
Expected results:
Better error messages.
Additional info:
# lvs -a vg
Using logical volume(s) on command line.
LV VG #Seg Attr LSize Maj Min KMaj KMin Pool Origin Data% Meta% Move Cpy%Sync
[cpool_ck69] vg 1 Cwi---C--- 1.00m -1 -1 -1 -1 0.00 0.97 100.00
[cpool_ck69_cdata] vg 1 Cwi-ao---- 1.00m -1 -1 253 1
[cpool_ck69_cmeta] vg 1 ewi-ao---- 4.03m -1 -1 253 2
lv1 vg 1 Cwi-a-C--- 32.00k -1 -1 253 4 [cpool_ck69] [lv1_corig] 0.00 0.97 100.00
[lv1_corig] vg 1 owi-aoC--- 32.00k -1 -1 253 3
[lvol0_pmspare] vg 1 ewi-a----- 4.03m -1 -1 253 5
# lvconvert --yes --repair vg/cpool_ck69
Internal error: pool_is_active called with non-pool LV cpool_ck69.
syscall 'open' failed: Device or resource busy
Note: you cannot run this tool with these options on live metadata.
Repair of thin metadata volume of thin pool vg/cpool_ck69 failed (status:1). Manual repair required!
Device vg-cpool_ck69_cmeta (253:2) is used by another device.
Cannot deactivate thin pool metadata volume cpool_ck69_cmeta.
Fix verified in the latest rpms.
BEFORE: lvm2-2.02.130-5.el7_2.5
[root@host-006 ~]# lvconvert --repair cache_sanity/pool_cmeta
Can't repair LV "pool_cmeta" of segtype linear.
[root@host-006 ~]# lvconvert --repair cache_sanity/pool
Internal error: pool_is_active called with non-pool LV pool.
syscall 'open' failed: Device or resource busy
Note: you cannot run this tool with these options on live metadata.
Repair of thin metadata volume of thin pool cache_sanity/pool failed (status:1). Manual repair required!
Device cache_sanity-pool_cmeta (253:4) is used by another device.
Cannot deactivate thin pool metadata volume pool_cmeta.
AFTER: lvm2-2.02.161-3.el7.x86_64
[root@host-078 ~]# lvconvert --repair cache_sanity/pool_cmeta
Operation not permitted on striped or linear LV cache_sanity/pool_cmeta.
Operations permitted on a striped or linear LV are:
--merge
--type snapshot
--type thin
--type cache
--type thin-pool
--type cache-pool
--type mirror
--type raid*
[root@host-078 ~]# lvconvert --repair cache_sanity/pool
Operation not permitted on cache pool LV cache_sanity/pool.
Operations permitted on a cache pool LV are:
--splitcache (operates on cache LV)
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.
https://rhn.redhat.com/errata/RHBA-2016-1445.html
Description of problem: Internal error and confusing error message when running --repair on cmeta. I have a cache volume used by cache LV. Running `lvconvert --repair` on cpool's cmeta fails mentioning thin pool: Repair of thin metadata volume of thin pool vg/cpool_ck69 failed (status:1). Manual repair required! Device vg-cpool_ck69_cmeta (253:2) is used by another device. Cannot deactivate thin pool metadata volume cpool_ck69_cmeta. Also internal error is reported: Internal error: pool_is_active called with non-pool LV cpool_ck69. syscall 'open' failed: Device or resource busy Note: you cannot run this tool with these options on live metadata. Version-Release number of selected component (if applicable): lvm2-2.02.130-5.el7.x86_64 Steps to Reproduce: 1. create a cpool with cache volume 2. run: lvconvert --repair vg/cpool_cmeta Actual results: Repair of thin metadata volume of thin pool vg/cpool_ck69 failed (status:1). Manual repair required! Device vg-cpool_ck69_cmeta (253:2) is used by another device. Cannot deactivate thin pool metadata volume cpool_ck69_cmeta. Expected results: Better error messages. Additional info: # lvs -a vg Using logical volume(s) on command line. LV VG #Seg Attr LSize Maj Min KMaj KMin Pool Origin Data% Meta% Move Cpy%Sync [cpool_ck69] vg 1 Cwi---C--- 1.00m -1 -1 -1 -1 0.00 0.97 100.00 [cpool_ck69_cdata] vg 1 Cwi-ao---- 1.00m -1 -1 253 1 [cpool_ck69_cmeta] vg 1 ewi-ao---- 4.03m -1 -1 253 2 lv1 vg 1 Cwi-a-C--- 32.00k -1 -1 253 4 [cpool_ck69] [lv1_corig] 0.00 0.97 100.00 [lv1_corig] vg 1 owi-aoC--- 32.00k -1 -1 253 3 [lvol0_pmspare] vg 1 ewi-a----- 4.03m -1 -1 253 5 # lvconvert --yes --repair vg/cpool_ck69 Internal error: pool_is_active called with non-pool LV cpool_ck69. syscall 'open' failed: Device or resource busy Note: you cannot run this tool with these options on live metadata. Repair of thin metadata volume of thin pool vg/cpool_ck69 failed (status:1). Manual repair required! Device vg-cpool_ck69_cmeta (253:2) is used by another device. Cannot deactivate thin pool metadata volume cpool_ck69_cmeta.