Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HOWTO: restore RRD graphs after upgrade from 32 bit to 64 bit

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    1 Posts 1 Posters 4.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O Offline
      oebele
      last edited by

      In the upgrade guide it's mentioned RRD-graphs cannot be converted from 32 bit to 64 bit:

      "Upgrading from 32 bit to 64 bit mostly works fine with a couple caveats - your 32 bit RRD data is invalid on the 64 bit version and will have to be deleted by running 'rm -rf /var/db/rrd*'. You will lose all RRD history, this cannot be converted."

      However, after an upgrade from 32bit to 64bit, you can do the following to convert your graphs:

      You will need two linux machines, one 32bit, one 64bit, both with rrdtool installed.
      Copy the .rrd files in /var/db/rrd from the pfsense box to the 32bit linux machine.
      On the 32bit linux machine in the directory you copied the files to, run:

      for i in `ls *. rrd`; do rrdtool dump $i > $i.xml; done
      

      Transfer the resulting xml files to the 64bit linux machine and run:

      for i in `ls *.xml`; do rrdtool restore $i `echo $i |sed s/.xml//g`; done
      

      Now you have a bunch of 64bit .rrd files you can put in the /var/db/rrd directory on the pfsense box. They will be updated automatically!

      Courtesy of http://slog.carlheaton.co.uk/index.php/2009/10/converting-32bit-rrd-to-64bit-rrd-moving-cacti-between-architectures/

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.