[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:
阅读(844) | 评论(0) | 转发(0) |