dhcpd.leases file is growing out of control after upgrade

Doug Barton dougb at dougbarton.us
Mon Aug 5 18:06:58 UTC 2013


On 08/05/2013 09:59 AM, Scott Baker wrote:
> :ls -lsa
> total 291628
>       4 drwxr-xr-x   2 root  root       4096 Aug  5 07:51 .

This is your problem. The directory is not writable by the dhcpd user, 
so it cannot swap the leases file while running unprivileged. When you 
restart the server it can write out the new leases file before it drops 
privileges. You should actually be seeing error messages about this in 
your logs.

Change the owner of the directory to dhcpd and it should work fine.

hope this helps,

Doug


>       4 drwxr-xr-x. 33 root  root       4096 Aug  1 11:10 ..
>       0 -rw-r--r--   1 root  root          0 Aug 11  2011 dhcpd6.leases
>   12636 -rw-r--r--   1 dhcpd dhcpd  12937007 Aug  5 09:58 dhcpd.leases
> 278984 -rw-r--r--   1 dhcpd dhcpd 285674779 Aug  5 07:51 dhcpd.leases~



More information about the dhcp-users mailing list