Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!ut-sally!utah-cs!utah-gr!uplherc!sp7040!jsp From: jsp@sp7040.UUCP (John Peters) Newsgroups: news.admin Subject: Re: How do you fix the spool directory after it fills up? Message-ID: <300@sp7040.UUCP> Date: 19 Feb 88 01:02:04 GMT References: <144@amcad.UUCP> Distribution: na Organization: Unisys, Salt Lake City, UT Lines: 32 Keywords: /usr/spool/news out of space Summary: expireing files > We have a very small amount of space allocated for the news spool area > on our system (25000 blocks). We get most all the groups except soc and > sci and we are continually running out of room. > > I recently begin manually expiring the maps since we don't run pathalias > (our feed does) with expire -I -e1 -n comp.mail.maps. > > Every so often if I'm not keeping a watchful eye on the free space in > the spool directory, it fills up. > > So -- how do I fix things? > 1. How can I expire things to prevent this problem. I heard someone > hacked inews to put articles on another filesystem when the spool > filesystem filled up. > 2. What should I do to clean up /usr/spool/news? Try this if it is full, At Weber State College We only have 40 meg to dedicate to news so I expire articles (all of them, who knows what a student will want to read) in 2 weeks. I do however run a cron script daily that checks the file system to see if it is more than 90% full. If it does in does the following command: find /news/spool/news -mtime +12 -exec rm {} \; This deletes any files in our news spool directory that are more than 13 days old. Since I started doing this it has nor over filled yet. You can run this command by hand if you want for put it in cron as a fail safe like I did. -- Johnnie -- Bill the Cat for President >O,o<