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. ***