nggak bisa buat file rrd setelah ganti system
Bug #320593 reported by
Mahyuddin Susanto
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sedot |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
jadi ceritanya begini, system lama menggunakan arsitektur 32bit, kemudian system dipindah ke 64bit. entah kenapa waktu menjalankan collect-mirror-size terjadi error.
berikut log nya
ERROR: This RRD was created on another architecture
ERROR: This RRD was created on another architecture
ERROR: This RRD was created on another architecture
ERROR: This RRD was created on another architecture
ERROR: This RRD was created on another architecture
ERROR: This RRD was created on another architecture dan seterusnya...
# uname -a
Linux mirror 2.6.26-1-amd64 #1 SMP Mon Dec 15 17:25:36 UTC 2008 x86_64 GNU/Linux
To post a comment you must log in.
fix dengan panduan ini http:// net.doit. wisc.edu/ ~plonka/ list/flowscan/ archive/ 1448.html
quote:
When you want to copy/move from one platform to another, you can use
"rrdtool dump" to convert them to a portable XML format, then "rrdtool
restore" to restore them to a binary format appropriate for the
localhost.
berikut scriptnya
#!/bin/bash
BASE=/home/ sedot/mirror- size/
for i in `ls $BASE -all | grep .rrd | sed -e "s/.rrd/ /g" | cut -b 47-80`;
/usr/bin/ rrdtool dump $BASE/$i.rrd > $BASE/$i.xml
do
/bin/rm $BASE/$i.rrd
/usr/bin/rrdtool restore -r -f $BASE/$i.xml $BASE/$i.rrd
done
exit 0