I think I found the reason why hwup for zfcp does not trigger udev after
IPL or hwdown.

uevents are only sent the first time a zfcp device is set online (by
using chccwdev -e <device> or echo 1 >
/sys/bus/ccw/drivers/zfcp/<device>/online).
UEVENT[1202158019.941076] add@/class/scsi_host/host3
UEVENT[1202158019.941109] add@/class/fc_host/host3
UDEV  [1202158019.945024] add@/class/fc_host/host3
UDEV  [1202158019.980446] add@/class/scsi_host/host3

After setting the device offline (by using chccwdev -d <device> or echo
0 > /sys/bus/ccw/drivers/zfcp/<device>/online) uevents are not triggered
again and the device is still listed by lszfcp as it would be still
available.
<device> host3

So because no uevent is triggered when setting the device online again
no targets and luns get configured.

The question now is why the device is still listed by lszfcp and why no
event is triggered when setting the device back online?
It appears that fc_host and scsi_host for the device remain registered.
Any ideas how to remove this registration?

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

Reply via email to