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.

One Comment

  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

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>