红联Linux门户
Linux帮助

2011-08-03 14:32 udevd[584]: add_to_rules: unknow key

发布时间:2012-07-17 21:43:59来源:红联作者:flyingsnow0102
环境:RHEL5.5、vmware station7.1.4

启动到udev 的时候就会报上面的错误,经过很多的查找才发现这是由于VMtools导致的。

Starting udev: udevd[572]: add_to_rules: unknown key 'SUBSYSTEMS'
udevd[584]: add_to_rules: unknown key 'ATTRS{vendor}'
udevd[584]: add_to_rules: unknown key 'ATTRS{model}'
udevd[584]: add_to_rules: unknown key 'SUBSYSTEMS'
udevd[584]: add_to_rules: unknown key 'ATTRS{vendor}'
udevd[584]: add_to_rules: unknown key 'ATTRS{model}'

进入系统,修改这个文件 /etc/udev/rules.d/99-vmware-scsi-udev.rules
将 Debian systems 和 SuSE / Ubuntu systems 这两个规则注释掉,如下图所示:
[root@oracle11g ~]# cat /etc/udev/rules.d/99-vmware-scsi-udev.rules
#
# VMware SCSI devices Timeout adjustment
#
# Modify the timeout value for VMware SCSI devices so that
# in the event of a failover, we don't time out.
# See Bug 271286 for more information.
#
# Note: The Udev systems vary from distro to distro. Hence all of the
# extra entries.

# Redhat systems
ACTION=="add", BUS=="scsi", SYSFS{vendor}=="VMware, " , SYSFS{model}=="VMware Virtual S", RUN+="/bin/sh -c 'echo 180 >/sys$DEVPATH/device/timeout'"

# Debian systems
#ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware " , ATTRS{model}=="Virtual disk ", RUN+="/bin/sh -c 'echo 180 >/sys$DEVPATH/device/timeout'"

# SuSE / Ubuntu systems
#ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware, " , ATTRS{model}=="VMware Virtual S", RUN+="/bin/sh -c 'echo 180 >/sys$DEVPATH/device/timeout'"

如上图所示,将其注释掉以后重启一下 Linux,此时启动到udev就不会报错了
文章评论

共有 1 条评论

  1. 拉风的老马 于 2012-07-18 09:07:22发表:

    没试过。不管怎地,挺一个