Bernhard Gschaider
2008-Oct-02 15:08 UTC
[CentOS] Services take a long time during initialzation (LDAP-authentication)
Hi! I've got a CentOS4.7-machine as a fileserver. The machine also serves as the LDAP-server against which all regular users are authenticated. The problem I am having is that the machine takes a very long time to boot. Most of the services start up rather quick, but three services take quite a long time (extending the boot time to over half an hour, which is .... long) The three services are (in that order): - NFS statd - LDAP - NFS quota As soon as the LDAP-Service (and sshd) has started I can remotly log into the machine: the rpc.quotad has started but takes no CPU-time (so I guess he must be waiting for something) Some other observations I had: - a restart of LDAP takes several minutes - if the LDAP-service is down a "su ldap" (ldap IS in /etc/passwd) seems to hang. The ldap-service-script does such a su to check the configuration so I guess that is what takes the service so long) Could anyone give me a hint what the problem could be and how to fix it? Is any more information required (don't want to spam you with the nsswitch.conf and the whole pam.d-stuff)? Bernhard
Craig White
2008-Oct-02 15:17 UTC
[CentOS] Services take a long time during initialzation (LDAP-authentication)
On Thu, 2008-10-02 at 17:08 +0200, Bernhard Gschaider wrote:> Hi! > > I've got a CentOS4.7-machine as a fileserver. The machine also serves > as the LDAP-server against which all regular users are > authenticated. The problem I am having is that the machine takes a > very long time to boot. Most of the services start up rather quick, > but three services take quite a long time (extending the boot time to > over half an hour, which is .... long) > > The three services are (in that order): > > - NFS statd > - LDAP > - NFS quota > > As soon as the LDAP-Service (and sshd) has started I can remotly log > into the machine: the rpc.quotad has started but takes no CPU-time (so > I guess he must be waiting for something) > > Some other observations I had: > - a restart of LDAP takes several minutes > - if the LDAP-service is down a "su ldap" (ldap IS in /etc/passwd) > seems to hang. The ldap-service-script does such a su to check the > configuration so I guess that is what takes the service so long) > > Could anyone give me a hint what the problem could be and how to fix > it? Is any more information required (don't want to spam you with the > nsswitch.conf and the whole pam.d-stuff)?---- add this to the bottom of /etc/ldap.conf timelimit 30 bind_timelimit 30 bind_policy soft nss_initgroups_ignoreusers root,ldap Craig
Reasonably Related Threads
- nss_ldap failed to bind to LDAP server 127.0.0.1
- XFS-filesystem corrupted by defragmentation Was: Performance problems with XFS on Centos 5.4
- Preventing hour-long fsck on ext3-filesystem
- virt-manager crashes Host during installation of guest
- Problem with evolution while upgrading to CentOS 5.2