Bug 186104
Summary: | kernel dm mirror: lvs Copy% overs 100% by lvreduce/lvresize. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Kiyoshi Ueda <kueda> | ||||||
Component: | kernel | Assignee: | Jonathan Earl Brassow <jbrassow> | ||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4.4 | CC: | agk, coughlan, jbrassow, jnomura, mbroz, tao | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHSA-2006-0575 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-08-10 22:51:51 UTC | Type: | --- | ||||||
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: | 181409, 186476 | ||||||||
Attachments: |
|
Description
Kiyoshi Ueda
2006-03-21 17:36:14 UTC
Yeah, this is a problem for me too. Mine actually shrinks a bit in size though: [root@tng1-1 ~]# lvs vg/lv ; dmsetup status vg-lv LV VG Attr LSize Origin Snap% Move Log Copy% lv vg mwi-a- 52.00M lv_mlog 100.00 0 106496 mirror 2 253:3 253:4 104/104 1 AA 3 disk 253:2 A [root@tng1-1 ~]# lvchange -an vg/lv ; lvreduce -L 40M vg/lv; lvchange -ay vg/lv Reducing logical volume lv to 40.00 MB Logical volume lv successfully resized [root@tng1-1 ~]# lvs vg/lv ; dmsetup status vg-lv LV VG Attr LSize Origin Snap% Move Log Copy% lv vg mwi-a- 40.00M lv_mlog 120.00 0 81920 mirror 2 253:3 253:4 96/80 1 AA 3 disk 253:2 A Not sure if this is user-space, kernel-space, or both yet... looks like kernel problem because the table line looks good... The problem is with the bitsets. If you resize down to 32*region_size*n, it works just fine. Otherwise, the bits left at the end of the 32-bit field are counted and the maximum count is surpassed. Created attachment 126440 [details]
Patch to fix problem
I still have to test this patch.
Created attachment 126478 [details]
Patch to fix problem
Was clearing wrong bitset. This one has been tested/verified.
This is an issue with the kernel no user-space. Involves how the log device is read. committed in stream U4 build 35.1. A test kernel with this patch is available from http://people.redhat.com/~jbaron/rhel4/ An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2006-0575.html |