Re: correct deregistration from scsi_transport_fc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 29, 2005 at 12:02:15PM +0200, Andreas Herrmann wrote:
> On 29.08.2005 10:48 Christoph Hellwig <hch@xxxxxxxxxxxxx> worte:
> 
>   > Never use scsi_add_device with the fc_transport code. 
> fc_remote_port_add
>   > will do a proper lun scan if the added rport is a scsi target.
> 
> Won't work for all zSeries FC host adapters because they are
> virtualized and you can have several virtual adapters using the same
> WWPN/WWNN.  Using LUN masking and zoning it is not possible to
> configure the SAN such that one virtual adapter sees just that LUNs
> that are supposed to be used by it. There is a tool to write an access
> control table to the adapter. This ACT specifies which virtual adapter
> can access which ports and FCP LUNs ... 

That's totally broken.  most FC sans have zoning and access control, but this
is by no way a feature of the HBA.  Your feature is totally broken, different
from other FC setups and must go away.

> A REPORT LUNs scan from adapter X of port Y might report thousands of
> LUNs that I don't like to use with adapter X because they are for
> another virtual adapter.

So what?  That's the same as for every FC SAN, and it is nessecary to
support proper managment applications.

> Thats the reason why I like to stick to
> manual configuration (triggered from zfcp) of scsi_devices. Hence zfcp
> has not enabled a proper lun scan when fc_remote_port_add is
> called. slave_alloc will fail for scsi_devices not added by zfcp
> itself.  (BTW, new FC cards that are already announced will provide a
> feature called NPort Id Virtualization. With this feature each virtual
> adapter will have its own WWPN. This will allow zfcp to use the lun
> scan during fc_remote_port_add.)
> 
> Do you mean, that scsi_add_device is not supposed to work with 
> fc_transport
> code anymore?

It works by accident, but I will veto any updates you're going to send
for this broken behaviour.

>   > fc_remove_host removes all rports for you.
> 
> Ok, works. But it still fails to remove the scsi target representation
> of that rport.

That's intentional.  See the discussion during development of the FC
transport class.  I don't like that behaviour but it's a compromise
we agreed on.

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux