[rrd-users] Re: dump/restore appears broken

MacLeod, Jase A. jmacleod at covisint.com
Tue Aug 5 21:41:33 MEST 2003


Dan,

I attempted the same thing as you did.
I currently run 1.0.33 but was testing 1.0.40.

With 1.0.33 I dumped an rrd and restored with the following results...
dumped  test.rrd (502,524 bytes) -> test1.xml (1,607,865 bytes)
restore test1.xml                -> test1.rrd (502,524 bytes)
dumped  test1.rrd                -> test2.xml (1,607,865 bytes)
restore test2.xml                -> test2.rrd (502,524 bytes)
etc etc..

With 1.0.40 I dumped an rrd and restores with the following results...
dumped  test.rrd (502,524 bytes) -> test1.xml (1,607,865 bytes)
restore test1.xml                -> test1.rrd (502,621 bytes)
dumped  test1.rrd                -> test2.xml (1,890,564 bytes)
restore test2.xml                -> test2.rrd (503,333 bytes)

Thus it appears to be a problem with the restore command due to the
first dump having the exact same byte count.

-Jase

-----Original Message-----
From: Dulac, Daniel (Dan) [mailto:ddulac at aprisma.com]
Sent: Tuesday, August 05, 2003 3:21 PM
To: rrd-users
Subject: [rrd-users] dump/restore appears broken


Hi

Hi Everyone,

I have been trying to solve a problem that I thought was a bug in my script
but it appears to be a problem with the dump and/or restore command with
rrdtool on Windows.

Test this:

1. With an existing *.rrd, run the "dump" command:
	rrdtool dump test.rrd >xml_orig.xml

2. Restore to a new rrd using the "restore" command:
	rrdtool restore test_restore.rrd xml_orig.xml

3. Now run the "dump" command on this new rrd:
	rrdtool dump test_restore.rrd >xml_new.xml

The two xml files (xml_orig.xml and xml_new.xml) should be identical in file
size and data contained within but they are not.  The data in the
xml_new.xml file is all messed up and corrupted!  Has anyone else seen this?
I am currently running 1.0.40.  We also tried 1.0.45 and it still doesn't
work.

Is it safe to assume this a legitimate bug with rrdtool?  Thanks for any
input.

Regards,
-Dan

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list