dhcpd.leases file is growing out of control after upgrade

Shawn Routhier sar at isc.org
Mon Aug 5 16:54:42 UTC 2013



On Aug 5, 2013, at 9:22 AM, Scott Baker wrote:

> On 08/05/2013 08:53 AM, Scott Baker wrote:
>> There is a dhcpd.leases~ file, but it does NOT appear to have been
>> updated in the last 50 minutes:
>> 
>>  6628 -rw-r--r--   1 dhcpd dhcpd   6786675 Aug  5 08:38 dhcpd.leases
>> 278984 -rw-r--r--   1 dhcpd dhcpd 285674779 Aug  5 07:51 dhcpd.leases~
>> 
>> I restarted the dhcp server 7:51 to clean up the file so I guess that
>> makes sense.
> 
> :while true ; do date ; ls /var/lib/dhcpd/dhcpd.leases -lsah; sleep 600;
> done;
> Mon Aug  5 08:10:17 PDT 2013
> 4.4M -rw-r--r-- 1 dhcpd dhcpd 4.4M Aug  5 08:10 /var/lib/dhcpd/dhcpd.leases
> Mon Aug  5 08:20:17 PDT 2013
> 5.0M -rw-r--r-- 1 dhcpd dhcpd 5.0M Aug  5 08:20 /var/lib/dhcpd/dhcpd.leases
> Mon Aug  5 08:30:17 PDT 2013
> 5.9M -rw-r--r-- 1 dhcpd dhcpd 5.9M Aug  5 08:30 /var/lib/dhcpd/dhcpd.leases
> Mon Aug  5 08:40:17 PDT 2013
> 6.6M -rw-r--r-- 1 dhcpd dhcpd 6.6M Aug  5 08:40 /var/lib/dhcpd/dhcpd.leases
> Mon Aug  5 08:50:17 PDT 2013
> 7.5M -rw-r--r-- 1 dhcpd dhcpd 7.5M Aug  5 08:50 /var/lib/dhcpd/dhcpd.leases
> Mon Aug  5 09:00:17 PDT 2013
> 8.2M -rw-r--r-- 1 dhcpd dhcpd 8.2M Aug  5 09:00 /var/lib/dhcpd/dhcpd.leases
> Mon Aug  5 09:10:17 PDT 2013
> 8.8M -rw-r--r-- 1 dhcpd dhcpd 8.8M Aug  5 09:10 /var/lib/dhcpd/dhcpd.leases
> Amen Mon Aug  5 09:20:17 PDT 2013
> 9.7M -rw-r--r-- 1 dhcpd dhcpd 9.7M Aug  5 09:20 /var/lib/dhcpd/dhcpd.leases
> 
> I've been keeping an eye on that file for the last 90 minutes. It's
> growing pretty consistently. If I were to restart DHCP I'm sure it would
> shrink again, but I shouldn't have to do that.
> 
> 
> -- 
> Scott Baker - Canby Telcom
> System Administrator - RHCE - 503.266.8253
> _______________________________________________
> 

There was an issue in how the server re-wrote v6 lease files.
We added a patch for this in 4.2.4 and 4.1-ESV-R5 so it should
be working correctly in 4.2.5.

Please check that you are running at least 4.2.4.  If you got the code
from somewhere other than ISC (from a distro package for example)
check that the RELNOTES includes a note for ticket 24887. 

Shawn


More information about the dhcp-users mailing list