On Wed, 2011-02-02 at 15:27 -0500, Craig Prescott wrote:
> But if I add an additional target on the same target machine with, say:
> 
> [root@hpcoss1 ~]# echo "add 7:0:1:0 3" 
>  >/proc/scsi_tgt/groups/Default/devices
> 
> the srp_daemon on the initiator never sees the new storage and 
> restarting srp_daemon doesn't seem to help.
> 
> If I remove the SRP scsi devices, unload the ib_srp module, and reload 
> it, I can see the new LUN (and I don't need to restart srp_daemon, 
> either).  But I don't think that is how it is supposed to work.

Sounds about right for the existing code. There's no notification to the
initiator that you added a new LUN on an existing connection, so the LUN
will not show up on the client. There is a mechanism in the SCSI
standard for such things, but the Linux SCSI mid-layer does not
currently implement it.

Restarting the daemon without removing the ib_srp module doesn't help
you, because when you restart the daemon, it notices you already have a
connection to that particular SRP target. Unloading/reloading the ib_srp
module tears down the existing connections, so srp_daemon will cause a
reconnection when it notices.

If you want to avoid having to unload/reload right now, you can manually
tell the client's SCSI layer to scan that LUN to get it to show up.

-- 
Dave Dillow
National Center for Computational Science
Oak Ridge National Laboratory
(865) 241-6602 office

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to