🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by John Schmidt Wed, 20 Aug 2003 14:24
INN crash recovery
#66517
Author: John Schmidt
Date: Wed, 20 Aug 2003 14:24
11 lines
1376 bytes
Are newer versions of INN any more graceful than 2.3.3 about recovering
from an unclean shutdown? Currently, when my home machine loses power,
I just wipe my article and overview spools, make new history files
from scratch, and renumber active. Since it is just a toy server, it's
not a huge deal to lose my spool, but I was curious about newer
alternatives.

JS

Re: INN crash recovery
#66518
Author: Russ Allbery
Date: Wed, 20 Aug 2003 15:25
14 lines
1717 bytes
John Schmidt <a.dingo@mebay.biz> writes:

> Are newer versions of INN any more graceful than 2.3.3 about recovering
> from an unclean shutdown?

INN 2.4.0 is much better, yes, in several different respects, both in
flushing data to disk more frequently and in having better recovery tools.
INN 2.4.1 should be even better, as I have a few more ideas to improve it.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN crash recovery
#66519
Author: Jeffrey M. Vinocur
Date: Wed, 20 Aug 2003 16:17
31 lines
2391 bytes
In article <874r0cjqpo.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>
>INN 2.4.0 is much better, yes, in several different respects, both in
>flushing data to disk more frequently and in having better recovery tools.
>INN 2.4.1 should be even better, as I have a few more ideas to improve it.

I meant to post a report of my observations after crashing last
week (sometimes it takes a power failure to remind you that the
server never got connected to the building-wide UPS, *sigh*).

I'm running CURRENT with tradindexed (and a combination of
tradspool and CNFS), all on ReiserFS, linux 2.4.18.

So, quick examination of a few .DAT files showed no problems with
overview.  I don't recall if I checked the active file or not
(since it would be renumbered anyway, I wasn't too concerned).
But the tail end of the history file was rather corrupt (missing
some entries at the end, and with a few kb of NUL trash a bit
before the end), so I had to rebuild that.

Which leaves me with a feature request -- it would be nice if
tdx-util could add entries to the history file.  (I would have
been quite happy to keep whatever I could salvage of the old
history file and just do a quick rebuild of the groups in
tradspool...)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN crash recovery
#66520
Author: Russ Allbery
Date: Wed, 20 Aug 2003 16:22
28 lines
2432 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:

> So, quick examination of a few .DAT files showed no problems with
> overview.  I don't recall if I checked the active file or not (since it
> would be renumbered anyway, I wasn't too concerned).  But the tail end
> of the history file was rather corrupt (missing some entries at the end,
> and with a few kb of NUL trash a bit before the end), so I had to
> rebuild that.

stdio must have trashed it.

> Which leaves me with a feature request -- it would be nice if tdx-util
> could add entries to the history file.  (I would have been quite happy
> to keep whatever I could salvage of the old history file and just do a
> quick rebuild of the groups in tradspool...)

Hm, yeah, that's a good idea.

The simple thing that I'm going to add for INN 2.4.1 if I can find the
time is to just make sure that when renumbering, the *highest* of the
values found in the active file and the overview file is chosen rather
than just believing overview.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN crash recovery
#66521
Author: Michael Grimm
Date: Wed, 20 Aug 2003 17:45
53 lines
3707 bytes
Jeffrey M. Vinocur wrote:

> In article <874r0cjqpo.fsf@windlord.stanford.edu>,
> Russ Allbery  <rra@stanford.edu> wrote:
>>
>>INN 2.4.0 is much better, yes, in several different respects, both in
>>flushing data to disk more frequently and in having better recovery
>>tools.

I have to second this, although it isn't perfect yet ;-) I had three 
unclean shutdowns over the last two month with 2.4.0 running on a Linux 
2.4.21 PC, spool is pure CNFS and overview is ovdb.

Two recoveries left me with a running INN and some articles missing in 
CNFS. Removing the last couple of hundreds articles from the history 
and re-injecting these articles into an INN running in slave mode left 
me with an uptodate INN including overviews (besides a couple of 
duplicate entries in my KNode pointing to the very same articles. But 
that might well be a problem with my newsreader's overview database.).

The last recovery didn't work that well because my server froze right 
in the middle of my daily main feed via uucp batches. Now the overview 
was messed up as well. I decided to start from scratch.

Well, my personal backup strategy is a backup entry in my newsfeeds 
that the batcher puts into an outgoing uucp feed that will never be 
sent. So starting from scratch isn't that much of a problem for my 
little leafnode (3 million articles today).

>> INN 2.4.1 should be even better, as I have a few more ideas to
>> improve it.
> [...] 
> Which leaves me with a feature request -- it would be nice if
> tdx-util could add entries to the history file.

I have to second this! What I normaly do is: start with the last tokens 
and sm until the first articles are found and remove the history's tail 
at that point and re-inject the latest incoming and saved uucp batches.

That leads me to a further suggestion for CNFS: Save all incoming 
articles, starting from the latest CNFS flushing onwards until you 
flush the CNFS again, into a scratch tradspool. These articles could 
then be used in a recovering attempt (tool or manually) after an 
unclean shutdown. At my site the CNFS flushing takes place roughly 
every 10 minutes, thus only a few articles need to be temporarily 
saved. Even a longer period for intermittent savings could be handled. 
I do not have any idea what kind of a penalty that would be for a huge 
server, though.

With regards,
Michael
-- 
to let
Re: INN crash recovery
#66522
Author: Russ Allbery
Date: Wed, 20 Aug 2003 17:53
14 lines
1763 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:

> That leads me to a further suggestion for CNFS: Save all incoming
> articles, starting from the latest CNFS flushing onwards until you flush
> the CNFS again, into a scratch tradspool.

Why don't you just tell CNFS to flush after every article if you want that
behavior?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN crash recovery
#66523
Author: Michael Grimm
Date: Wed, 20 Aug 2003 18:16
18 lines
1739 bytes
Russ Allbery wrote:

> Michael Grimm <trashcan@odo.in-berlin.de> writes:
> 
>> That leads me to a further suggestion for CNFS: Save all incoming
>> articles, starting from the latest CNFS flushing onwards until you
>> flush the CNFS again, into a scratch tradspool.
> 
> Why don't you just tell CNFS to flush after every article if you want
> that behavior?

Because I didn't know about that configuration option until I read your 
posting. All shame on me, mea culpa.

Sorry,
Michael
-- 
to let
Re: INN crash recovery
#66525
Author: Russ Allbery
Date: Wed, 20 Aug 2003 19:53
20 lines
2008 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:
> Russ Allbery wrote:

>> Why don't you just tell CNFS to flush after every article if you want
>> that behavior?

> Because I didn't know about that configuration option until I read your 
> posting. All shame on me, mea culpa.

No problem; it's badly documented.  Or rather, it's documented well, but
only in the cycbuff.conf manual page, which isn't where people seem to
look for it.

I'll try to put it somewhere more visible.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN crash recovery
#66526
Author: Michael Grimm
Date: Wed, 20 Aug 2003 21:48
38 lines
2801 bytes
Russ Allbery wrote:

> Michael Grimm <trashcan@odo.in-berlin.de> writes:
>> Russ Allbery wrote:
> 
>>> Why don't you just tell CNFS to flush after every article if you
>>> want that behavior?
> 
>> Because I didn't know about that configuration option until I read
>> your posting. All shame on me, mea culpa.
> 
> No problem; it's badly documented.  Or rather, it's documented well,
> but only in the cycbuff.conf manual page, which isn't where people
> seem to look for it.

I do have the feeling of being caught ;-) I did read the cycbuff.conf 
man page during my period "let me get that CNFS stuff running soon". 
And, I do have to admit, didn't understand that option at that time. 
Later, I was always looking in inn.conf for something to get ...

| Aug 20 20:19:26 pille innd: CNFS-sm: CNFSflushallheads: flushing cnfs1

... this flushing being done more frequently (~ 10 minutes intervals at 
my server), because I did interpret that as something like writing 
buffers from memory onto disk. And having written this sentence, I do 
have to admit that I'm going to become completely confused, now. What 
does that message stand for? Setting cycbuffupdate:1 didn't have any 
impact on that messages' intervals ...
 
> I'll try to put it somewhere more visible.

I do recommend inn.conf, but that's my personal way of searching for an 
option, although cycbuff.conf is the relevant config file.

Regards,
Michael
-- 
still to let
Re: INN crash recovery
#66634
Author: Russ Allbery
Date: Mon, 08 Sep 2003 02:32
41 lines
3151 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:

> I do have the feeling of being caught ;-) I did read the cycbuff.conf
> man page during my period "let me get that CNFS stuff running
> soon". And, I do have to admit, didn't understand that option at that
> time. Later, I was always looking in inn.conf for something to get ...

> | Aug 20 20:19:26 pille innd: CNFS-sm: CNFSflushallheads: flushing cnfs1

> ... this flushing being done more frequently (~ 10 minutes intervals at
> my server), because I did interpret that as something like writing
> buffers from memory onto disk.

It also does the same thing.  *That* flush is under the control of innd,
but is done when INN is otherwise idle, before doing certain ctlinnd
operations, or when shutting down.  If it's doing that every ten minutes
or so, that probably means your server is mostly idle.

> And having written this sentence, I do have to admit that I'm going to
> become completely confused, now. What does that message stand for? 
> Setting cycbuffupdate:1 didn't have any impact on that messages'
> intervals ...

Yeah, the flush caused by cycbuffupdate doesn't log a message to syslog.

>> I'll try to put it somewhere more visible.

> I do recommend inn.conf, but that's my personal way of searching for an
> option, although cycbuff.conf is the relevant config file.

At the least, it needs to be in INSTALL.  I'll put it there.  It doesn't
really fit into inn.conf, since it's not related to any of the other
inn.conf options (although eventually inn.conf shouldn't be such a
catch-all and the storage-related options should all be in storage.conf
and documented there).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads