dhcpd.leases file is growing out of control after upgrade

Scott Baker bakers at canbytel.com
Mon Aug 5 16:22:57 UTC 2013


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


More information about the dhcp-users mailing list