[Samba] Long time before user shows up on member server

Harald Hannelius harald+samba at arcada.fi
Wed Feb 10 08:30:26 UTC 2021


On Tue, 9 Feb 2021, Harald Hannelius via samba wrote:
>
> On Mon, 8 Feb 2021, Rowland penny via samba wrote:
>
>> On 08/02/2021 12:31, Harald Hannelius via samba wrote:
>>> 
>>> I have two Samba-servers acting as ROLE_ACTIVE_DIRECTORY_DC. When creating 
>>> a new user I found out that it takes over 220 seconds before the user 
>>> shows up using 'getent' in a member-server.
>>> 
>>> Is there a way to speed this up a bit?
>> 
>> Just because 'getent' doesn't immediately show a user on a Unix domain 
>> member doesn't mean it isn't available, but if you want to speed things up, 
>> run 'net cache flush' before running getent.
>
> Thanks, this helped a bit. The wait time for the user dropped to 116 seconds. 
> This might be just luck, I have to wait for some more samples to drop in.
>
> No nscd running on the member-server.

Nope, didn't help. I got one user who appeared without looping and another 
that the script waited 299 seconds for it to appear.

Should I maybe run 'net cache flush' withing the loop, what if I run it once 
a second?

-- 

Harald Hannelius | harald.hannelius/a\arcada.fi | +358 50 594 1020



More information about the samba mailing list