> jlyj43j:/etc/udev/rules.d# cat z99_netapp_persistant.rules
> # This file contains the rules needed to create persistent device names.
> 
> # we are only interested in add actions for block devices
> SUBSYSTEM!="block",                     GOTO="no_volume_id"
> ACTION!="add",                          GOTO="no_volume_id"
> 
> # skip xen virtual hard disks
> DRIVERS=="vbd",                         GOTO="no_hardware_id"
> 
> KERNEL=="sd*[!0-9]",\
>          IMPORT{program}="netappluns $KERNEL"
> 
> KERNEL=="sd*[!0-9]", 
> ENV{VFILER}=="?*",ENV{LUN}=="?*",ENV{VOLUME}=="?*",ENV{STATE}=="GOOD", \
>          SYMLINK+="disk/by-vfiler/$ENV{VFILER}/$ENV{VOLUME}/$ENV{LUN}"
> 
> # end of processing
> LABEL="no_volume_id"
> 
> 
> The problems seems to be a timing issue.  My 'netappluns' script is 
> acting on /dev/sdX.  But /dev/sdX isn't yet created by udev.  Thus failing.
> 
> Calling udevtrigger manually, after /dev/sdX is created, creates the 
> relevant links.
> 
> Are there any guidelines for integrating udev with open-iscsi?

Get a multipath udev file. They are using mechanism to wait for the device
to settle before acting on it. That might give you some ideas on how to
remove the race conditions.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to