RAM Disk
-
I just had my instance of pfsense DNS and other services stopped working because the tmp folder via RAM disk was full. I gave it 8 gigs and it takes approx 4 days for it to get full. I've set the periodic saving to disk every 24 hours.
I've tried using RAM disk in the past and this behavior was the same so I stopped using it. I understand the longevity of nvme ssds but I had that failed on me recently after two years of use. This is due to log writes. I am using remote syslog but the packages are writing alot of information to the local logs.
So question is does log rotation properly prune the logs in tmp folder?
I wasn't able to reboot pfsense as it got stuck shutting down the packages. I had to force power off.
-
Hmm, /tmp should not require anything like that. I have mine set to 60MB. Logs are in /var.
So what is filling /tmp?
What packages do you have running?
-
umm...
there are two tmpfs - one for tmp, one for var
/var is on a tmpfs. (that 89M shown here is mostly log files, and yes they rotate) I can force that number to near zero just by removing log files. or just watch it over time goes between about 87 and 92 as log files build out compress and rotate -- Not all of var is on the tmpfs either)
/tmp is on a tmpfs (the smaller one in my case)
to which tmp do you refer and 8GB does seem excessive