Bug 1443880
| Summary: | lvconvert should not accept --cachepolicy cleaner and --cachemode writeback together | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Bruno Goncalves <bgoncalv> |
| Component: | lvm2 | Assignee: | David Teigland <teigland> |
| lvm2 sub component: | Cache Logical Volumes | QA Contact: | Bruno Goncalves <bgoncalv> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, zkabelac |
| Version: | 7.4 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.171-2.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 21:52:19 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: | |||
|
Description
Bruno Goncalves
2017-04-20 08:11:10 UTC
Yep - original version of lvm2 supported this combination by chance - however cleaner policy with writeback is not supported anymore - libdm is automatically always using 'writethrough' cache mode with cleaner policy. We have couple choices here: 1. Reject command because converting or creating any cached LV with cleaner policy is not really usable. 2. Reject command because cleaner + writeback is not supported. 3. Automagically switch to 'writethrough' with some printed WARNING. Exception? Upstream: Yes Justification: Better checks to avoid meaningless combination of options. Tested with lvm2-2.02.171-2.el7, the commands reject the options as expected: # lvconvert --yes --type cache-pool --cachepolicy cleaner --cachemode writeback -c 32 --poolmetadata cache_sanity/pool_meta cache_sanity/pool Cache mode "writeback" is not compatible with cache policy "cleaner". 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://access.redhat.com/errata/RHBA-2017:2222 |