Bug 1382860

Summary: what does stripesize have to do with thin/cache pool creation?
Product: Red Hat Enterprise Linux 7 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: Command-line tools QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, rbednar, thornber, zkabelac
Version: 7.3   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.176-5.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 15:18:32 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:

Description Corey Marthaler 2016-10-07 22:20:13 UTC
Description of problem:
Looks like I should have tested other volume types when filing bug 1366745.

[root@host-119 ~]# lvcreate  --yes --type cache-pool -L 500M test/cpool
  Using default stripesize 64.00 KiB.
  Logical volume "cpool" created.

[root@host-119 ~]# lvcreate  --yes --type cache -L 500M test/cpool
  Using default stripesize 64.00 KiB.
  Logical volume "lvol1" created.

[root@host-119 ~]# lvcreate  --yes --type thin-pool -L 500M test/tpool
  Using default stripesize 64.00 KiB.
  Logical volume "tpool" created.


Version-Release number of selected component (if applicable):
lvm2-2.02.166-1.el7    BUILT: Wed Sep 28 02:26:52 CDT 2016
lvm2-libs-2.02.166-1.el7    BUILT: Wed Sep 28 02:26:52 CDT 2016
lvm2-cluster-2.02.166-1.el7    BUILT: Wed Sep 28 02:26:52 CDT 2016
device-mapper-1.02.135-1.el7    BUILT: Wed Sep 28 02:26:52 CDT 2016

Comment 2 Zdenek Kabelac 2016-12-15 10:09:13 UTC
Well - the message got there because of some validation unification for raid code.  I agree the message should be not displayed when just ordinary linear LV is created  (--stripes 1)  (linear is just sub-case of default stripe type being created)

Comment 5 Zdenek Kabelac 2017-11-27 11:36:37 UTC
Addressed primarily with upstream patch:

https://www.redhat.com/archives/lvm-devel/2017-November/msg00085.html

(But few more surrouding patches were added as well to improve stripe handling on cmdline)

Comment 7 Corey Marthaler 2017-12-08 23:34:13 UTC
Fix verified in the latest rpms.

3.10.0-811.el7.x86_64

lvm2-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
lvm2-libs-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
lvm2-cluster-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
lvm2-lockd-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
lvm2-python-boom-0.8.1-5.el7    BUILT: Wed Dec  6 04:15:40 CST 2017
cmirror-2.02.176-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-1.02.145-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-libs-1.02.145-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-event-1.02.145-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-event-libs-1.02.145-5.el7    BUILT: Wed Dec  6 04:13:07 CST 2017
device-mapper-persistent-data-0.7.3-2.el7    BUILT: Tue Oct 10 04:00:07 CDT 2017



[root@host-117 ~]# lvcreate  --yes --type cache-pool -L 500M test/cpool
  Logical volume "cpool" created.
[root@host-117 ~]# lvcreate  --yes --type cache -L 500M test/cpool
  Logical volume "lvol1" created.
[root@host-117 ~]# lvcreate  --yes --type thin-pool -L 500M test/tpool
  Thin pool volume with chunk size 64.00 KiB can address at most 15.81 TiB of data.
  Logical volume "tpool" created.

Comment 10 errata-xmlrpc 2018-04-10 15:18:32 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.

https://access.redhat.com/errata/RHEA-2018:0853