Bug 1260992

Summary: lvcreate explicit type striped creates linear volume
Product: Red Hat Enterprise Linux 7 Reporter: lejeczek <peljasz>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
lvm2 sub component: Mirroring and RAID QA Contact: cluster-qe <cluster-qe>
Status: CLOSED NOTABUG Docs Contact:
Severity: medium    
Priority: unspecified CC: agk, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, prockai, zkabelac
Version: 7.1   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-08 18:07:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.