When migrating from 32-bit to 64-bit architecture, note that the 32-bit RRDs are incompatible and need to be converted to the new architecture. This can be accomplished by converting the RRDs to XML format using the 32-bit RRDTool binary and restoring the XML file using the 64-bit architecture RRDTool binary.
* On the 32-bit architecture:
{code}
mkdir -p /tmp/rrd
cd /usr/local/groundwork/rrd
for i in *.rrd; do /usr/local/groundwork/common/bin/rrdtool dump ${i} /tmp/rrd/${i}.xml; done
tar czf /tmp/rrd.dumps.tgz /tmp/rrd/*.xml
{code}
** Then copy the tgz of the xml files over to the 64-bit system
* On the 64 bit architecture:
{code}
tar xzf rrd.dumps.tgz -C /
cd /tmp/rrd
for i in *.xml; do /usr/local/groundwork/common/bin/rrdtool restore -f ${i} /usr/local/groundwork/rrd/${i%.xml}; done
chown -R nagios.nagios /usr/local/groundwork/rrd
chmod -R 644 /usr/local/groundwork/rrd
rm -Rf /tmp/rrd
{code}
* On the 32-bit architecture:
{code}
mkdir -p /tmp/rrd
cd /usr/local/groundwork/rrd
for i in *.rrd; do /usr/local/groundwork/common/bin/rrdtool dump ${i} /tmp/rrd/${i}.xml; done
tar czf /tmp/rrd.dumps.tgz /tmp/rrd/*.xml
{code}
** Then copy the tgz of the xml files over to the 64-bit system
* On the 64 bit architecture:
{code}
tar xzf rrd.dumps.tgz -C /
cd /tmp/rrd
for i in *.xml; do /usr/local/groundwork/common/bin/rrdtool restore -f ${i} /usr/local/groundwork/rrd/${i%.xml}; done
chown -R nagios.nagios /usr/local/groundwork/rrd
chmod -R 644 /usr/local/groundwork/rrd
rm -Rf /tmp/rrd
{code}