Xymon Mailing List Archive search

migrating from i386 to x86_64

3 messages in this thread

list Martin Flemming · Mon, 12 Sep 2011 22:17:57 +0200 (CEST) ·
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
list Johan Sjöberg · Mon, 12 Sep 2011 21:17:06 +0000 ·
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
quoted from Martin Flemming

-----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
list Martin Flemming · Tue, 13 Sep 2011 00:01:21 +0200 (CEST) ·
Great, thanks a lot !

 	martin
quoted from Johan Sjöberg

On Mon, 12 Sep 2011, Johan Sjöberg wrote:
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

Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid