OPNsense Forum

English Forums => General Discussion => Topic started by: caplam on August 16, 2025, 04:48:51 PM

Title: disk full
Post by: caplam on August 16, 2025, 04:48:51 PM
Hello,

My opnsense instance is sick.
My disk space (zfs) is full and webui doesn't work anymore (php errors).
I'm away from home. I can ssh into opnsense with regular credentials.
I can't use sudo (php error thrown) so can't do much.
From what i can see /var/log could be full but as i can't sudo, i can't delete anything nor reboot.
Can i do something or should i reinstall it when i come home ?
Title: Re: disk full
Post by: pfry on August 16, 2025, 05:39:19 PM
How about "su"? It should fire the root login script if you're able to authenticate.
Title: Re: disk full
Post by: caplam on August 16, 2025, 05:56:55 PM
su - doesn't work either.

Title: Re: disk full
Post by: BrandyWine on August 18, 2025, 12:18:35 AM
boot single user, mount the disk, check it.
Title: Re: disk full
Post by: caplam on August 18, 2025, 11:49:32 AM
I'll do that when I come back.
Title: Re: disk full
Post by: caplam on August 23, 2025, 07:52:31 PM
i've rebooted in single user mode and could delete resolver log which were around 40Gig large.
after a reboot to normal mode all went back to normal
Title: Re: disk full
Post by: pfry on August 23, 2025, 08:34:27 PM
Quote from: caplam on August 23, 2025, 07:52:31 PM[...] resolver log which were around 40Gig large [...]

That's a heck of a log. I have a server that's been running for 10 years and has only logged 3GB (errors only). Were you running a query log?
Title: Re: disk full
Post by: caplam on August 24, 2025, 01:43:56 PM
yes. I run query log until i finish my setup. I'm moving some apps to dmz and need that logs until all is running fine including acccess from wan, lan with a single hostname for apps using authentik provider or having their own auth.
It's not straight forward as i have apps accessed only from lan others from both wan and lan. Some are using authentik others don't.
And i'm still wondering which apps to put in dmz.