Tuesday, December 28, 2021

Fix pi-hole disk keep getting full

Unfortunately, the default setting of pi-hole allows small pi-hole installations to fail due to disk getting full. The FTL database file /etc/pihole/pihole-FTL.db captures logging for 365 days by default, and it can grow to multi-gigabytes within that period.

First, stop the service:

sudo service pihole-FTL stop

If your disk is already full, first delete the pihole-FTL.db file by doing:

sudo rm /etc/pihole-FTL.db

Then add MAXDBDAYS configuration in your /etc/pihole/pihole-FTL.conf file as follows:

  1. sudo vi /etc/pihole/pihole-FTL.conf
  2. Add a new line in the config file: "MAXDBDAYS=30" (e.g. if you want logging kept for 30 days)
  3. :wq command to save and quit vi
And start the service:

sudo service pihole-FTL start

That should allow your pi-hole installation to operate for a long time. FYI I see about 300MB pihole-FTL.db size after 30 days in my home network.

No comments:

Post a Comment