Article View: news.software.nntp
Article #51309Sv.: How did that happen?
From: 'BOUSWMA Barry MCSE, Te1e Denmar...
Date: Mon, 19 Mar 2001 02:29
Date: Mon, 19 Mar 2001 02:29
101 lines
5920 bytes
5920 bytes
> Today, I had a system freezeup, but fsck didn't find any problems when > rebooting. This doesn't matter. `fsck' checks the on-disk consistency of the filesystem and if needed returns it to a consistent state. There is no guarantee that this consistent state will be the same as you saw the filesystem right before the crash (particularly if you are using a technique to delay metadata updates in order to increase filesystem efficiency), and further, if the internal state of your databases do not match what had been committed to disk or to the filesystem cache, then you're going to have a good deal of `lost' information. > A few hours later, my wife complained that she saw a followup to a > followup of one of her posts, but the followup wasn't there. There also > appeared to be other missing articles, but I decided to investigate this > one. Using the message id in the References header, I did a grephistory > and it said "not found". But I looked in the logs, and evidently I had > recieved the article 10 or 11 hours before the freeze-up, and fed it to my > other machine. That's one of many perils you've discovered of permitting your SR to have access to your news swerver. Certainly not your first. This is different. Your history database lookups are at best a combination of lookups in database files and the text file. If the database files as retrieved from the on-disk backing store are not consistent with what your swerver had been keeping in memory before the crash, then you're going to have big problems. > Any explanations of what happened to the article? I suppose it could have > been cancelled, but I don't see why my history file said "not found" and > the other one said "/dev/null". Or could that have just been the crash > and stuff not getting flushed? That seems unlikely since news.daily would > have run in between the time it arrived and the time the system crashed. news.daily has nothing to do with it. You need to think of your history as a database that the swerver works with, that, for reasons of efficiency, is not kept fully in sync with its on-disk store except at clean shutdowns. You can think of it as a logging filesystem, with your history text file as the log, but without a convenient way of checkpointing the log and replaying just the part of it since the last checkpoint. > Just in case, I ran makehistory to rebuild the history in case it's out of This should be a standard procedure that everyone does after any serious crash, since it's the only way to replay your history log (the text file) and build the databases afresh from it. It should take no more than several minutes, and will bring you up-to-date to the last time your disk buffer cache was synchronized with the on-disk information, typically less than 30 seconds before the crash. Given that your history text file is a sequentially appended logfile, while the database files are randomly accessed, updating the logfile is trivial and a negligible performance hit, while the database update is enough of a performance killer that your OS or swerver software may minimize this as much as possible by keeping updates in memory. I always regenerate the history database after a crash by hand; this has the drawback that it's not automated anywhere at startup (although with care it could be), and therefore doesn't meet the company criteria for a system that can automatically restart after a crash unattended; however, on the relatively rare occasions that have seen OS crashes, a manual review of the system has revealed a lot more problems that I didn't anticipate and that require human intervention to repair, such as half the news filesystems failing to mount automagically while the system carries on as if nothing is out of the ordinary, plus the other databases that have been introduced are decidedly not robust enough to permit quick and unattended recovery, even if I knew how to cleanly and safely recover them, which I don't. > "The Computer made me do it." In short, after any OS crash, you should *always* rebuild your history database with makehistory/makedbz. This should be all that's needed for 1.wozzit INN, although an `expireover' run can improve efficiency of any possibly missing overview data by bringing it up to date with the spool contents if needed. Starting with 2.whatever where many more vital databases of mysterious importance have been introduced, you probably must run additional recovery procedures to reclaim missing info, but I have no idea what or how. BOUSWMA Barry, MCSE These sorts of problems NEVER happen with world-class microsoft products > > > >
Technical Details
Message-ID:
<0A630C215BE960.52068EF053120E@microsoft.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsfeed.online.be!newscore.univie.ac.at!193.154.160.102.MISMATCH!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2newsReferences:
<97rd0l$g3i$1@allhats.xcski.com>Show Full Headers
Complete Article Headers
Message-ID: <0A630C215BE960.52068EF053120E@microsoft.com> Subject: Sv.: How did that happen? Date: Mon, 19 Mar 2001 02:29:07 +0000 From: "'BOUSWMA Barry MCSE, Te1e Denmark Internet'" <pedophile@te1edanmark.dk> References: <97rd0l$g3i$1@allhats.xcski.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsfeed.online.be!newscore.univie.ac.at!193.154.160.102.MISMATCH!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2news Newsgroups: news.software.nntp X-Pedopyile: BARRY BOUWSMA IS A PEDOPHILE!!! Organization: Te1e Denmark Internet Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Mail-To-News-Contact: postmaster@nym.alias.net Lines: 100