Converting 32bit RRD to 64bit RRD (moving cacti between architectures)

While migrating cacti over to a new virtual machine I got “ERROR: This RRD was created on another architecture” in /var/log/httpd/error_log when the crontab ran resulting in blank graphs.

On the 32 bit machine in /var/www/cacti/rra/ run in SSH:

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

Transfer xml files to the other 64 bit machine and the same location.

On the 64 bit machine run in SSH:

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

This entry was posted in code snippets, geek, servers & tech. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Chris
    Posted October 23, 2009 at 11:13 pm | Permalink

    To recursively export (dump) and import, use the following commands:


    for i in `find -name "*.rrd"`; do rrdtool dump $i > $i.xml; done
    for i in `find -name "*.xml"`; do rrdtool restore $i `echo $i |sed s/.xml//g`; done

  2. julsen
    Posted May 1, 2011 at 9:07 am | Permalink

    thanks – u saved my day

  3. Tang
    Posted July 12, 2011 at 4:05 am | Permalink

    Good job~

    Working fine

  4. macan
    Posted September 13, 2011 at 12:35 pm | Permalink

    Thank you for this article :-)

One Trackback

  1. By Migration von RRD Grafiken on July 8, 2011 at 11:07 pm

    [...] Ich hatte vor kurzem das Problem das RRD Graphen nicht mehr korrekt geupdatet wurden nach einer Migration. Im Netz fand ich dann diesen => Guide [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>