OPNsense Forum

English Forums => 26.1 Series => Topic started by: Diggy on March 13, 2026, 06:40:43 PM

Title: Minimizing storage writes
Post by: Diggy on March 13, 2026, 06:40:43 PM
Although I am using an SSD for storage opposed to a flash drive, I would still like to minimize writes to storage to extend its life.

Any suggestions on what settings I could/should change to accomplish this?

Is RRD written to storage?

Feedback on this matter is appreciated.

Title: Re: Minimizing storage writes
Post by: viragomann on March 13, 2026, 07:21:36 PM
You can enable the usage of RAM disks for /var/log and /tmp in System: Settings: Miscellaneous.
With this logs will flushed on reboot.

And you can alternatively or in addition disable logging entirely in System: Settings: Logging.

Quote from: Diggy on Today at 06:40:43 PMIs RRD written to storage?
Yes, it is.
The data are written to /var/db/rrd and I don't know, how to prevent this.
Title: Re: Minimizing storage writes
Post by: OPNenthu on March 13, 2026, 07:30:31 PM
Aren't RRD and Netflow only held in RAM unless periodic backups are enabled in System->Settings->Miscellaneous?

If you keep backups set to "Disabled" then I think nothing should ever touch the disk, so you lose the data on reboot or unclean shutdown.

If you keep backups set to "Power off" then you lose data on unclean shutdown only.

Somebody please correct me if this isn't true.  It's been my assumption because otherwise those settings have no value, IMO.
Title: Re: Minimizing storage writes
Post by: OPNenthu on March 13, 2026, 08:16:28 PM
Well I guess not.  I have RRD backups set to "Power off" and I see that files under /var/db/rrd/ have today's date.  Box hasn't been powered off in some days.