Good to Know Database

CentOS 5: BIND 9 meldet "max open files (1024) is smaller than max sockets (4096)"


Wenn Sie wie im folgenden Listing vom BIND 9 die Meldung max open files (1024) is smaller than max sockets (4096) in der Logdatei /var/log/messages erhalten, sollten Sie die Konfigurationsdatei /etc/named.conf um die Option files erweitern.

[root@centos5 ~]# tail -f /var/log/messages
Apr 11 18:17:55 centos5 named[32669]: starting BIND 9.3.6-P1-RedHat-9.3.6-16.P1.el5 -u named -t /var/named/chroot
Apr 11 18:17:55 centos5 named[32669]: found 2 CPUs, using 2 worker threads
Apr 11 18:17:55 centos5 named[32669]: using up to 4096 sockets
Apr 11 18:17:55 centos5 named[32669]: loading configuration from '/etc/named.conf'
Apr 11 18:17:55 centos5 named[32669]: max open files (1024) is smaller than max sockets (4096)
Apr 11 18:17:55 centos5 named[32669]: using default UDP/IPv4 port range: [1024, 65535]
Apr 11 18:17:55 centos5 named[32669]: using default UDP/IPv6 port range: [1024, 65535]
Apr 11 18:17:55 centos5 named[32669]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 11 18:17:55 centos5 named[32669]: listening on IPv4 interface eth0, 192.168.10.1#53
Apr 11 18:17:55 centos5 named[32669]: listening on IPv4 interface tun0, 192.168.11.1#53
Apr 11 18:17:55 centos5 named[32669]: command channel listening on 127.0.0.1#953
Apr 11 18:17:55 centos5 named[32669]: command channel listening on 192.168.10.1#953
Apr 11 18:17:55 centos5 named[32669]: general: notice: running

Öffnen Sie die Konfigurationsdatei mit einem Editor.

[root@centos5 ~]# vi /etc/named.conf

Fügen Sie im Abschnitt options die zusätzliche Option files ein und setzen den Wert auf 4096.

options {
     [...]
     files 4096;
     };

Nachdem Sie die Konfigurationsdatei erweitert haben, starten Sie den DNS-Daemon neu.

[root@centos5 ~]# service named restart

Überprüfen Sie zum Abschluss die Logdatei /var/log/messages.

[root@centos5 ~]# tail -f /var/log/messages
Apr 11 18:23:33 centos5 named[337]: starting BIND 9.3.6-P1-RedHat-9.3.6-16.P1.el5 -u named -t /var/named/chroot
Apr 11 18:23:33 centos5 named[337]: found 2 CPUs, using 2 worker threads
Apr 11 18:23:33 centos5 named[337]: using up to 4096 sockets
Apr 11 18:23:33 centos5 named[337]: loading configuration from '/etc/named.conf'
Apr 11 18:23:33 centos5 named[337]: using default UDP/IPv4 port range: [1024, 65535]
Apr 11 18:23:33 centos5 named[337]: using default UDP/IPv6 port range: [1024, 65535]
Apr 11 18:23:33 centos5 named[337]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 11 18:23:33 centos5 named[337]: listening on IPv4 interface eth0, 192.168.10.1#53
Apr 11 18:23:33 centos5 named[337]: listening on IPv4 interface tun0, 192.168.11.1#53
Apr 11 18:23:33 centos5 named[337]: command channel listening on 127.0.0.1#953
Apr 11 18:23:33 centos5 named[337]: command channel listening on 192.168.10.1#953
Apr 11 18:23:33 centos5 named[337]: general: notice: running


Dieser Eintrag wurde am 11.04.2011 erstellt und zuletzt am 21.09.2013 bearbeitet.

Direkter Link zu dieser Seite: http://www.gtkdb.de/index_33_1230.html

[ Zur Startseite ]   [ Zur Kategorie ]


Valid XHTML 1.0 Transitional Valid CSS Valid Atom 1.0

© 2004-2018 by Georg Kainzbauer