Red Hat Bugzilla – Bug 238414
[NetApp-S 5.2 feat] iscsi lun resize dosen't take effect without a restart
Last modified: 2009-06-19 12:55:06 EDT
Description of problem:
Currently, when resizing a LUN on the filer, from say 40G to 50G, the changes
aren't reflected on the host.
For example, you started the iscsid daemon and mapped a LUN of size 40G.
Then you resize the LUN on the filer to 50G. Now if you reload (using
iscsiadm) the iscsi service, still the LUN is reported of size 40G on the
To get the newly updated size a restart of the iscsid daemon is required
which is disruptive is other LUNs are also mapped and mounted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start the iscsid service mapping a LUN.
2. Now resize the LUN on the filer.
3. Do an iscsi reload on the host.
4. The LUN size reported is still the old size
The LUN is still reported to be of the older size.
The new LUN size should be reported on a reload
You can actually just do:
echo 1 > /sys/block/sdX/device/rescan
I think we are adding or have added a tool which does that for you, which is not
iscsi specific since we want this functionality for all pretty much any driver.
But when that is done and when "iscsi reload" is implemented I can hook it in.
Did you make a BZ for RHEL4 too?
Mike - see bug 238413 for a request for RHEL 4.6.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Unfortunately, all features need to be included prior to Beta, and this internal
deadline has passed. Moving to 5.2.
Mike - any updates to this bugzilla for 5.2 consideration?
We can probably just close this. Some code slipped into 5.1 and you can do
iscsiadm -m node -T target -p portal --rescan
iscsiadm -m node --rescan
iscsiadm -m session --rescan
one of the other possible combos.
Netapp please see the README and man pages for --rescan use and try it out.
NetApp: Please try RHEL 5.1, and reopen this bug if needed.