Bug 2028905
Summary: | thin_check_options --super-block-only does not work any more after update from 8.4 on serveral systems | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Need Real Name <hansjoerg.maurer> | |
Component: | device-mapper-persistent-data | Assignee: | LVM and device-mapper development team <lvm-team> | |
Status: | CLOSED ERRATA | QA Contact: | Filip Suba <fsuba> | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 8.5 | CC: | agk, cmarthal, fsuba, heinzm, jbrassow, lvm-team, mcsontos, msnitzer, mtsai, prajnoha, thornber, zkabelac | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | device-mapper-persistent-data-0.9.0-6.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2030679 (view as bug list) | Environment: | ||
Last Closed: | 2022-05-10 15:21:35 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2030679 |
Description
Need Real Name
2021-12-03 17:33:31 UTC
Hi I have no access to https://issues.redhat.com/browse/RHELPLAN-104738 Is this an know issue which will be fixed? Is there any workarround? regards hansjörg Hi, It's a rule introduced since device-mapper-persistent-data v0.9.0. To prevent recurring errors (e.g., there're still uncaught errors while the NEED_CHECK flag was cleared, results in an inconsistent metadata), the "--clear-needs-check-flag" is not compatible with "--super-block-only" or "--skip-mappings". To workaround this limitation, set thin_check_options to [ "-q", "--skip-mappings" ] or [ "-q", "--clear-needs-check-flag" ]. The former would be more suitable as you need. Since the rule introduced some sort of inconvenience, there's already a cosmetic fix upstream, that allows --clear-needs-check together with --super-block-only or --skip-mappings. Please check the commit 1fe8a0dbd for more information (https://github.com/jthornber/thin-provisioning-tools/commit/1fe8a0dbd). Below is the backport patch for dmpd v0.9.0 el8 and el9, based on upstream 1fe8a0dbd: https://github.com/mingnus/thin-provisioning-tools/commit/f4675e3f3 The patch guarantees compatibilities on the command line interface and program behavior. With this patch, thin_check won't clear the NEEDS_CHECK flag only if -m or --override-mapping-root is applied (which are diagnostic options). This checking is done implicitly, without returning an error or showing error messages. Few test cases are added to verify backward compatibilities: ``` mixing-clear-needs-check-flag ignore-non-fatal-errors-should-pass .................... pass skip-mappings-should-pass .............................. pass super-block-only-should-pass ........................... pass try-clear-needs-check-flag fatal-errors-should-keep ............................... pass ignore-non-fatal-errors-should-clear ................... pass no-errors-should-clear ................................. pass skip-mappings-should-clear ............................. pass super-block-only-should-clear .......................... pass ``` Verified with device-mapper-persistent-data-0.9.0-6.el8. 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 (device-mapper-persistent-data 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-2022:2033 |