[rrd-users] Error in database?
tobi at oetiker.ch
Thu Mar 5 15:03:33 CET 2009
note that rrdtool use unix time todo all its time based
calculations, if you create a database that ventures out of the
unix time stamp range all sorts of interesting corner cases are
bound to be touched ...
Today Karl Fischer wrote:
> Mats Gustafsson wrote:
> >> rrdtool dump measure10.rrd \
> >> | pcregrep -v '<!-- 19\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?
> 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
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
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