🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by jschick Tue, 02 Aug 2005 21:33
INN disaster recovery
#72104
Author: jschick
Date: Tue, 02 Aug 2005 21:33
31 lines
2242 bytes
Thanks to all that replied to my post about INN crashing, it's been up
and running great since the overview delete / rebuild. However, I have
some small issues and general questions about recovering lost data.

As I posted previously, I had one of my local groups go south. It had
no posts so I just recreated it. But assuming it had a bunch of posts
in it, what is the procedure for restoring a group and / or its
messages?

Also, some of the groups that survived the crash appear to have their
posts being removed. I have all of them cached in my reader, but any
new subscriber to the groups can't see them. I am not sure if this is a
result of the crash, a wonky cron job running news.daily, or what. My
crontab file for the news user looks like this:
0 22 * * * /usr/lib/news/bin/news.daily noexpire delayrm

My expire.ctl file has this entry at the end for my local groups(all
start with aafp.):
aafp.*:A:never:never:never

And as far as the logs are concerned, the cron job is running
correctly.

So if my dying messages are because of the crash, can I re-post my
locally cached copies or is there a way to restore them?

Thanks for any insight you can provide, and best regards!

Justin

Re: INN disaster recovery
#72105
Author: Jeffrey M. Vinocur
Date: Tue, 02 Aug 2005 23:18
58 lines
3476 bytes
In article <1123018390.564047.252300@z14g2000cwz.googlegroups.com>,
 <jschick@aafp.org> wrote:
>
>As I posted previously, I had one of my local groups go south. It had
>no posts so I just recreated it. But assuming it had a bunch of posts
>in it, what is the procedure for restoring a group and / or its
>messages?

I'm assuming  you're using tradspool as your article storage
format (in storage.conf) and tradindexed for overview (in
inn.conf).

First you need to look in ~news/spoool/articles and see if the
physical articles are still there.  They probably should be; it
would be pretty hard for an INN crash to remove them.  (If they
did, you could in theory restore from your newsreader, but that's
apt to be a complex procedure.)

Then look in ~news/spool/overview at the .DAT overview file
corresponding to the group you're concerned about.  There should
be one (very long) line per article, each line starting with the
number of the article in question.  Mostly you're curious about
what the first and last lines in the overview are (compared to
what's actually in the spool).  If there are articles on disk
that do -not- have overview entries, you need to fix your
overview to make those articles visible.  (If your version of INN
has tdx-util, use that with -R to rebuild the overview for that
group only; otherwise you need to do a full makehistory -O run.)

Then look in ~news/db/active at the line corresponding to the
group in question.  You want to make sure that the range of
article numbers listed there (high first, low second) large
enough to encompass all the articles in overview/spool.  If it's
not, probably the high watermark is too low.  Regardless of what
the problem is, use the "renumber" feature of ctlinnd to reset
the active file numbers to match overview.


>Also, some of the groups that survived the crash appear to have their
>posts being removed. I have all of them cached in my reader, but any
>new subscriber to the groups can't see them. I am not sure if this is a
>result of the crash, a wonky cron job running news.daily, or what.

Me either, by that description.  Using the procedure above, can
you pin down the problem?

M
>My expire.ctl file has this entry at the end for my local groups(all
>start with aafp.):
>aafp.*:A:never:never:never

That looks okay to me.  ("groupbaseexpiry" in inn.conf is true,
then?)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN disaster recovery
#72107
Author: jschick
Date: Wed, 03 Aug 2005 14:35
24 lines
2361 bytes
Thanks for the reply Jeffery.

I am using traditional across the board. And yes, groupbaseexpiry is
set to true.

In expire.ctl I left the default line *:A:1:10:never up above the line
for my local groups, in case I ever wanted to implement the usenet
feed. I figured it would be ok there since the line for my local groups
was below it, but should I remove it entirely?

I selected the local group aafp.services.backups as an example to apply
your checks against. The /var/spool/news/articles/aafp/services/backups
directory has 10 files in it, with names that are just numbers (1, 13,
14, 16, 17...). What I've got in my news reader for that group is 9
posts, a couple with threads underneath them. I then found my
aafp.services.backups.DAT file in /var/spool/news/overview/a/s/b/. I
think I've found my problem, as it only shows one line for the most
current post to that group (number 21).

I've stopped the INN service, will try the makehistory and ctlinnd
renumber procedures again and report back. Thanks!

Justin
Re: INN disaster recovery
#72108
Author: jschick
Date: Wed, 03 Aug 2005 15:17
16 lines
1872 bytes
It worked! Just don't ask me why I had to do it a second time...

Ran makehistory -O -F, started innd back up, and ran ctlinnd renumber
"". My clients are now able to download everything again.

<phew!>

I'd still like to know if I should comment out the default entry in
expire.ctl and just stick with my custom one for my local groups. I
have not yet re-enabled the news.daily cron job - with my setup how
long can I go without running it?

Thanks for all your help,

Justin
Re: INN disaster recovery
#72110
Author: Jeffrey M. Vinocur
Date: Thu, 04 Aug 2005 01:21
30 lines
2305 bytes
In article <1123079743.388173.262200@g43g2000cwa.googlegroups.com>,
 <jschick@aafp.org> wrote:
>
>In expire.ctl I left the default line *:A:1:10:never up above the line
>for my local groups, in case I ever wanted to implement the usenet
>feed. I figured it would be ok there since the line for my local groups
>was below it, but should I remove it entirely?

Really shouldn't matter.  I'd leave it, personally.

Actually, I suppose it's probably best to have something that
applies to the junk and control.* pseudogroups, so yeah, leave
it.


>I selected the local group aafp.services.backups as an example to apply
>your checks against. The /var/spool/news/articles/aafp/services/backups
>directory has 10 files in it, with names that are just numbers (1, 13,
>14, 16, 17...). What I've got in my news reader for that group is 9
>posts, a couple with threads underneath them.

Right, your server numbers each article in a given group as it
arrives.  You can see these numbers in your newsreader if you
view all headers, and look at the Xref header.  These are the
same numbers in the overview database and in the active file.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN disaster recovery
#72109
Author: Jeffrey M. Vinocur
Date: Thu, 04 Aug 2005 01:24
30 lines
2299 bytes
In article <1123082256.979587.119730@o13g2000cwo.googlegroups.com>,
jschick@aafp.org <jschick@aafp.org> wrote:
>It worked! Just don't ask me why I had to do it a second time...

I don't either.  Huh.


>I'd still like to know if I should comment out the default entry in
>expire.ctl and just stick with my custom one for my local groups. 

As I mentioned in the other post today, I'd leave it.


>not yet re-enabled the news.daily cron job - with my setup how
>long can I go without running it?

I think you should always run news.daily.  Not running it as a
way to keep posts expiring is just a way to hide some underlying
problem.  And you do want to have news.daily take care of
rotating the log files so they don't get to large, generating
daily reports, and so on.  I'd even recommend letting expire run
unless you some issue with CPU usage or something -- if a user
ever wants to cancel an article, or you decide to delete an
article right out of the spool, you want the server to be able to
clean things up properly, and it's expire/expireover that do that.


-- 
Jeffrey M. Vinocur
jeff@litech.org
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