Bug 814113 - thinp chunksize range issue
Summary: thinp chunksize range issue
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Kabelac
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-19 09:25 UTC by Xiaowei Li
Modified: 2015-01-27 00:10 UTC (History)
13 users (show)

Fixed In Version: lvm2-2.02.97-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-07 06:00:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.