Bug #2695
closedbandwidthd package writes to RO directory in embedded
0%
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.
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.
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.
Updated by Kill Bill almost 10 years ago
Updated by Kill Bill almost 10 years ago
Been resolved for ages, as linked above.
Updated by Chris Buechler almost 10 years ago
- Status changed from New to Resolved
- Target version deleted (
2.1)