Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When trying a lvconvert with a bit 'weird' extent sizes, the rounding made for the human readable format makes the error a bit nonsensical.
Version-Release number of selected component (if applicable):
lvm2-2.02.115-3.el7.x86_64
How reproducible:
Everytime
Steps to Reproduce:
I ran an automated script which hit it:
SCENARIO - [valid_non_power_2_vg_extentsizes]
Using extent size of 384 KiB
Create pool volumes on top of VGs with *non* power of 2 extent sizes from 128K to somewhere less than 8G
pvcreate --dataalignment 2304k /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1
lvcreate --thinpool POOL --profile thin-performance --zero n -L 1G --poolmetadatasize 4M snapper_thinp
Create LV to be used as an EXTERNAL origin device
lvcreate -L 1G -n origin snapper_thinp
Converting LV into an external thin origin device
lvconvert --thinpool snapper_thinp/POOL --originname extorigin -T origin --yes
Can't use "snapper_thinp/origin" as external origin with "snapper_thinp/POOL" pool. Size 1.00 GiB is not a multiple of pool's chunk size 1.00 MiB.
Actual results:
Can't use "snapper_thinp/origin" as external origin with "snapper_thinp/POOL" pool. Size 1.00 GiB is not a multiple of pool's chunk size 1.00 MiB.
Expected results:
Either forbid creation of 1024 chunk size with extent size of 384 (or something which is not a multiple), or make the error show units which are not rounded (ie. 0.99G or 1.01G), or print some warning so the user knows what is going on.
Additional info:
This error only appears went using an external origin volume with a pool device where a non default '--poolmetadatasize' option is used. If we remove the '--poolmetadatasize 4M' arg during pool creation, everything "just works".