[Xymon] migrating from i386 to x86_64

Johan Sjöberg Johan.Sjoberg at deltamanagement.se
Mon Sep 12 23:17:06 CEST 2011


I used this on the old server (run from the rrd directory)

#!/bin/bash
for j in $(ls -d */)
do
        cd $j
        for i in $(ls *.rrd)
        do
                RRD=$(echo $i | sed s/\.rrd/\.xml/)
                rrdtool dump $i $RRD
        done
        cd ..
done

And on the new server, after scp:ing the rrd directory and deleting old the .rrd files:

#!/bin/bash
for j in $(ls -d */)
do
        cd $j
        echo $j
        for i in $(ls *.xml)
        do
                RRD=$(echo $i | sed s/\.xml/\.rrd/)
                rrdtool restore $i $RRD
        done
        cd ..
done

It can probably be done nicer, but it worked.

/Johan

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Martin Flemming
Sent: den 12 september 2011 22:18
To: xymon at xymon.com
Subject: [Xymon] migrating from i386 to x86_64


Hi !

Got somebody already a script for migrating all rrd's from i386 to x86_64 ?

I want to migrate in the near future to SL6 and we will provide only
x86_64 as platform anymore ...

Thanks & Cheers,

        Martin

_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon



More information about the Xymon mailing list