Question #191424 on Graphite changed: https://answers.launchpad.net/graphite/+question/191424
Status: Open => Answered Michael Leinartas proposed the following answer: Generally it's best to delete any corrupt Whisper files. If you *really* need to recover some data or something, it might involve understanding the format (it's not too bad) and some coding. If the files are merely truncated, you might try the steps below. It should also work as long as the file is still contiguous (bytes havent shifted any): Create a new file with the same retention as the old one. Run whisper-info.py on the new file and note the offset and points values of each of the archives For each archive and with offset as OFFSET and points as POINTS: dd bs=12 if=$OLDFILE of=$NEWFILE skip=$(($OFFSET + 12)) seek=$(($OFFSET + 12)) count=$POINTS This will skip to the beginning of the archive, skip the archive header (12 bytes), and copy only the data portion of the archive (each point 12 bytes). If you try it, let us know how it goes -- You received this question notification because you are a member of graphite-dev, which is an answer contact for Graphite. _______________________________________________ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp