Where are my old rrd graphics after upgrade?
-
I upgraded an Alix (4GB) from 2.1.4 to 2.2.0. Apart from a minor glitch reported here https://forum.pfsense.org/index.php?topic=87285.0 this went fine. Only problem is that it did not display my old rrd graphs. They were certainly there after the upgrade, /cf/conf/rrd.tgz was about 3.6MB in size. but only the new data after the upgrade showed up in the graphs. After a reboot, the old rrd.tgz was gone, and the new one had only 860kB. I do have a config backup that should include the old data. Is there a way to put this back?
Roman
-
Since you ran a manual upgrade is there any chance you switched from 32 to 64bit or the other way around? That's the most common cause of loosing RRD data.
Do you mean the APU with 4GB RAM or an Alix with a 4GB CF card?Steve
-
Since you ran a manual upgrade is there any chance you switched from 32 to 64bit or the other way around?
32bit for old and new versions.
Do you mean the APU with 4GB RAM or an Alix with a 4GB CF card?
I mean the old alix2d13 with a 4GB CF card.
Roman
-
Check the logs. There's a good chance it ran out of RAM trying to expand the RRD data from the backup. When backing up or restoring it's my understanding that there is one point where both the compressed backup and all the expanded RRD containers have to be held in RAM and if you already have low RAM (likely with 256MB) you can come up short.
You can restore individual sections of the backup file so you should be able to restore the old RRD data. If you haven't made any changes you can just restore the entire backup config.xml file complete with the old RRD data, though if it ran out of RAM the first time….How many interfaces are you running?
Steve
-
Thanks for the suggestion to restore from the config backup. :)
I wasn't aware I could selectively restore stuff, but then chose to restore only the rrd data. I was logged in through ssh during the whole process and it was actually fun to watch it upload the data, incorporate it into config.xml, then write out the /var/db/rrd, and remove it from the config file. Before rebooting, it saved the /var/db/rrd data into rrd.tgz, and unpacked it again after the reboot. So, my data is back, with only a short missing piece during the upgrade process.Roman