Red Hat Bugzilla – Bug 1260992
lvcreate explicit type striped creates linear volume
Last modified: 2015-09-08 14:30:37 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:
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.
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)
(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.