Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 723065

Summary: mirrored stripe volume gets corrupted when reduce only alters one leg
Product: Red Hat Enterprise Linux 6 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Jonathan Earl Brassow <jbrassow>
Status: CLOSED WORKSFORME QA Contact: Corey Marthaler <cmarthal>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.1CC: agk, coughlan, dwysocha, heinzm, jbrassow, martinez, mbroz, prajnoha, prockai, thornber, zkabelac
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 710618 Environment:
Last Closed: 2011-09-06 20: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:
Bug Depends On: 710618    
Bug Blocks:    

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