Project

General

Profile

Actions

Bug #11797

open

Traffic Totals lost upon reboot when using a ramdisk for /var and /tmp

Added by John Cornwell almost 3 years ago. Updated 3 months ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Status Traffic Totals
Target version:
Start date:
04/10/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
24.03
Affected Version:
2.7.1
Affected Plus Version:
23.09
Affected Architecture:
All

Description

When using a ramdisk for /var and /tmp, RRD Data and log files are saved from the ramdisk to disk on a regular basis (once per day by default). However this doesn't appear to be the case for traffic totals and as a result, they are lost whenever pfsense reboots.

Actions #1

Updated by Steve Wheeler 11 months ago

  • Status changed from New to Confirmed
Actions #2

Updated by Greg Maub 11 months ago

I'm experiencing this as well in pfSense 2.6.0 CE and Status_Traffic_Totals 2.3.2_2 as of April 2023. Upon reboot or shutdown, all Traffic Totals -- which I believe are stored in /var/db/vnstat/vnstat.db -- reset to 0.

A) Perhaps an Option can be added to System --> Advanced --> Miscellaneous?

Periodic RAM Disk Data Backups
1. RRD Data
2. DHCP Leases
3. Log Directory
4. Captive Portal Data
5. Traffic Totals

B) Perhaps a future version of the Traffic Totals plug-in can store that db somewhere persistent instead of /var? Such as /usr/local/pkg/vnstat/vnstat.db

I'd like to continue using the benefits of the RAMdisk to minimize wear and tear but very much like the Traffic Totals functionality and would like it to survive reboots, upgrades, etc.

Actions #3

Updated by Steve Wheeler 3 months ago

  • Assignee deleted (John Cornwell)
  • Target version set to 2.8.0
  • Plus Target Version set to 24.03
  • Affected Version set to 2.7.1
  • Affected Plus Version set to 23.09
Actions

Also available in: Atom PDF