dhcpd start failure - dhcpd.leases: file is too long to buffer

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • dhcp-4.1.1-61.P1.el6_10

Issue

File /var/lib/dhcpd/dhpcd.leasesgrows indefinitely which then leads to dhcpd crash upon start:

/var/lib/dhcpd/dhcpd.leases: file is too long to buffer

Resolution

Update to dhcp-4.1.1-63.P1.el6_10 shipped with Advisory RHBA-2018:2900 or newer.

Root Cause

Previously, the DHCP server process tried to allocate memory for the dhcpd.leases file to load it. As a consequence, the DHCP server process terminated unexpectedly. With this update, when the replay mode is disabled, the DHCP server process does not try to allocate memory for the whole dhcpd.leases file, and the described problem no longer occurs.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments