It seems like udev is changing its bhaviour since a year or so:
http://www.spinics.net/lists/hotplug/msg03766.html

This makes  le NAME= directive being ignored and wanrs if NAME != KERNEL 
provide name.
As a consequence, and to avoid warnings (and probably erros in the 
future) shouldn't the udev be modified as follow:

--- linux/Documentation/aoe/udev.txt    2011-06-21 22:41:47.000000000 +0200
+++ /etc/udev/rules.d/60-aoe.rules      2011-11-30 17:13:29.894300303 +0100
@@ -16,11 +16,11 @@
  #

  # aoe char devices
-SUBSYSTEM=="aoe", KERNEL=="discover",  NAME="etherd/%k", GROUP="disk", 
MODE="0220"
-SUBSYSTEM=="aoe", KERNEL=="err",       NAME="etherd/%k", GROUP="disk", 
MODE="0440"
-SUBSYSTEM=="aoe", KERNEL=="interfaces",        NAME="etherd/%k", 
GROUP="disk", MODE="0220"
-SUBSYSTEM=="aoe", KERNEL=="revalidate",        NAME="etherd/%k", 
GROUP="disk", MODE="0220"
-SUBSYSTEM=="aoe", KERNEL=="flush",     NAME="etherd/%k", GROUP="disk", 
MODE="0220"
+SUBSYSTEM=="aoe", KERNEL=="discover",  SYMLINK+="etherd/%k",   
GROUP="disk", MODE="0220"
+SUBSYSTEM=="aoe", KERNEL=="err",       SYMLINK+="etherd/%k",   
GROUP="disk", MODE="0440"
+SUBSYSTEM=="aoe", KERNEL=="interfaces",        SYMLINK+="etherd/%k",   
GROUP="disk", MODE="0220"
+SUBSYSTEM=="aoe", KERNEL=="revalidate",        SYMLINK+="etherd/%k",   
GROUP="disk", MODE="0220"
+SUBSYSTEM=="aoe", KERNEL=="flush",     SYMLINK+="etherd/%k",   
GROUP="disk", MODE="0220"

-# aoe block devices
-KERNEL=="etherd*",       NAME="%k", GROUP="disk"
+# aoe block devices
+KERNEL=="etherd*",             GROUP="disk"

This make the warning messages disappear but creates a notable diffrence 
with the old behaviour: character files in /dev/etherd are now just 
symlinks to /dev/

IIUC In order to have character files in /dev/etherd the aoe drivers 
have to provide udev with names like "etherd/chardev" instead of just 
"chardev". I don't know what's better.

regards.

Le 30/06/2011 17:13, Alexandre Chapellon a écrit :
> hello,
>
> After I installed aoe driver from coraid (version 76) I got the 
> following warning messages upon reboot (when udev starts):
>
> udevd-work[608]: kernel-provided name 'discover' and NAME= 
> 'etherd/discover' disagree, please use SYMLINK+= or change the kernel 
> to provide the proper name
> udevd-work[605]: kernel-provided name 'err' and NAME= 'etherd/err' 
> disagree, please use SYMLINK+= or change the kernel to provide the 
> proper name
> udevd-work[610]: kernel-provided name 'flush' and NAME= 'etherd/flush' 
> disagree, please use SYMLINK+= or change the kernel to provide the 
> proper name
> udevd-work[593]: kernel-provided name 'revalidate' and NAME= 
> 'etherd/revalidate' disagree, please use SYMLINK+= or change the 
> kernel to provide the proper name
>
> I'm not an udev expert but found that since version 154 KERNEL and 
> NAME must match.
> I have tried to modify  the /etc/udev/rules.d/60-aoe.rules file by 
> changing KERNEL=="stuff" to KERNEL=="etherd/stuff" but I still have 
> the same messages.
> I also tried, to set add SYMLINK+="stuff" and it still complains.
>
> Warning messages doesn't fear me by themselves. But what makes me 
> unconfortables is that devices nodes err, interfaces, revalidate and 
> flush are now in /dev/ *AND* /dev/etherd/ (unless SYMLINK+="stuff" is 
> set, in wich case /dev/stuff is a symlink to /dev/etherd/stuff)!
> I guess this could lead to some issues.
> There is apparently no way to set the kernel name for udev in 
> userspace... does this is part of the kernel code? shouldn't it be 
> updated?
>
> Regards.
>
> P.S: I am using aoe6-76 on debian 6.0 with udev 164 and kernel 
> 2.6.32-5-xen-amd64
>
>
> -- 
> <http://www.horoa.net>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
>
>
> _______________________________________________
> Aoetools-discuss mailing list
> Aoetools-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/aoetools-discuss

-- 
<http://www.horoa.net>

Alexandre Chapellon

Ingénierie des systèmes open sources et réseaux.
Follow me on twitter: @alxgomz <http://www.twitter.com/alxgomz>


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Aoetools-discuss mailing list
Aoetools-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aoetools-discuss

Reply via email to