Project

General

Profile

Actions

Bug #2695

closed

bandwidthd package writes to RO directory in embedded

Added by Criggie . over 12 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
bandwidthd
Target version:
-
Start date:
11/27/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
All
Affected Plus Version:
Affected Architecture:
All

Description

As per
http://forum.pfsense.org/index.php/topic,49165.0.html

bandwidthd package on alix running nanoBSD tries to save files into /usr/pbi/bandwidthd-i386/bandwidthd/htdocs
but this path is on a device mounted as read-only.

My fix was to mkdir /tmp/bandwidth; mkdir /tmp/bandwidth; mv /usr/pbi/bandwidthd-i386/bandwidthd/htdocs /usr/pbi/bandwidthd-i386/bandwidthd/htdocs.original; ln -s /usr/pbi/bandwidthd-i386/bandwidthd/htdocs /tmp/bandwidthd; /etc/rc.conf_mount_ro ; /usr/local/etc/rc.d/bandwidthd.sh start

and all is well. However I expect /tmp will be purged at reboot, less than ideal.

Any questions please ask.

Actions #1

Updated by Phillip Davis over 12 years ago

bandwidthd will also need some way to save its accumulated data across reboots (yes, /tmp is recreated from scratch in memory each boot). If a normal shutdown is done then the bandwidth package shutdown can do something. Perhaps also there could be an option to automatically save the bandwidthd data every x hours - then not too much data would be lost when an unexpected power outage happens.
I have been meaning to have a go at making this work on embedded nanobsd but seem to never find time!
Any others who have suggestions for the best design, please comment.

Actions #2

Updated by Chris Buechler over 12 years ago

design should really follow what we do for RRD data and DHCP leases file. don't recall offhand if that's something easily hooked into, but the same methodology would work.

Actions #4

Updated by Kill Bill almost 10 years ago

Been resolved for ages, as linked above.

Actions #5

Updated by Chris Buechler almost 10 years ago

  • Status changed from New to Resolved
  • Target version deleted (2.1)
Actions

Also available in: Atom PDF