News: This forum is now permanently frozen.
Pages: [1]
Topic: Larger DHCP scope and filling up /  (Read 1990 times)
« on: August 18, 2010, 15:44:50 »
awangatboo *
Posts: 14

I have a problem with m0n0wall that I have a work around for.  I would like a real solution.  This m0n0wall installation is in a public place and I have had to set the DHCP server to give out ~2032 IP’s.  There are lots of phones that come in and pick up an IP.  My issue is that after several days the / file system fills up.  It looked to be that the DHPC lease info is filling up /.  My work around is to reboot about once a week.  I run this on a Pentium 4 with 512mb ram and would like to have it were / does not fill up.  Is there a m0n0wall download that has a larger /?  If not is there another way to fix this issue?
« Reply #1 on: August 24, 2010, 14:44:46 »
awangatboo *
Posts: 14

Another solution would be to automate a reboot.  Has anyone somehow scheduled a reboot of a m0n0wall server?  If so how?
« Reply #2 on: August 24, 2010, 17:21:43 »
brushedmoss ****
Posts: 446

what size does the lease file become and are you using 1.32 ?
« Reply #3 on: August 24, 2010, 17:46:25 »
awangatboo *
Posts: 14

In /var/db/dhcpd.leases is 429,280 bytes and /var/db/dhcpd.leases~ is 573,005 bytes.  I also notice I am running version 1.3.  / is currently currently 94% used.  When / gets to 96% it can get to 100% in less than a day.
« Reply #4 on: August 24, 2010, 20:08:00 »
brushedmoss ****
Posts: 446

so , not 1.32 ?  1.32 implemented a shorter cycle of the lease file for dhcp server, so it shouldn't be as big.
« Reply #5 on: August 24, 2010, 20:09:57 »
awangatboo *
Posts: 14

I will update to 1.32.  Hopefully this will help.
« Reply #6 on: August 24, 2010, 20:27:37 »
brushedmoss ****
Posts: 446

ok, to clarify, in 1.31

Quote
- patch to DHCP server daemon to reduce lease file growth

normally the lease file should cycle every 1hr, we reduced this to 5 minutes

http://svn.m0n0.ch/wall/tags/release-1.31/build/patches/packages/isc-dhcpd/patch-server::db.c
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines