Hello,
I am having an ongoing issue where my dnsmas.log file repeatedly fills up the entire drive:
pi@raspberrypi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 27G 27G 0 100% /
devtmpfs 3.7G 0 3.7G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 106M 3.8G 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mmcblk0p6 253M 49M 204M 20% /boot
tmpfs 790M 0 790M 0% /run/user/1000
tmpfs 790M 0 790M 0% /run/user/109
pi@raspberrypi:~ $ sudo du -h --max-depth=1 /
20G /var
8.0K /srv
64K /tmp
du: cannot access '/run/user/109/gvfs': Permission denied
106M /run
16K /lost+found
2.2G /opt
4.0K /mnt
9.4M /bin
8.0K /media
478M /lib
49M /boot
7.5M /etc
11M /sbin
0 /dev
2.2M /tftpboot
4.0G /usr
du: cannot access '/proc/2473/task/2473/fd/3': No such file or directory
du: cannot access '/proc/2473/task/2473/fdinfo/3': No such file or directory
du: cannot access '/proc/2473/fd/4': No such file or directory
du: cannot access '/proc/2473/fdinfo/4': No such file or directory
0 /proc
464M /home
64K /root
0 /sys
27G /
I have tried this command to truncate the log file:
sudo truncate -s 0 dnsmasq.log
It appears to run, however there is no difference in the log size.
Can I simply delete the log file and let it recreate itself?
How do I find the underlying issue which is causing the log file to fill up repeatedly?
Should I simply turn logging off?
I am having an ongoing issue where my dnsmas.log file repeatedly fills up the entire drive:
pi@raspberrypi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 27G 27G 0 100% /
devtmpfs 3.7G 0 3.7G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 106M 3.8G 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mmcblk0p6 253M 49M 204M 20% /boot
tmpfs 790M 0 790M 0% /run/user/1000
tmpfs 790M 0 790M 0% /run/user/109
pi@raspberrypi:~ $ sudo du -h --max-depth=1 /
20G /var
8.0K /srv
64K /tmp
du: cannot access '/run/user/109/gvfs': Permission denied
106M /run
16K /lost+found
2.2G /opt
4.0K /mnt
9.4M /bin
8.0K /media
478M /lib
49M /boot
7.5M /etc
11M /sbin
0 /dev
2.2M /tftpboot
4.0G /usr
du: cannot access '/proc/2473/task/2473/fd/3': No such file or directory
du: cannot access '/proc/2473/task/2473/fdinfo/3': No such file or directory
du: cannot access '/proc/2473/fd/4': No such file or directory
du: cannot access '/proc/2473/fdinfo/4': No such file or directory
0 /proc
464M /home
64K /root
0 /sys
27G /
I have tried this command to truncate the log file:
sudo truncate -s 0 dnsmasq.log
It appears to run, however there is no difference in the log size.
Can I simply delete the log file and let it recreate itself?
How do I find the underlying issue which is causing the log file to fill up repeatedly?
Should I simply turn logging off?
Statistics: Posted by dbutch1976 — Fri May 10, 2024 4:07 pm — Replies 2 — Views 28