[rrd-users] Strange Data while converting 32bit to 64 bit

Tobias Oetiker tobi at oetiker.ch
Wed Feb 19 10:46:07 CET 2014


Daniel,

I would use rrdtool 1.4.8

cheers
tobi

Today Daniel Finger wrote:

> Hi!
>
> Im trying to convert our 32bit rrd Container to 64bit, but the new 64 bit
> Container do not contain the original Data.
>
> If I compare the dumps I get on the 32 bit side:
> | <!-- Round Robin Database Dump -->
> | <rrd>
> |         <version> 0003 </version>
> |         <step> 300 </step> <!-- Seconds -->
> |         <lastupdate> 1392799802 </lastupdate> <!-- 2014-02-19 09:50:02 CET -->
> |
> |         <ds>
> |                 <name> data </name>
> |                 <type> GAUGE </type>
> |                 <minimal_heartbeat> 600 </minimal_heartbeat>
> |                 <min> NaN </min>
> |                 <max> NaN </max>
> |
> |                 <!-- PDP Status -->
> |                 <last_ds> UNKN </last_ds>
> |                 <value> 2.8147731200e+08 </value>
> |                 <unknown_sec> 0 </unknown_sec>
> |         </ds>
> |
> | <!-- Round Robin Archives -->
> |         <rra>
> |                 <cf> MAX </cf>
> |                 <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
> |
> |                 <params>
> |                 <xff> 5.0000000000e-01 </xff>
> |                 </params>
> |                 <cdp_prep>
> |                         <ds>
> |                         <primary_value> 1.4073865563e+08 </primary_value>
> |                         <secondary_value> 1.3961820768e+08 </secondary_value>
> |                         <value> NaN </value>
> |                         <unknown_datapoints> 0 </unknown_datapoints>
> |                         </ds>
> |                 </cdp_prep>
> |                 <database>
> |                         <!-- 2013-01-15 09:55:00 CET / 1358240100 -->
> <row><v> 4.3742387520e+07 </v></row>
> |                         <!-- 2013-01-15 10:00:00 CET / 1358240400 -->
> <row><v> 4.3742487000e+07 </v></row>
>
> and after dumping the 64bit container:
>
> | <?xml version="1.0" encoding="utf-8"?>
> | <!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
> | <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
> |         <step> 300 </step> <!-- Seconds -->
> |         <lastupdate> 1392799802 </lastupdate> <!-- 2014-02-19 09:50:02 CET -->
> |
> |         <ds>
> |                 <name> data </name>
> |                 <type> GAUGE </type>
> |                 <minimal_heartbeat> 600 </minimal_heartbeat>
> |                 <min> NaN </min>
> |                 <max> NaN </max>
> |
> |                 <!-- PDP Status -->
> |                 <last_ds> UNKN </last_ds>
> |                 <value> 2.0000000000e+00 </value>
> |                 <unknown_sec> 0 </unknown_sec>
> |         </ds>
> |
> | <!-- Round Robin Archives -->   <rra>
> |                 <cf> MAX </cf>
> |                 <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
> |
> |                 <params>
> |                 <xff> 5.0000000000e+00 </xff>
> |                 </params>
> |                 <cdp_prep>
> |                         <ds>
> |                         <primary_value> 1.0000000000e+00 </primary_value>
> |                         <secondary_value> 1.0000000000e+00 </secondary_value>
> |                         <value> NaN </value>
> |                         <unknown_datapoints> 0 </unknown_datapoints>
> |                         </ds>
> |                 </cdp_prep>
> |                 <database>
> |                         <!-- 2013-01-15 09:55:00 CET / 1358240100 -->
> <row><v> 4.0000000000e+00 </v></row>
> |                         <!-- 2013-01-15 10:00:00 CET / 1358240400 -->
> <row><v> 4.0000000000e+00 </v></row>
>
> I included only the first 2 Datapoints but if you compare them you will see
> what I mean. Do you have any advise to get the original Data unmodified into
> a 64bit container?
>
> In total I need to convert roughly 35.000 Containers and currently I am
> using a simple bash script to do the Job.
>
> What I have done to create these to exports:
>
>  * Dumping on an old 32bit Ubuntu 6.06.2 LTS using RRDtool 1.2.11:
>    rrdtool dump DF-_.rrd > DF-_.rrd.xml
>
>  * Import using a 64bit CentOS 6.5 using RRDtool 1.3.8:
>    rrdtool restore DF-_.rrd.xml DF-_x64.rrd
>
>  * Now I am dumping again on 64 bit
>    rrdtool dump DF-_x64.rrd > DF-_x64.rrd.xml
>
> You can download the files I used here:
> http://www.file-upload.net/download-8636230/DF-_.rrd.html
> http://www.file-upload.net/download-8636231/DF-_.rrd.xml.html
> http://www.file-upload.net/download-8636229/DF-_x64.rrd.html
> http://www.file-upload.net/download-8636232/DF-_x64.rrd.xml.html
>
> Thanks in Advance,
> Daniel Finger
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-users mailing list