Free Up Pi-Hole Disk Space Usage

Channel:
Subscribers:
14,400
Published on ● Video Link: https://www.youtube.com/watch?v=CPdoKTENQVM



Duration: 1:12
1,135 views
16


#PiHole #DNS #AdBlocker #DiskCleanup

Full steps can be found at https://i12bretro.github.io/tutorials/0613.html

--------------------------------------------------------------------
Cleaning Log Files
--------------------------------------------------------------------
   01. Log into the Pi-Hole server
   02. Run the following commands in a terminal window
         # output current pihole db size
         sudo du /etc/pihole/pihole-FTL.db -h
         # flush pihole logs
         pihole flush
         # stop pihole FTL service
         sudo systemctl stop pihole-FTL
         # delete the FTL database file
         sudo rm /etc/pihole/pihole-FTL.db
         # stop pihole FTL service
         sudo systemctl start pihole-FTL
         # output reduced pihole db size
         sudo du /etc/pihole/pihole-FTL.db -h
 
--------------------------------------------------------------------
Reduce Long Term Log Lifespan
--------------------------------------------------------------------
By default, Pi-hole keeps long term DNS logs for 365 days. This lifespan can be changed by altering the MAXDBDAYS variable in /etc/pihole/pihole-FTL.conf
 
   01. To reduce the log lifespan, run the following commands in a terminal window
         # edit pihole-FTD.conf
         sudo nano /etc/pihole/pihole-FTL.conf
   02. Add or edit MAXDBDAYS value in the configuration file as needed
   03. Press CTRL+O, Enter, CTRL+X to write the changes
   04. Continue with the following command
         # restart pihole-FTL server
         sudo systemctl restart pihole-FTL
   05. After restarting the service the new logs lifespan will be active
 
Pi-hole Documentation:  https://docs.pi-hole.net/ftldns/configfile/
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
Free Up Disk Space
Free Up Storage Space
Pi-Hole Disk Cleanup
Pi-Hole
Network Wide Ad Blocking
DNS
Ad Blocker
Home Lab
Self-Hosted
Disk Space
Log Cleanup
Disk Cleanup
System Maintenance
Pi Hole
Ad Blocking
How To
Tutorial
i12bretro