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.
Bug 895312 - io_minimal_size and io_opt_size of export should match LV
Summary: io_minimal_size and io_opt_size of export should match LV
Keywords:
Status: CLOSED DUPLICATE of bug 873474
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: targetcli
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Bruno Goncalves
URL:
Whiteboard:
Depends On:
Blocks: 737672
TreeView+ depends on / blocked
 
Reported: 2013-01-15 03:03 UTC by Xiaowei Li
Modified: 2023-03-08 07:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-10 23:46:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xiaowei Li 2013-01-15 03:03:28 UTC
Description of problem:


Version-Release number of selected component (if applicable):
targetcli-2.0rc1.fb19-1.el7.noarch
kernel-3.7.0-0.30.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. create a mdadm raid0 based on 2 devices with the chunk size 4MB
#cat /proc/mdstat 
Personalities : [raid0] 
md0 : active raid0 vdc[1] vdb[0]
      2088960 blocks super 1.2 4096k chunks

2. create the PV on the /dev/md0
#pvs -o+pe_start /dev/md0
  PV         VG   Fmt  Attr PSize PFree 1st PE 
  /dev/md0   vg   lvm2 a--  1.98g 1.91g   8.00m

3. create the vg based on the PV with PE size 8MB ( it's equal to the stripe width of the md0 )
#vgs -o+vg_extent_size
  VG     #PV #LV #SN Attr   VSize  VFree Ext   
  vg       1   1   0 wz--n-  1.98g 1.91g  8.00m

4. create a LV based on the vg then check the LV io_minimal_size and io_opt_size
#blockdev --getiomin --getioopt /dev/vg/lv01 
4194304
8388608

5. create a block store based on the LV then export it via the loop device then check the exported device's io_minimal_size and io_opt_size.
#cat /sys/block/sdc/device/vendor 
LIO-ORG 

#blockdev --getiomin --getioopt /dev/sdc
512
4194304
  
Actual results:
#blockdev --getioopt /dev/sdc /dev/vg/lv01 
4194304
8388608
#blockdev --getiomin /dev/sdc /dev/vg/lv01 
512
4194304


Expected results:
the exported device should has the same io_minimal_size and io_opt_size as the LV's

Additional info:

Comment 1 Andy Grover 2013-02-27 00:49:17 UTC
related to bug 902863.

Comment 3 Xiaowei Li 2013-08-19 13:41:42 UTC
please set the proper devel_ack. thanks a lot.

Comment 7 Andy Grover 2013-10-10 23:46:03 UTC

*** This bug has been marked as a duplicate of bug 873474 ***


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