dhcpd.leases file is growing out of control after upgrade
dhcp1 at thehobsons.co.uk
Mon Aug 5 15:36:43 UTC 2013
Scott Baker wrote:
>Before the upgrade the dhcpd.leases would hover around 5
>megs, depending on how recently the server has refreshed the on-disk
>state. After the upgrade, the file only seems to grow. Over the weekend
>my leases file was more than 275 megs! A simple "service dhcpd reload"
>dropped the file back down to a respectable 3.7 megs.
Sounds like the server isn't cleaning up as it should do - by default every hour.
In the same directory asdhcpd.leases you should also see a file calleddhcpd.leases~ which at any time should be less than an hour old. This is the old leases file before the new one is swapped into place. Is this present, and is it's timestamp changing ?
The logic of a cleanup is (AFAIK) :
Write new clean leases file from in-memory tables to temporary file.
If this is successful then
Renamedhcpd.leases todhcpd.leases~ & rename temporary file todhcpd.leases
More information about the dhcp-users