Bug 1030411
Summary: | resizing thin-snapshot with external origin should return zeros behind origin's end | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Marian Csontos <mcsontos> |
Component: | kernel | Assignee: | Joe Thornber <thornber> |
kernel sub component: | Thin Provisioning | QA Contact: | yanfu,wang <yanwang> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | agk, bdonahue, dwysocha, heinzm, jbrassow, msnitzer, prajnoha, prockai, shyu, thornber, yanwang, zkabelac |
Version: | 6.5 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | kernel-2.6.32-493.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-14 05:37:41 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
Marian Csontos
2013-11-14 11:40:54 UTC
Looks like duplicate of R7 Bug #976045. Let's use this bug for the kernel fix as suggested in bug 976045: "E.g. record the external origin size on table load tc->origin_dev_size = i_size_read(origin_dev->bdev->bd_inode) >> SECTOR_SHIFT; and check the end of the bio data against this in process_bio() when deciding whether to remap or provision. I think it's OK to require that the external origin is not reduced in size and this case does not need handling in the kernel. We may also need to check what happens at the end of the device if the external origin is not an exact multiple of the pool block size." It needs to cope with either device being resized. Related problem could the usage of external origin with the size, that is not an exact multiple of thin pool chunk size. In case like thin pool is using i.e. 192KB chunk size, but external origin has i.e. 1MB (~5.3 * 192) the write to such thin volume work only for the first 5 chunks. 6th chunk seems to be not provisioned and data are always read from external origin, even in the case they were update in the thin volume. LV has been currently patched to prohibit the use of unaligned external origins with upstream commit: https://www.redhat.com/archives/lvm-devel/2014-January/msg00071.html Once the kernel target is fixed - the condition could be relaxed for newer thin pool targets. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Patch(es) available on kernel-2.6.32-493.el6 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. http://rhn.redhat.com/errata/RHSA-2014-1392.html |