How do I purge dhcpd.leases? [duplicate]
Solution 1:
From the manual man dhcpd.leases
:
In order to prevent the lease database from growing without bound, the file is rewritten from time to time. First, a temporary lease database is created and all known leases are dumped to it. Then, the old lease database is renamed
/var/lib/dhcpd/dhcpd.leases~
. Finally, the newly written lease database is moved into place.
AFAIK that may fail when file system permissions on the directory /var/lib/dhcpd
prevent the unprivileged user dhcpd runs as from creating that temporary database there and then the leases file will continue to grow.
Change ownership of /var/lib/dhcpd
to the dhcpd user.