Bug 723065 - mirrored stripe volume gets corrupted when reduce only alters one leg
Summary: mirrored stripe volume gets corrupted when reduce only alters one leg
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.1
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Jonathan Earl Brassow
QA Contact: Corey Marthaler
URL:
Whiteboard:
Depends On: 710618
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-18 22:06 UTC by Corey Marthaler
Modified: 2011-09-06 20:42 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 710618
Environment:
Last Closed: 2011-09-06 20:42:24 UTC
Target Upstream Version:


Attachments (Terms of Use)

Comment 1 Corey Marthaler 2011-07-18 22:07:33 UTC
Confirmed to exist in 6.1 as well.


SCENARIO - [striped_mirror_reduce]
Create a stripe, convert it to a mirror, then verify both legs (only one being striped) get reduced when a reduce is attempted
Make striped volume
Convert striped volume to a 3-way mirror
Simple reduce to verify all legs are affected
  WARNING: Reducing active logical volume to 4.00 MiB
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
  Segment extent reduction 258not divisible by #stripes 7

[root@taft-02 bin]# lvremove mirror_sanity
Do you really want to remove active clustered logical volume reduce_stripe? [y/n]: y
  Segment extent reduction 1not divisible by #stripes 7
  LV segment reduce_stripe:0-4294967295 is incorrectly listed as being used by LV reduce_stripe_mimage_0
  Internal error: LV segments corrupted in reduce_stripe_mimage_0.

Comment 2 Corey Marthaler 2011-09-06 20:42:24 UTC
This test case now works in RHEL6.2.

SCENARIO - [striped_mirror_reduce]
Create a stripe, convert it to a mirror, then verify both legs (only one being striped) get reduced when a reduce is attempted
Make striped volume
Convert striped volume to a 3-way mirror
Simple reduce to verify all legs are affected
  WARNING: Reducing active logical volume to 28.00 MiB
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Deactivating mirror reduce_stripe... and removing


2.6.32-192.el6.x86_64

lvm2-2.02.87-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
lvm2-libs-2.02.87-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
lvm2-cluster-2.02.87-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
udev-147-2.37.el6    BUILT: Wed Aug 10 07:48:15 CDT 2011
device-mapper-1.02.66-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
device-mapper-libs-1.02.66-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
device-mapper-event-1.02.66-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
device-mapper-event-libs-1.02.66-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
cmirror-2.02.87-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011


Note You need to log in before you can comment on or make changes to this bug.