Home » code snippets, geek, servers & tech

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

Submitted by Carl on Saturday, 3 October 2009One Comment

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

One Comment »

  • Chris said:

    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

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

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

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.