Web lists-archives.com

[Samba] samba-tool ntacl sysvolcheck -> Too many open files




I just realize that i can't run a "samba-tool ntacl sysvolcheck" on my DC's (4.7.6):

ldb: unable to open modules directory '/usr/lib/x86_64-linux-gnu/ldb/modules/ldb' - Too many open files
ldb: unable to open modules directory '/usr/lib/x86_64-linux-gnu/samba/ldb' - Too many open files
.....
>From memory, it was just fine on samba 4.6

If I check system processes and daemons (other than samba), they are using Soft Limit 1024 and Hard Limit 4096 (system default)
All samba processes have been upraised by system init script (thanks Tranquil.it packages):

dnsupdate                         Max open files            16384                16384                files
cldap_server                     Max open files            16384                16384                files
rpc_server                         Max open files            16384                16384                files
winbind_server                Max open files            270                  16384                files
kdc_server                         Max open files            16384                16384                files
notify-daemon                 Max open files            16384                16384                files
ldap_server                       Max open files            16384                16384                files
kccsrv                                   Max open files            16384                16384                files
dreplsrv                               Max open files            16384                16384                files
dnssrv                                  Max open files            16384                16384                files

However, if I run samba-tools ntacl sysvolcheck or reset, they are using system default (Soft Limit 1024) and sysvolcheck failed (not sysvolreset)

A quick solution is to run "ulimit -n 16384 && samba-tool ntacl sysvolcheck"
A deeper solution will be to play with /etc/security/limits.conf or other....

Best regards









-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba