Bug 470710 - [NetApp 5.5 bug] iscsiadm rescan doesn't support lun delete(unmap) updation functionality.
Summary: [NetApp 5.5 bug] iscsiadm rescan doesn't support lun delete(unmap) updation f...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: 5.5
Assignee: Mike Christie
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks: 533192 533941
TreeView+ depends on / blocked
 
Reported: 2008-11-09 07:27 UTC by nandkumar mane
Modified: 2010-01-27 17:19 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-27 17:19:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description nandkumar mane 2008-11-09 07:27:02 UTC
Description of problem:
iscsiadm's -R option does rescan for addition of luns on host. If you unmap one of the mapped lun, iscsiadm rescan doesn't have intelligence to sense unmapped lun and remove its corresponding device entry.

Version-Release number of selected component (if applicable):
initiator-utils-6.2.0.868-0.11.el5

How reproducible:
Very reproducible

Steps to Reproduce:
1.I am assuming you have properly configured iscsi setup on which 3-4 luns are mapped from controller to host.
2.unmap one of the lun from controller.
3.Now run iscsiadm -m session -R
4.iscsiadm doesn't sense unmapped lun.
  
Actual results:
After doing rescan, unmapped device entry doesn't get deleted from host.

Expected results:
Device entry for unmapped luns should be removed from host.

Additional info:
After looking into code I found that iscsiadm rescan is only implemented for lun addition functionality. device deletion is not yet implemented.

Comment 1 Mike Christie 2008-11-10 18:37:34 UTC
iscsiadm uses the kernel interface for rescanning which does not remove devices. It only adds them as you saw. I am changing the component to reflect that we need to modify the kernel.

We can shoot for RHEL 5.4. I am not sure if I will be able to complete it at this time though. Closer to RHEL 5.4 time I will know for sure. If you guys have the resources you can add it upstream and I can port it for you. That would speed things up.

Comment 2 RHEL Program Management 2009-02-16 15:14:17 UTC
Updating PM score.

Comment 3 Mike Christie 2009-02-26 03:26:18 UTC
Conditional NAK: UPSTREAM

I do not think I have time for this because of offload and fcoe, but we might be able to get it done. If we get it upstream then the port should not be too hard. The more difficult issue may be to backport refcounting and state machine fixes that would probably be needed since we will probably be remove devices that are accessed by someone and so the scsi device refcuont would be greater than 0.

Comment 4 nandkumar mane 2009-05-23 21:42:39 UTC
Mike, I've started working on this patch.

One question : Will we have rescan-scsi-bus.sh script included in RHEL5.4 sg3 utils package?

Comment 5 Mike Christie 2009-05-26 15:27:57 UTC
(In reply to comment #4)
> One question : Will we have rescan-scsi-bus.sh script included in RHEL5.4 sg3
> utils package?  

I am adding Rob Evers who is working on that.

I guess if we are adding it, then we could just use that for rescanning.

Comment 7 RHEL Program Management 2009-10-27 22:30:49 UTC
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
release.

Comment 8 Andrius Benokraitis 2009-12-01 21:52:44 UTC
Looking back at the comments, who has the ball here?

Comment 9 Mike Christie 2009-12-03 06:01:22 UTC
I think we could probably just kill this for RHEL 5. For RHEL 5, maybe we should just have users us the rescan bus script. What do others think?

Comment 10 Andrius Benokraitis 2009-12-14 16:23:37 UTC
NetApp - what do you think re: Comment #9?

Comment 11 nandkumar mane 2009-12-15 04:36:54 UTC
Andrius,
I second your opinion. In fact We are asking customers to use rescan bus script to do addition/deletion of lun on RHEL5.4 host.

Comment 12 Andrius Benokraitis 2010-01-27 17:19:02 UTC
Closing based on comments.


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