Project

General

Profile

Actions

Bug #11797

open

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

Added by John Cornwell over 3 years ago. Updated about 1 month 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:
25.01
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 over 1 year ago

  • Status changed from New to Confirmed
Actions #2

Updated by Greg Maub over 1 year 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 12 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 #4

Updated by Jim Pingle 9 months ago

  • Plus Target Version changed from 24.03 to 24.07
Actions #5

Updated by Jim Pingle 6 months ago

  • Plus Target Version changed from 24.07 to 24.08
Actions #6

Updated by Jim Pingle about 2 months ago

  • Plus Target Version changed from 24.08 to 24.11
Actions #7

Updated by Jim Pingle about 1 month ago

  • Plus Target Version changed from 24.11 to 25.01
Actions

Also available in: Atom PDF