Thread View: news.software.nntp
4 messages
4 total messages
Started by Eric Forcey - Technical Support ...
Mon, 30 Dec 1996 00:00
Expiring Problem
Author: Eric Forcey - Technical Support ...
Date: Mon, 30 Dec 1996 00:00
Date: Mon, 30 Dec 1996 00:00
32 lines
2049 bytes
2049 bytes
I have an expiration problem on my server.
First I was getting the "can't store key error" so I obtained and ran the
fixhist program. That worked fine. Right now I have one of my spool
drives that is at 100% and it will not expire properly ( ie for right now
until this gets cleaned up I have the expire set for that drive
alt.binaries.* set to 1:1:2 and I have articles that are on there that
are older than one day.
This maybe a stupid newbie question but hey thats what I am right now :)
Please email responses as well cuz as it would seem I won't be able to
unthrottle the server until I can get this cleaned up
Thanks,
--
Eric Forcey
Technical Support Manager/News Administrator
-----------------------------------------------------------------------
ProtoSource Network A Division of Protosource Corporation
-----------------------------------------------------------------------
Voice: (209) 486-8638 2300 Tulare, Suite 100
(800) 426-8638 Fresno, CA 93721-2226
Fax: (209) 495-4940 http://www.psnw.com
Data: Call for Numbers email: eric@psnw.com
=======================================================================
====== Make it idiot proof and someone will make a better idiot. ======
=======================================================================
Re: Expiring Problem
Author: Ted Deppner
Date: Tue, 31 Dec 1996 00:00
Date: Tue, 31 Dec 1996 00:00
19 lines
1020 bytes
1020 bytes
In article <32c830d6.60481952@news.muskoka.net>, <rick@muskoka.net> wrote:
>
>find /var/news/spool -type f -ctime +3 -exec rm -rf {} \; &
>
That's pretty expensive, and potentially dangerous... ( and there is
no need for -r on rm )
find /var/news/spool -type f -ctime +3 | xargs rm -f
is far more effecient... best would be some fastrm variant though.
--
Ted Deppner
ted@psyber.com
http://www.psyber.com
Re: Expiring Problem
Author: Dan Foster
Date: Tue, 31 Dec 1996 00:00
Date: Tue, 31 Dec 1996 00:00
22 lines
1502 bytes
1502 bytes
>In article <32c830d6.60481952@news.muskoka.net>, <rick@muskoka.net> wrote:
>>
>>find /var/news/spool -type f -ctime +3 -exec rm -rf {} \; &
Besides... if you have any groups that has a retention period longer than
3 days, you'll wipe out articles in them *without* making the appropriate
changes in the right files - and clients will get confused when they try
to retrieve a supposedly valid post but gets nothing back.
Ie if you have local groups that you store news for 30, 60, or 90 days (or
some such variant).
So, best suggestion: narrow down (make more specific) which hierarchies in
/var/news/spool you want to apply this find/rm to. Or just create a script
with all the specific finds? That way you won't overlook something by
accident (easy to do with 3am cleanup jobs ;-) )
-Dan Foster
Internet: dsf@frontiernet.net
Re: Expiring Problem
Author: Harrison Bergeron
Date: Wed, 08 Jan 1997 00:00
Date: Wed, 08 Jan 1997 00:00
31 lines
1484 bytes
1484 bytes
Ted Deppner ted@jasmine.psyber.com prognosticated profusely:
>In article <32c830d6.60481952@news.muskoka.net>, <rick@muskoka.net> wrote:
>>
>>find /var/news/spool -type f -ctime +3 -exec rm -rf {} \; &
>>
>
>That's pretty expensive, and potentially dangerous... ( and there is
>no need for -r on rm )
>
>find /var/news/spool -type f -ctime +3 | xargs rm -f
>
>is far more effecient... best would be some fastrm variant though.
>
And will leave dangling symlinks. Try ! -type d
How about changing the first line in expire.ctl that tells it
what to expire, to:
*:A:0:0:0
then changing the cron entry to start news.daily in 1 minute?
If your desparate, then delete a few binaried until news.daily
gets to really deleting stuff.
--
davids@davids.psyberlink.net
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