Le Thursday 22 November 2007 17:53:08 Cyrille Bollu, vous avez écrit :
> Hi all,
>
> is there something to do to prevent "tar" to lookup for username when it's
> estimating the size of the DLE's (like when you do "ls -ln" instead of "ls
> -l")?
>
> It seems that this process puts a very high load on my LDAP server... Such
> a high load that I'm planing to install a new LDAP slave only for the
> backup
>
> Any clue?
>
Could be... But the problem is, it won't be synchronized in real time AND it
requires that you have shadow passwords!
You could put in a cron, at regular enough intervals, these two commands:
getent passwd >/etc/passwd
getent group >/etc/group
But of course DO A BACKUP OF /etc/passwd FIRST.
This based on the premise that you use nsswitch.conf and that your passwd and
group entries read both "files ldap".
However, the fact that it puts a high load on the LDAP server means one of two
things (sorry,veering off topic here):
1. you have a s*load of files;
2. your LDAP database is not indexed correctly.
You should try and investigate on the LDAP front as well.
--
Francis Galiegue, fg AT one2team DOT com - Ingénieur système
[ATTENTION : CHANGEMENT DE COORDONNÉES !]
One2team - 42 Av. Raymond Poincaré - 75116 PARIS CEDEX
+33683877875, +33178945552
|