[rrd-users] Error in database?

Mats Gustafsson gentoo at mats-gustafsson.se
Thu Mar 5 15:05:03 CET 2009


That definitely makes sense.
I have taken backups of my old databases and if it looks like resize did
not work I will go for your proposal.
So far I have, with drraw, looked at graphs presenting data being 2
years old as well as data from today and both looks ok.

Many thanks for your kind support Karl!

Best regards, Mats

Karl Fischer wrote:
> Mats Gustafsson wrote:
>>> rrdtool dump measure10.rrd \
>>> | pcregrep -v '<!-- 19[567]\d-\d+-\d+ \d+:\d+:\d+ \w+ / -?\d+ -->' > new
>>> rrdtool restore new new.rrd
>>>
>>> did work for me - YMMV
>>>
>>> hth
>>>
>>> - Karl
>>>
>> Hi Karl,
>>
>> before I received your proposal I tried to shrink the databases using
>> rrdtool resize. This seems to work just fine (knock on wood).
>> Could you see any disadvantage with this method?
> 
> Well,
> 
> of course I thought about resize first, but since rrdtool obvoisly can't
> handle the data properly (fetch didn't work) I simply didn't trust that
> method anymore. Dumping the data and restoring it seemed safer to me.
> Does that make sense?
> 
> - Karl
> 
> 
> 
> 



More information about the rrd-users mailing list