On Mon, Aug 29, 2005 at 10:38:17AM +0200, Andreas Herrmann wrote: > Hi, > > What is the correct sequence to register and deregister host/rport/scsi_devices > at the scsi stack? > > ZFCP's sequence is like follows: > > scsi_add_host > fc_remote_port_add (if port succesfully configured/opened in/by zfcp) > scsi_add_device (if unit successfully configured/opened in/by zfcp) 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. > If a zfcp-adapter is set offline I do the following to get rid of the > entries within /sys/class/fc_*: > > fc_remote_port_delete (for each rport registered for this adapter) > fc_remove_host > scsi_remove_host fc_remove_host removes all rports for you. - : 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