Bug 643365
| Summary: | online resize of LV/ext4 corrupts data | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Zdenek Kabelac <zkabelac> |
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> |
| Status: | CLOSED ERRATA | QA Contact: | Corey Marthaler <cmarthal> |
| Severity: | high | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 5.6 | CC: | agk, antillon.maurizio, dwysocha, heinzm, jbrassow, joe.thornber, mbroz, prajnoha, prockai |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 638052 | Environment: | |
| Last Closed: | 2011-01-13 22:42:24 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: | |||
|
Description
Zdenek Kabelac
2010-10-15 12:09:04 UTC
Fix in lvm2-2.02.74-1.el5. New upstream patches available: http://www.redhat.com/archives/lvm-devel/2010-November/msg00004.html http://www.redhat.com/archives/lvm-devel/2010-November/msg00002.html This doesn't appear fixed in the latest rpms if an fsck is still being attempted. Also, ext4 isn't available in 5.6 correct? I used ext3 in this example.
[root@grant-01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/mirror_sanity-open_fsadm_resize
4.0G 137M 3.7G 4% /mnt/open_fsadm_resize
[root@grant-01 ~]# lvextend -L +10G -r /dev/mirror_sanity/open_fsadm_resize
Extending 2 mirror images.
fsck 1.39 (29-May-2006)
/dev/mapper/mirror_sanity-open_fsadm_resize is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/dev/mapper/mirror_sanity-open_fsadm_resize: recovering journal
/dev/mapper/mirror_sanity-open_fsadm_resize: clean, 11/524288 files, 51312/1048576 blocks
Extending logical volume open_fsadm_resize to 14.00 GB
Logical volume open_fsadm_resize successfully resized
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/mirror_sanity-open_fsadm_resize is mounted on /mnt/open_fsadm_resize; on-line resizing required
Performing an on-line resize of /dev/mapper/mirror_sanity-open_fsadm_resize to 3670016 (4k) blocks.
The filesystem on /dev/mapper/mirror_sanity-open_fsadm_resize is now 3670016 blocks long.
[root@grant-01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
63G 1.6G 58G 3% /
/dev/sda1 99M 17M 78M 18% /boot
tmpfs 4.0G 0 4.0G 0% /dev/shm
/dev/mapper/mirror_sanity-open_fsadm_resize
14G 139M 13G 2% /mnt/open_fsadm_resize
How was this bug moved from ASSIGNED without a comment about what release it's now fixed in, or a respin of the errata packages? (In reply to comment #6) > How was this bug moved from ASSIGNED without a comment about what release it's > now fixed in, or a respin of the errata packages? Because it is not yet fixed neither in errata nor 5.6 build (I mean the additional fixes, not the first version of patch). It is in POST what means it is waiting for build but upstream has fix already. Following fix in lvm2-2.02.74-2.el5. Still doesn't look like anything has changed here. Putting back into ASSIGNED yet again.
[root@taft-01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/mirror_sanity-open_fsadm_resize
4.0G 137M 3.7G 4% /mnt/open_fsadm_resize
[root@taft-01 ~]# lvextend -L +10G -r /dev/mirror_sanity/open_fsadm_resize
Extending 2 mirror images.
fsck 1.39 (29-May-2006)
/dev/mapper/mirror_sanity-open_fsadm_resize is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/dev/mapper/mirror_sanity-open_fsadm_resize: recovering journal
/dev/mapper/mirror_sanity-open_fsadm_resize: clean, 11/524288 files, 51312/1048576 blocks
Extending logical volume open_fsadm_resize to 14.00 GB
Logical volume open_fsadm_resize successfully resized
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/mirror_sanity-open_fsadm_resize is mounted on /mnt/open_fsadm_resize; on-line resizing required
Performing an on-line resize of /dev/mapper/mirror_sanity-open_fsadm_resize to 3670016 (4k) blocks.
The filesystem on /dev/mapper/mirror_sanity-open_fsadm_resize is now 3670016 blocks long.
lvm2-2.02.74-2.el5 BUILT: Tue Nov 9 08:03:06 CST 2010
lvm2-cluster-2.02.74-3.el5 BUILT: Tue Nov 9 08:01:59 CST 2010
device-mapper-1.02.55-2.el5 BUILT: Tue Nov 9 06:41:00 CST 2010
cmirror-1.1.39-10.el5 BUILT: Wed Sep 8 16:32:05 CDT 2010
kmod-cmirror-0.1.22-3.el5 BUILT: Tue Dec 22 13:39:47 CST 2009
Sigh. Yes, that is still wrong. It should not have prompted with that question and it should not have run the fsck. Looks like regression in fsadm detection of mounted filesystem - where the combination with util-linux gives yet another variant of how to store dm name in /proc/mounts. Fixed by this patch: https://www.redhat.com/archives/lvm-devel/2010-November/msg00034.html Fix in lvm2-2.02.74-3.el5. Fix verified in the latest rpm (lvm2-2.02.74-3.el5).
[root@taft-01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/mirror_sanity-open_fsadm_resize
4.0G 137M 3.7G 4% /mnt/open_fsadm_resize
[root@taft-01 ~]# lvextend -L +10G -r /dev/mirror_sanity/open_fsadm_resize
Extending 2 mirror images.
Extending logical volume open_fsadm_resize to 14.00 GB
Logical volume open_fsadm_resize successfully resized
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/mirror_sanity-open_fsadm_resize is mounted on /mnt/open_fsadm_resize; on-line resizing required
Performing an on-line resize of /dev/mapper/mirror_sanity-open_fsadm_resize to 3670016 (4k) blocks.
The filesystem on /dev/mapper/mirror_sanity-open_fsadm_resize is now 3670016 blocks long.
[root@taft-01 ~]# echo $?
0
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 therefore 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/RHBA-2011-0052.html |