Bug 1915492
| Summary: | allow forced detach of damaged cachevol | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | David Teigland <teigland> |
| Component: | lvm2 | Assignee: | David Teigland <teigland> |
| lvm2 sub component: | Cache Logical Volumes | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | high | CC: | agk, cmackows, cmarthal, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, zkabelac |
| Version: | 8.3 | Keywords: | Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.03.12-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 19:45:25 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
David Teigland
2021-01-12 18:02:08 UTC
pushed to main branch https://sourceware.org/git/?p=lvm2.git;a=commit;h=cb54d0801d776205788f8f46b31dd9e487833343 Fix verified in the latest rpms. kernel-4.18.0-310.el8 BUILT: Thu May 27 14:24:00 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 SCENARIO - [verify_writecache_error_attr_after_offline_pool_corruption] Create a snapshot of writecache origin and then verify new (E)rror attribute after OFFLINE pool corruption *** Writecache info for this scenario *** * origin (slow): /dev/sdd1 * pool (fast): /dev/sdi1 ************************************ Adding "slow" and "fast" tags to corresponding pvs Create origin (slow) volume lvcreate --yes --wipesignatures y -L 4G -n cworigin writecache_sanity @slow Create writecache cvol (fast) volumes lvcreate --yes -L 4G -n POOL writecache_sanity @fast Deactivate *ONLY* fast pool before conversion to write cache (SEE bug 1185347) Create writecached volume by combining the cache pool (fast) and origin (slow) volumes lvconvert --yes --type writecache --cachesettings 'low_watermark=21 high_watermark=92 writeback_jobs=1531 autocommit_blocks=1118 autocommit_time=2014' --cachevol writecache_sanity/POOL writecache_sanity/cworigin Placing an XFS filesystem on origin volume Mounting origin volume Writing files to /mnt/cworigin Checking files on /mnt/cworigin Creating thin snapshot of origin volume lvcreate --yes -s /dev/writecache_sanity/cworigin -c 128 -n snap -L 500M Mounting thin snapshot volume and origin mkdir -p /mnt/snap mount -o nouuid /dev/writecache_sanity/snap /mnt/snap Checking files on /mnt/snap dmsetup table | grep writecache_sanity-POOL_cvol Swapping the current pool device table (writecache_sanity-POOL_cvol: 0 8388608 linear 8:129 2048) for an error target dmsetup suspend writecache_sanity-cworigin dmsetup suspend writecache_sanity-POOL_cvol Loading in new pool device table (0 8388608 error 8:129 2048) dmsetup load writecache_sanity-POOL_cvol --table " 0 8388608 error 8:129 2048" dmsetup resume writecache_sanity-POOL_cvol dmsetup resume writecache_sanity-cworigin Attempt --repair on live pool (should fail) lvconvert --yes --repair writecache_sanity/POOL_cvol Command on LV writecache_sanity/POOL_cvol does not accept LV type linear. Command not permitted on LV writecache_sanity/POOL_cvol. Attempt to split off write cache pool (should spin and cause the (E)rror state mentioned in bug 1805893) lvconvert --force --splitcache writecache_sanity/cworigin Detaching writecache setting cleaner. Sending splitcache pid 5050 a SIGINT Detaching writecache cleaning 736636 blocks This command can be cancelled and rerun to complete writecache detach. lvs attribute:owi-a-C-E- Now deactivate and the force spilt should work (RFE 1915492) lvchange -an writecache_sanity lvconvert --yes --force --splitcache writecache_sanity/cworigin WARNING: Data may be lost by detaching writecache without flushing. lvremove -f writecache_sanity 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 |