🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Trevor Fiatal Fri, 07 Nov 1997 00:00
Corruption problems with background-renumber patch
#23041
Author: Trevor Fiatal
Date: Fri, 07 Nov 1997 00:00
24 lines
1588 bytes

Ok, perhaps this one was discussed when I wasn't looking, but...

Has anyone else noticed a nasty active-file corruption side effect to using
the background renumber patch?  Specifically, the one which adds the 
"ctlinnd renumber '*'" functionality.

It's in my current INN build, but I commented it out of news.daily on a hunch
when 3-6 out of 19 field systems would crop up each night with active-file
errors which prevented expire from running.  Since that time, not a single
incident.  I had been using it in news.daily to reduce the amount of
customer-visible downtime during the daily renumber, but it's not worth this!

-Trevor


/--------------------------------=-----------------------------------\
|Trevor Fiatal - trevor@home.net |                                   |
|Internet Applications Architect | "Entropy sucks."                  | 
|@Home Network, SF Bay Area, CA  |                                   | 
\--------------------------------|-----------------------------------/

Re: Corruption problems with background-renumber patch
#23020
Author: Jeff Garzik
Date: Fri, 07 Nov 1997 00:00
42 lines
1929 bytes
Mike Horwath wrote:
> Trevor Fiatal <trevor@home.net> wrote:
> : Ok, perhaps this one was discussed when I wasn't looking, but...
> 
> : Has anyone else noticed a nasty active-file corruption side effect to using
> : the background renumber patch?  Specifically, the one which adds the
> : "ctlinnd renumber '*'" functionality.

> What I do is each sunday morning, after expire has run, I run a
> renumber, in the foreground.  Doesn't take too long and weekly should
> be more than enough in my opinion.


I throttle the server, renumber using a Perl script, and then unthrottle
and reload the active file.

This has the benefit of not tying up innd -- readers can still connect,
incoming feeds are refused per the NNTP spec -- but it does run a little
bit more slowly than the in-innd renumber.

The shell script executed from crontab looks something like

	#!/bin/sh
	cd /var/news/etc

	ctlinnd throttle 'renumbering active'

	cat active | sort | /usr/news/local/do-num > active.new

	mv active active.old
	mv active.new active

	ctlinnd reload active 'renumbered active'
	ctlinnd go ''

-- 
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
Spinne USENET News Service	        Fast and efficient news feeds
http://www.spinne.com/usenet/	           News tuning and consulting

Re: Corruption problems with background-renumber patch
#23099
Author: Ron Echeverri
Date: Mon, 10 Nov 1997 00:00
27 lines
1612 bytes
In article <64605q$rk5$1@fu-berlin.de>,
Heiko Schlichting <heiko@cis.fu-berlin.de> wrote:
>Jeff Garzik <jeff.garzik@spinne.com> writes:
>>I throttle the server, renumber using a Perl script, and then unthrottle
>>and reload the active file.
>This is a solution, but a bad one. Anyone really tried to fix the
>problem with "ctlinnd renumber '*'"? I also noticed that the active
>file get corrupt using the background renumbering and I turned off
>renumbering at all (I do not want to throttle the server for longer
>than a few seconds).

One thing i think was suggested at LISA was to basically do something
like this:

foreach i (`awk '{print $1}' active`)
    ctlinnd renumber $i
end

rone
-- 
Ron Echeverri			"What, me pithy?"			   +-+
Systems/Usenet Administration				   Mountain View ->b |
Best Internet Communications, Inc.					   \ \
<rone+sig@best.net>	<URL:http://www.ennui.org/~rone/>		    \_|

Re: Corruption problems with background-renumber patch
#23102
Author: Heiko Schlichting
Date: Mon, 10 Nov 1997 00:00
23 lines
1634 bytes
Jeff Garzik <jeff.garzik@spinne.com> writes:
>I throttle the server, renumber using a Perl script, and then unthrottle
>and reload the active file.

This is a solution, but a bad one. Anyone really tried to fix the
problem with "ctlinnd renumber '*'"? I also noticed that the active
file get corrupt using the background renumbering and I turned off
renumbering at all (I do not want to throttle the server for longer
than a few seconds).

Because the problem is hard to reproduce, I was not able to find the
real reason for the corruption of the active file. But if so many
news administrations notce this problem, it should be possible to fix
this bug. Renumbering in the background is a good feature and can
be improved, so that simultanious renumbering is impossible and
the end of the renumbering should logged. But first we should find
and eliminate the reason for destroying the active file in seldom
cases.

Heiko

Re: Corruption problems with background-renumber patch
#23155
Author: Curt Welch
Date: Tue, 11 Nov 1997 00:00
30 lines
1818 bytes
rone@bofh.noc.best.net (Ron Echeverri) wrote:
> One thing i think was suggested at LISA was to basically do something
> like this:

> foreach i (`awk '{print $1}' active`)
>     ctlinnd renumber $i
> end

Does everone know that this is already built into news.daily as
an option (or at least it is in 1.5.1)?  Just define RENUMBER
at the top of the script to active the code. I also comment out the sleep
so it doesn't take 5 hours to run.  The system is slow, but still
responds while this is running - which is much better than having
your system lock up for 5 minutes.

RENUMBER=1

...

        while read GROUP hi lo flag ; do
            ctlinnd -s renumber ${GROUP} 2>&1
            #sleep ${RENUMBER}
        done <${ACTIVE}

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

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