Pihole with etckeeper - no, no
2022-03-28
I had my 1 EUR VPS with Pihole+Wireguard running as my phone's always-on VPN tunnel rock-solid for the past 1.5 years. Now, a few weeks ago, it started acting funny. After logging in, it was immediately apparent that the disk was full.
toe@t20 ~ % ssh example.com
(...)
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Mar 28 19:16:34 2022 from 192.0.2.15
/etc/zsh/zshrc:509: write failed: no space left on device
toe@example ~ % df -h
Filesystem Size Used Avail Use% Mounted on
udev 210M 0 210M 0% /dev
tmpfs 46M 5.2M 41M 12% /run
/dev/mapper/vg00-lv01 7.5G 7.1G 0 100% /
tmpfs 226M 836K 225M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 226M 0 226M 0% /sys/fs/cgroup
/dev/sda1 464M 83M 353M 19% /boot
tmpfs 46M 0 46M 0% /run/user/998
tmpfs
I had suspected DNS logs or cache files to fill up the disk, but wrong: It was my /etc
, which was pretty weird.
toe@example ~ % sudo du -hs /*
5.6G /etc
(...)
toe@example ~ % sudo du -h /etc | sort -h
(...)
66M /etc/.git/objects/8d
77M /etc/.git/objects/ed
5.5G /etc/.git
5.5G /etc/.git/objects
5.6G /etc