>In short, the behaviour should be the same for the latest SLES9 update >kernel and the latest SLES10 update. > >zfcp does not create any udev/hotplug events. Related events are: > - The CCW device is attached to the system > - The CCW device is removed from the system. > - A SCSI host adapter is registered from zfcp. > - The SCSI host adapter is removed from zfcp. > >Setting the CCW device online or offline does not generate >udev/hotplug events. > >You might observe the fact that in old SLES9 kernels, the SCSI host >adapter for zfcp was registered when setting the CCW device online and >unregistered when setting the CCW device offline. This was changed, so >that setting the CCW device offline, does not remove the SCSI host >adapter. The change was necessary, because going through the sequence >"offline adapter" -> "online adapter" has to present the same SCSI >devices to not confuse the multipathing layer. > >Detaching and reattaching the subchannel should trigger the proper >events for the hwup and hwdown scripts. > >As an alternative, i would suggest putting the FCP adapters, ports and >LUNs in some simple scripts, that do not rely on hotplug events. All >that is required is a sequence like: >echo 1 > /sys/bus/ccw/drivers/zfcp/0.0.181d/online >echo 0x500507630303c562 > /sys/bus/ccw/drivers/zfcp/0.0.181d/port_add >echo 0x401040C300000000 > /sys/bus/ccw/drivers/zfcp/0.0.181d/0x500507630303c562/unit_add >echo 0x401040C400000000 > /sys/bus/ccw/drivers/zfcp/0.0.181d/0x500507630303c562/unit_add > >-- >Christof Schmitt
Thanks for all your replies! Since hwdown and hwup is not useable (at least for me) because SCSI host adapter is not removed anymore I followed the suggestion to configure the tape devices using a script. We don't use multipathing for tape devices, is there a way to force the old behaviour, scsi_transport_fc parameters dev_loss_tmo and remove_on_dev_loss may be related? I had to add some entries to /etc/udev/rules.d/60-persistent-storage.rules to get the persistent device names /dev/tape/by-id/*-generic for scsi generic device nodes /dev/sg* as with SLES9. Andreas Mayer Telekom Austria ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
