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.

Bug 732465

Summary: Lun's size is not updated after resize of the backing store LV and tgtd reload/targets update
Product: Red Hat Enterprise Linux 6 Reporter: Rami Vaknin <rvaknin>
Component: scsi-target-utilsAssignee: Andy Grover <agrover>
Status: CLOSED CURRENTRELEASE QA Contact: Bruno Goncalves <bgoncalv>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2CC: bgoncalv, mgoldboi, qzhang, yeylon
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-09 12:29:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 803608    

Description Rami Vaknin 2011-08-22 14:40:47 UTC
Description of problem:
Lun's size is not updated after resize of the backing store LV and tgtd reload/targets update of target with 1 Lun

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server release 6.1 (Santiago)
scsi-target-utils-1.0.14-2.el6.x86_64

How reproducible:


Steps to Reproduce:
1. Create target with 100GB backing store LV
2. lvresize the LV to 200GB
3. Reload tgtd + "tgt-admin --update ALL" (both passed successfully)
  
Actual results:
The LV resized successfully to 200GB, however the above LUN's size is still reported as 100GB

Expected results:


Additional info:

From /etc/tgt/targets.conf:

<target rvaknin_iscsi>
    <backing-store /dev/vg_openfiler03/rvaknin_iscsi>
        scsi_sn 547459
        scsi_id rvaknin_iscsi
    </backing-store>
</target>
===========================================================
lvs | grep rvaknin_iscsi:
rvaknin_iscsi  vg_openfiler03 -wi-ao 200.00g
===========================================================
From tgt-admin --show:

Target 84: rvaknin_iscsi
    System information:
        Driver: iscsi
        State: offline
    I_T nexus information:
        I_T nexus: 194
.
.
.
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00540000
            SCSI SN: beaf840
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: null
            Backing store path: None
            Backing store flags: 
        LUN: 1
            Type: disk
            SCSI ID: rvaknin_iscsi
            SCSI SN: 547459
            Size: 107374 MB, Block size: 512
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: rdwr
            Backing store path: /dev/vg_openfiler03/rvaknin_iscsi
            Backing store flags: 
    Account information:
    ACL information:
        ALL

===========================================================
tgt-admin --update --tid=84:
Target --tid=84 is currently not configured
and does not exist in the config file - can't continue!

Comment 1 Rami Vaknin 2011-08-22 14:44:26 UTC
Regarding the "tgt-admin --update --tid=84", it of course should be "tgt-admin --update tid=84" (without the '--'), and it returns without error

Comment 3 RHEL Program Management 2011-10-07 16:05:25 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 6 Ademar Reis 2016-04-13 14:51:13 UTC
*** Bug 770328 has been marked as a duplicate of this bug. ***