Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
*Something* is filling up my hard drive causing Unbound DNS service to die
« previous
next »
Print
Pages: [
1
]
Author
Topic: *Something* is filling up my hard drive causing Unbound DNS service to die (Read 288 times)
Stitch10925
Newbie
Posts: 17
Karma: 1
*Something* is filling up my hard drive causing Unbound DNS service to die
«
on:
September 30, 2024, 02:51:14 pm »
Hey everyone,
I recently upgraded to the latest version of OpnSense (24.7). I started getting internet dropouts where DNS would not resolve but teh OpnSense UI would still work and it could still pull updates.
I have OpnSense in a Proxmox VM and switched to VirtIO network drivers because throughput was much higher. Initially I thought that was the issue, so I reverted them back to Intel drivers. Yet, the issue remained.
I recently discovered that the hard drive was full (disk usage showed 106% use). I added about 10 GB of storage space to the VM, yet a few days later the disk was full again. I also noticed that, when rebooting the machine, it would hang on the Netflow Backup script step.
I looked at the Netflow settings and cleared all the data from it. I also disabled logging for it. On the same page I could also clear and disable DNS request logging, which I did. And behold, my drive use went down with 40%. Awesome!
But... a few days later, the disk is full again. I checked the Netflow settings again, they are still disabled. Check other log setting to make sure nothing was verbose logging and check if retentions were set to a reasonable level. Clearing the Netflow data did nothing this time.
So something is filling up my disk space causing Unbound DNS to die and not start again, but I can't seem to find what it is. Anyone have any idea how I can troubleshoot this issue or what might be the cause?
Logged
Patrick M. Hausen
Hero Member
Posts: 6581
Karma: 560
Re: *Something* is filling up my hard drive causing Unbound DNS service to die
«
Reply #1 on:
September 30, 2024, 02:57:51 pm »
Try this method:
1. log in to a OPNsense via SSH as root
2. `cd / ; du -sk * | sort -rn`
3. pick the largest directory, assume its "foo"
4. `cd foo`
5. `du -sk * | sort -rn`
6. pick the largest directory, iterate 4. - 6.
until you found what files are using all that disk space.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Stitch10925
Newbie
Posts: 17
Karma: 1
Re: *Something* is filling up my hard drive causing Unbound DNS service to die
«
Reply #2 on:
October 15, 2024, 11:53:05 pm »
Thank you for the suggestion.
I noticed the problem is with the Firewall's "Plain View" logs. They keep on filling up the hard drive and I haven't found a way to turn them off or to configure its retention time.
Logged
Patrick M. Hausen
Hero Member
Posts: 6581
Karma: 560
Re: *Something* is filling up my hard drive causing Unbound DNS service to die
«
Reply #3 on:
October 18, 2024, 09:04:49 am »
System > Settings > Logging, maybe?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
*Something* is filling up my hard drive causing Unbound DNS service to die