Red Hat Bugzilla – Bug 814113
thinp chunksize range issue
Last modified: 2015-01-26 19:10:19 EST
Description of problem:
from the manpage of lvcreate.
-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.
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):
Steps to Reproduce:
Already fixed upstream with man page fix as well.
verified with lvm2-2.02.97-1.el7.x86_64
change the 'version' to 18 since it's fixed in F18