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 1260992 - lvcreate explicit type striped creates linear volume
Summary: lvcreate explicit type striped creates linear volume
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-08 11:27 UTC by lejeczek
Modified: 2021-09-03 12:38 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-08 18:07:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description lejeczek 2015-09-08 11:27:32 UTC
Description of problem:

lvcreate -n 0 --type striped -l 100%vg h300Int0

VG comprises of two identical PVs and LV created will be a linear type, is this right?

man page says:
".. When the type is not explicitly specified an implicit type is selected from combination of options.."


Version-Release number of selected component (if applicable):

lvm2-2.02.115-3.el7_1.1.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Marian Csontos 2015-09-08 18:07:48 UTC
The type was explicitly provided here.

Implicit striped type would be used if `--stripes` were used on command line without the `--type`.

Either `-i|--stripes STRIPES` or a list of PVs to use should be provided on command line.

Man page says raid{4,5,6} is automatically striping over all available PVs, but does not mention striped LVs.

Comment 3 Zdenek Kabelac 2015-09-08 18:20:45 UTC
Note:   linear is  instance of 'stripe' type where the number of stripes is 1.
And when you do not specify number of stripe it defaults to 1.

So when --type stripe is specified without number of stripe, it makes by default linear (which is still stripe)

Comment 4 lejeczek 2015-09-08 18:30:37 UTC
(In reply to Zdenek Kabelac from comment #3)
> Note:   linear is  instance of 'stripe' type where the number of stripes is
> 1.
> And when you do not specify number of stripe it defaults to 1.
> 
> So when --type stripe is specified without number of stripe, it makes by
> default linear (which is still stripe)

What you have just said, and similar things should be in man pages, would be great. Until then myself and people with similar(ly silly after it's been explained) problems might keep on bugging this bugzilla.

many thanks.


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