Bug 814113

Summary: thinp chunksize range issue
Product: [Fedora] Fedora Reporter: Xiaowei Li <xiaoli>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, mbroz, msnitzer, prajnoha, prockai, qcai, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.02.97-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 06:00:33 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 Xiaowei Li 2012-04-19 09:25:59 UTC
Description of problem:
from the manpage of lvcreate.
>>>snip>>
       -c, --chunksize ChunkSize
              Power of 2 chunk size in sector units (512b).  For snapshot logical volume the value must be between 8 (4KB) and 1024 (512KB) and the default value is 8.  For  thin pool logical volume the value must be between 128 (64KB) and 2097152 (1MB) and the default value is 128.
>>>snip>>>

actually result :
1. wrong chunksize range in the error message
# lvcreate -c 32 -l 2 -T vg/pool1
lvcreate  Chunk size must be a power of 2 in the range 64K to 64K
lvcreate  Run `lvcreate --help' for more information.

2. the max thinp supported chunksize is beyond 1024
# lvcreate -c 2048 -l 10 -T vg/pool3
# lvs -o lv_name,thin_count,chunksize vg/pool3
lvs  LV    #Thi Chunk
lvs  pool3    0 2.00m

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Kabelac 2012-04-19 09:49:57 UTC
Already fixed upstream with man page fix as well.

https://www.redhat.com/archives/lvm-devel/2012-March/msg00085.html

Comment 2 Xiaowei Li 2012-09-03 09:56:20 UTC
verified with lvm2-2.02.97-1.el7.x86_64

Comment 3 Xiaowei Li 2012-11-14 11:28:56 UTC
change the 'version' to 18 since it's fixed in F18