Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Permanent VNSTAT database on MFS
« previous
next »
Print
Pages: [
1
]
Author
Topic: Permanent VNSTAT database on MFS (Read 4752 times)
Ricardo
Full Member
Posts: 233
Karma: 12
Permanent VNSTAT database on MFS
«
on:
February 04, 2020, 03:30:04 pm »
Hello Opnsense folks,
https://forum.opnsense.org/index.php?topic=9503.msg48562#msg48562
is this something that we can expect to be supported? VNSTAT database to be kept across reboots, when /var is on MFS.
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Permanent VNSTAT database on MFS
«
Reply #1 on:
February 04, 2020, 04:02:26 pm »
Are you soder10 in Github?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Ricardo
Full Member
Posts: 233
Karma: 12
Re: Permanent VNSTAT database on MFS
«
Reply #2 on:
February 04, 2020, 04:52:44 pm »
I found others posted to this thread in the past, and got notification about this issue recently.
https://github.com/opnsense/plugins/issues/1061
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Permanent VNSTAT database on MFS
«
Reply #3 on:
February 04, 2020, 05:05:54 pm »
Do you use pppoe as WAN?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Ricardo
Full Member
Posts: 233
Karma: 12
Re: Permanent VNSTAT database on MFS
«
Reply #4 on:
February 05, 2020, 09:41:50 am »
Exactly!
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Permanent VNSTAT database on MFS
«
Reply #5 on:
February 05, 2020, 09:51:05 am »
Can you check if this also happens on LAN interface?
Just for testing if it's related to vnstat itself or the plugin.
We upgraded from 1.X to 2.X couple of weeks ago.
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Ricardo
Full Member
Posts: 233
Karma: 12
Re: Permanent VNSTAT database on MFS
«
Reply #6 on:
February 05, 2020, 11:31:33 am »
I will try. What should be the visible result? No service crash / preserve traffic amount across reboots?
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Permanent VNSTAT database on MFS
«
Reply #7 on:
February 05, 2020, 12:19:46 pm »
Hopefully both ...
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Ricardo
Full Member
Posts: 233
Karma: 12
Re: Permanent VNSTAT database on MFS
«
Reply #8 on:
February 05, 2020, 01:01:16 pm »
Will try today evening to switch over from WAN to LAN interface measurement. What is the next step if it seems working fine bound to the LAN?
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Permanent VNSTAT database on MFS
«
Reply #9 on:
February 05, 2020, 02:44:07 pm »
Next stop would be disable MFS and switch back to pppoe.
Then you'll see if it's pppoe or MFS
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Ricardo
Full Member
Posts: 233
Karma: 12
Re: Permanent VNSTAT database on MFS
«
Reply #10 on:
February 09, 2020, 07:13:11 am »
Ok, it took some time to find a proper time for reboot, but here it is:
changing the listen interface from WAN/pppoe to the static LAN interface still broke the vnstat service to start. Trying to start the service manually also fails.
Reset-ing the vnstat database immediately started the service without hiccup.
Next test: switched from MFS to normal UFS for /var -> did fix the service startup issue, but database had to be reset, otherwise the stat pages showed an empty page. After the 1st reset, because it is no longer stored on MFS, the next full reboot was also successful, did not have to reset the database again.
«
Last Edit: February 09, 2020, 07:37:48 am by Ricardo
»
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Permanent VNSTAT database on MFS
«
Reply #11 on:
February 09, 2020, 07:30:23 am »
Thanks for your input!
vnstat changed it's logging database from db2 to sqlite, so from v1.x to v2.x there's no chance other than wiping the DB. We sadly forgot to mention this in the release note.
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Ricardo
Full Member
Posts: 233
Karma: 12
Re: Permanent VNSTAT database on MFS
«
Reply #12 on:
February 09, 2020, 07:51:52 am »
I did change from UFS back to MFS (switched back to WAN interface) and this time it seems somehow it saved the database file correctly. I will try to see after a couple of reboots it is still correct or not.
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Permanent VNSTAT database on MFS
«
Reply #13 on:
February 09, 2020, 08:43:14 am »
Thanks
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Ricardo
Full Member
Posts: 233
Karma: 12
Re: Permanent VNSTAT database on MFS
«
Reply #14 on:
June 20, 2020, 10:33:14 am »
Quote from: mimugmail on February 09, 2020, 08:43:14 am
Thanks
So far it has survived couple of reboots and seems still working. Lets hope 20.7 wont screw it up again.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Permanent VNSTAT database on MFS