Bug 1260992 - lvcreate explicit type striped creates linear volume
lvcreate explicit type striped creates linear volume
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2 (Show other bugs)
7.1
x86_64 Linux
unspecified Severity medium
: rc
: ---
Assigned To: LVM and device-mapper development team
cluster-qe@redhat.com
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-08 07:27 EDT by lejeczek
Modified: 2015-09-08 14:30 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-08 14:07:48 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description lejeczek 2015-09-08 07:27:32 EDT
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 14:07:48 EDT
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 14:20:45 EDT
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 14:30:37 EDT
(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.