Please don't remove the BTS from the CC-list. Bug report information
must be recorded.
Le 16 févr. 09 à 19:26, Sandro Tosi a écrit :
On Mon, Feb 16, 2009 at 19:19, Thibaut VARENE <[email protected]>
wrote:
What filesystem are you using on /var?
xfs
By default, XFS will zero-out inconsistent files after an unclean
mount. If that's what happened, it's likely uptimed tried to use the
(invalid) content of the file instead of its backup, which is why you
didn't see anything in the log (when it uses its backup database it
prints a message).
Radek, I don't really know what to do about this. Working around
filesystem issues is gonna be a burden. Adding supplementary checks to
assert the validity of the file being read doesn't look really
straightforward; do you have any suggestion about this? The way I see
it, we could bail out in urec.c:231, and 1) give feedback on failure
to read record entry, while 2) falling back to the backup database on
such a failure... Of course, if the backup db is also damaged, we're
doomed.
What's the content of /var/spool/uptimed/records* ?
$ for file in /var/spool/uptimed/records* ; do echo "--- "$file" ---"
; cat $file ; done
--- /var/spool/uptimed/records ---
35228:1234767249:Linux 2.6.25-2-amd64
5978:1234802550:Linux 2.6.25-2-amd64
--- /var/spool/uptimed/records.old ---
35228:1234767249:Linux 2.6.25-2-amd64
5918:1234802550:Linux 2.6.25-2-amd64
That's ok.
--
Thibaut VARÈNE
http://www.parisc-linux.org/~varenet/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]