Red Hat Bugzilla – Bug 470710
[NetApp 5.5 bug] iscsiadm rescan doesn't support lun delete(unmap) updation functionality.
Last modified: 2010-01-27 12:19:02 EST
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):
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.
After doing rescan, unmapped device entry doesn't get deleted from host.
Device entry for unmapped luns should be removed from host.
After looking into code I found that iscsiadm rescan is only implemented for lun addition functionality. device deletion is not yet implemented.
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.
Updating PM score.
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.
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?
(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.
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
Looking back at the comments, who has the ball here?
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?
NetApp - what do you think re: Comment #9?
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.
Closing based on comments.