[rrd-users] have entry from the future, now can't write to the present

Tobias Oetiker tobi at oetiker.ch
Tue Mar 16 22:55:15 CET 2010

Hi Joseph,

Today Joseph Mack NA3T wrote:

> rrdtool v_1.0.45
> My machine's hardware clock doesn't work and I set kernel
> time at boot with ntpd. Usually at boot the clock time is
> Jan 1970 (or something like that). Apparently in the last
> boot the clock was at 2*10^9 secs (approx), ie some time in
> the future and rrdtool started recording. Sometime later
> (don't know when) the clock got the right time (about
> 1.2*10^9 secs). Now rrdtool won't write because current time
> is less than the last time.
> Is there anyway to fix the rrd file?

the problem is that rrd has rotated all the RRAs into the future
... old data may have fallen off in most of them probably ...
the best thing todo is to resotre your backup copy

> Thanks Joe

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