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
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!