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 852440

Summary: --alloc anywhere only works with raid1, not raid4, raid5, or raid6
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.3CC: agk, cmarthal, dwysocha, heinzm, jbrassow, msnitzer, pm-eus, prajnoha, prockai, thornber, zkabelac
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.95-10.el6_3.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-23 11:30:00 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: 832596    
Bug Blocks:    

Description RHEL Program Management 2012-08-28 13:43:57 UTC
This bug has been copied from bug #832596 and has been proposed
to be backported to 6.3 z-stream (EUS).

Comment 5 Corey Marthaler 2012-09-10 19:49:19 UTC
Verified these test cases now pass with the latest 6.3.z rpms.

SCENARIO (raid4) - [alloc_anywhere]
Create a 3-way raid4 volume using only 2 physical devices
lvcreate --type raid4 -i 3 -n alloc_anywhere --alloc anywhere -L 150M raid_sanity /dev/sde2:0-1500 /dev/sdf1:0-1500
image0 should be on /dev/sde2
image1 should be on /dev/sdf1
image2 should be on either /dev/sde2 or /dev/sdf1
Deactivating raid alloc_anywhere... and removing


SCENARIO (raid5) - [alloc_anywhere]
Create a 3-way raid5 volume using only 2 physical devices
lvcreate --type raid5 -i 3 -n alloc_anywhere --alloc anywhere -L 150M raid_sanity /dev/sdb1:0-1500 /dev/sdf2:0-1500
image0 should be on /dev/sdb1
image1 should be on /dev/sdf2
image2 should be on either /dev/sdb1 or /dev/sdf2
Deactivating raid alloc_anywhere... and removing


SCENARIO (raid6) - [alloc_anywhere]
Create a 3-way raid6 volume using only 2 physical devices
lvcreate --type raid6 -i 3 -n alloc_anywhere --alloc anywhere -L 150M raid_sanity /dev/sdf2:0-1500 /dev/sdf1:0-1500
image0 should be on /dev/sdf2
image1 should be on /dev/sdf1
image2 should be on either /dev/sdf2 or /dev/sdf1
Deactivating raid alloc_anywhere... and removing


2.6.32-279.el6.x86_64
lvm2-2.02.95-10.el6_3.1    BUILT: Tue Aug 28 09:31:04 CDT 2012
lvm2-libs-2.02.95-10.el6_3.1    BUILT: Tue Aug 28 09:31:04 CDT 2012
lvm2-cluster-2.02.95-10.el6_3.1    BUILT: Tue Aug 28 09:31:04 CDT 2012
udev-147-2.41.el6    BUILT: Thu Mar  1 13:01:08 CST 2012
device-mapper-1.02.74-10.el6_3.1    BUILT: Tue Aug 28 09:31:04 CDT 2012
device-mapper-libs-1.02.74-10.el6_3.1    BUILT: Tue Aug 28 09:31:04 CDT 2012
device-mapper-event-1.02.74-10.el6_3.1    BUILT: Tue Aug 28 09:31:04 CDT 2012
device-mapper-event-libs-1.02.74-10.el6_3.1    BUILT: Tue Aug 28 09:31:04 CDT 2012
cmirror-2.02.95-10.el6_3.1    BUILT: Tue Aug 28 09:31:04 CDT 2012

Comment 7 errata-xmlrpc 2012-10-23 11:30:00 UTC
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/RHBA-2012-1399.html