πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Donovan Jones Tue, 25 Jun 2002 02:43
expiring articles with inn
#59326
Author: Donovan Jones
Date: Tue, 25 Jun 2002 02:43
41 lines
2281 bytes
Hi I need to remove articles from an inn newsserver, the documentation on 
the server says to run this command:

# /usr/local/news/bin/news.daily delayrm notdaily flags="-e -p
-v1 -s" lowmark expireover > /dev/null 2>&1

After running this command and doing :

# df

there is no change in the file sizes

I searched google groups to try discover, what the flags mean after having 
no luck looking in the INN Implementation guide

I found this:
-------------------------------------------------------
The delayrm option turns on the delayrm feature.  Normally
expire deletes the files itself.  "delayrm" instead writes
the names of the files to be deleted to a file.  Then
fastrm runs.  Read "man fastrm" for more information.
---------------------------------------------------------

This suggests I need to run fastrmbut running it on its own gives:
# /usr/local/news/bin/fastrm
fastrm: Usage error, wrong number of arguments

I presume I need to tell it the file that delayrm has written to - how do i 
do this?

I also tried the same command without the delayrm:
/usr/local/news/bin/news.daily notdaily flags="-e -p -v1 -s"
lowmark expireover > /dev/null 2>&1
This didnt seem to remove any articles either

Can someone suggest how to do this 

Thanks

Don Jones
Re: expiring articles with inn
#59327
Author: Russ Allbery
Date: Tue, 25 Jun 2002 03:56
26 lines
1974 bytes
Donovan Jones <d.jones.nospam@spamno.comnet.net.nz> writes:

> Hi I need to remove articles from an inn newsserver, the documentation
> on the server says to run this command:

> # /usr/local/news/bin/news.daily delayrm notdaily flags="-e -p
> -v1 -s" lowmark expireover > /dev/null 2>&1

Maybe nothing has expired since the last time news.daily ran?

> I found this:
> -------------------------------------------------------
> The delayrm option turns on the delayrm feature.  Normally
> expire deletes the files itself.  "delayrm" instead writes
> the names of the files to be deleted to a file.  Then
> fastrm runs.  Read "man fastrm" for more information.
> ---------------------------------------------------------

news.daily will run fastrm automatically.

-- 
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: expiring articles with inn
#59328
Author: Donovan Jones
Date: Tue, 25 Jun 2002 04:31
62 lines
3318 bytes
Russ Allbery wrote:

> Donovan Jones <d.jones.nospam@spamno.comnet.net.nz> writes:
> 
>> Hi I need to remove articles from an inn newsserver, the documentation
>> on the server says to run this command:
> 
>> # /usr/local/news/bin/news.daily delayrm notdaily flags="-e -p
>> -v1 -s" lowmark expireover > /dev/null 2>&1
> 
> Maybe nothing has expired since the last time news.daily ran?
>

Ok - thats possibly the problem. 

The initial reason to run this was to try to purge some newsgroups from the 
server in response to a users request:

--------------------------------------------------------------
 
Your server has more than 10,000 items in the nz.comp
newsgroup. This is causing problems for some crufty old news reading 
software that we use here. Any chance of you running a purge?

Just FYI, this is the crash from last night...

   Save [3989] {nz.comp} id {Re: Copy proof CDs?  No.}
   Save [3990] {nz.comp} id {Re: Linux help needed}
   Too many items, recompile
   %SYSTEM-F-OPCCUS, opcode reserved to customer fault at PC=8059457C,
   PS=0000001B
   %TRACE-F-TRACEBACK, symbolic stack dump follows
    Image Name   Module Name     Routine Name    Line Number  rel PC      
abs PC
                                                           0 8059457C
   8059457C
                                                           0 80568F88
   80568F88
    FNEWS        GROUP           grp_add                7458 000001F0
   0003F230
    FNEWS        GROUP           item_save_num          7720 000014FC
   0004053C
   ***************
    FNEWS        MENU            menu_noscreen          7298 00000070
   000317A0
    FNEWS        FNEWS           main                   7357 00000400
   00030400
    FNEWS        FNEWS           __main                    0 00000058
   00030058
                                                           0 82A86170
   82A86170
   %DCL-W-SKPDAT, image data (records not beginning with "$") ignored
---------------------------------------------------------------------

I was hoping the command above would remove some of the items from the 
newsgroups involved - but no luck - what could i do to solve this problem

help appreciated

Don Jones

Re: expiring articles with inn
#59329
Author: Russ Allbery
Date: Tue, 25 Jun 2002 05:27
17 lines
1709 bytes
Donovan Jones <d.jones.nospam@spamno.comnet.net.nz> writes:

> I was hoping the command above would remove some of the items from the
> newsgroups involved - but no luck - what could i do to solve this
> problem

Decrease the retention time for the relevant newsgroups and then run
expire.  Right now, those groups have received 10,000 articles or more
over the time period that you have your server configured to retain
articles for.

-- 
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: expiring articles with inn
#59332
Author: CornΓ© Beerse
Date: Tue, 25 Jun 2002 09:01
23 lines
1598 bytes
Donovan Jones wrote:
> 
> Hi I need to remove articles from an inn newsserver, the documentation on
> the server says to run this command:
> 
> # /usr/local/news/bin/news.daily delayrm notdaily flags="-e -p
> -v1 -s" lowmark expireover > /dev/null 2>&1
> 
> After running this command and doing :
> 
> # df
> 
> there is no change in the file sizes
> 

What's the storage method?

cnfs does not use more or less than configured. Hence expiring has no
effect on disk usage.


CBee
Re: expiring articles with inn
#59349
Author: Daniel Yeung
Date: Thu, 27 Jun 2002 02:41
53 lines
2698 bytes
Expiry policy is different from various storage method.
Beside that , DOEXPIREOVER should be set to true in news.daily

Regards

Daniel Yeung

"Donovan Jones" <d.jones.nospam@spamno.comnet.net.nz> wrote in message
news:af8nk9$n94$1@news.comnet.co.nz...
> Hi I need to remove articles from an inn newsserver, the documentation on
> the server says to run this command:
>
> # /usr/local/news/bin/news.daily delayrm notdaily flags="-e -p
> -v1 -s" lowmark expireover > /dev/null 2>&1
>
> After running this command and doing :
>
> # df
>
> there is no change in the file sizes
>
> I searched google groups to try discover, what the flags mean after having
> no luck looking in the INN Implementation guide
>
> I found this:
> -------------------------------------------------------
> The delayrm option turns on the delayrm feature.  Normally
> expire deletes the files itself.  "delayrm" instead writes
> the names of the files to be deleted to a file.  Then
> fastrm runs.  Read "man fastrm" for more information.
> ---------------------------------------------------------
>
> This suggests I need to run fastrmbut running it on its own gives:
> # /usr/local/news/bin/fastrm
> fastrm: Usage error, wrong number of arguments
>
> I presume I need to tell it the file that delayrm has written to - how do
i
> do this?
>
> I also tried the same command without the delayrm:
> /usr/local/news/bin/news.daily notdaily flags="-e -p -v1 -s"
> lowmark expireover > /dev/null 2>&1
> This didnt seem to remove any articles either
>
> Can someone suggest how to do this
>
> Thanks
>
> Don Jones


Re: expiring articles with inn
#59360
Author: Donovan Jones
Date: Fri, 28 Jun 2002 03:30
17 lines
1478 bytes
Russ Allbery wrote:


> Decrease the retention time for the relevant newsgroups 

Could I be lazy and enquire how to do this


Im still trying to update a bunch of apache boxes and 20 odd instances of 
openssh and reading INN documentation is unfortunately not the highest 
priority

Thanks

Don Jones

Re: expiring articles with inn
#59364
Author: Russ Allbery
Date: Fri, 28 Jun 2002 04:35
18 lines
1771 bytes
Donovan Jones <d.jones.nospam@spamno.comnet.net.nz> writes:
> Russ Allbery wrote:

>> Decrease the retention time for the relevant newsgroups 

> Could I be lazy and enquire how to do this

Expiration and retention is controlled by expire.ctl; the comments at the
top of the file explain the syntax.  You want to reduce the number of days
that articles are saved for (don't worry about the expires and minimum
days fields).

-- 
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