Chinaunix首页 | 论坛 | 博客
  • 博客访问: 484149
  • 博文数量: 67
  • 博客积分: 2952
  • 博客等级: 少校
  • 技术积分: 679
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-24 10:50
文章分类

全部博文(67)

文章存档

2011年(9)

2010年(36)

2009年(8)

2008年(5)

2007年(5)

2006年(4)

我的朋友

分类: LINUX

2010-12-08 16:46:29

[what's the issue?]
one CentOS 5.3 64bit server can't boot up, hangs on starting udev.

Starting the hotplug events dispatcher: udevd
udevd[]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
udevd[]: nss_ldap: failed to bind to LDAP server ldaps://foo.bar: Can'
t contact LDAP server
udevd[]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
udevd[]: nss_ldap: failed to bind to LDAP server ldaps://foo.bar: Can'
t contact LDAP server
udevd[]: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server
udevd[]: nss_ldap: failed to bind to LDAP server ldaps://foo.bar: Can'
t contact LDAP server
udevd[]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)


[what's the root cause?]
when udev start up, it will call /etc/nsswitch.conf, and I configured ldap on this server, so nss_ldap will be used and connected to ldap server, but when udev is starting, network was not started, so nss_ldap can't connect to ldap server, it will try again and again. just like hangs on starting udev

[what's is the solution?]
modify /etc/ldap.conf and change bind_policy from hard to soft.

# Reconnect policy: hard (default) will retry connecting to
# the software with exponential backoff, soft will fail
# immediately.
#bind_policy hard
bind_policy soft


refer to:

阅读(849) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~