Thread View: news.software.nntp
13 messages
13 total messages
Started by Murthy Durvasula
Sat, 22 Mar 1997 00:00
Inn-1.5.1 upgrade
Author: Murthy Durvasula
Date: Sat, 22 Mar 1997 00:00
Date: Sat, 22 Mar 1997 00:00
11 lines
725 bytes
725 bytes
Hi, Can someone please post a safe way (steps involved) to upgrade from Inn1.4 running on a Solaris 2.4 to Inn-1.5.1 on a production machine. Any pointers will be greately appreciated. thanks! Murthy
Re: Inn-1.5.1's file space recovery problem
Author: Christopher D Dukes
Date: Sat, 22 Mar 1997 00:00
Date: Sat, 22 Mar 1997 00:00
18 lines
1187 bytes
1187 bytes
I am running inn 1.5.1 on an AIX 4.1.5 box. I am having an odd problem with expire. When the old history file is removed for the new history file to replace it, the space is not being recovered. The space is recovered upon reboot. Has anyone else seen this problem? Is this an inn fault, an AIX fault, or both? Any help would be appreciated. -- The following must be destroyed. Microsoft, Lyons Partnership, SoftCell. Balkanize USENET!! Vote from the rooftops!! Sending unsolicited commercial massmail to this account may result in a network outage for your site. Have a nice day.
Re: Inn-1.5.1's file space recovery problem
Author: Hugh Messenger
Date: Sun, 23 Mar 1997 00:00
Date: Sun, 23 Mar 1997 00:00
34 lines
1847 bytes
1847 bytes
Christopher D Dukes <cddukes@unity.ncsu.edu> wrote in article <5h1h8i$p5f@uni00nw.unity.ncsu.edu>... > I am running inn 1.5.1 on an AIX 4.1.5 box. > I am having an odd problem with expire. > When the old history file is removed for the new history file to replace > it, the space is not being recovered. > The space is recovered upon reboot. > > Has anyone else seen this problem? > Is this an inn fault, an AIX fault, or both? If this is the same problem I was seeing a while back on OSF, it's a generic problem. News.daily builds the new history as history.n (or whatever, YMMV), then renames it to history. If you use 'lsof' or some such utility to show open files and their inode numbers, you'll probably find that a number of nnrpd's still have the old history file open when the rename happens. This casues UNIX to create a new file, with new inode, for the renamed history.n, and leave the old history in place. It's invisible to the file system, as it's been unlinked from the directory structure, but the file remains on disk, taking up space, until the last open file handle is closed. I think I fixed this my having news.daily do a cp of /dev/null to the old history just before the rename. -- hugh
Re: Inn-1.5.1's file space recovery problem
Author: James Brister
Date: Sun, 23 Mar 1997 00:00
Date: Sun, 23 Mar 1997 00:00
22 lines
1462 bytes
1462 bytes
cddukes@unity.ncsu.edu (Christopher D Dukes) writes: > I am running inn 1.5.1 on an AIX 4.1.5 box. > I am having an odd problem with expire. > When the old history file is removed for the new history file to replace > it, the space is not being recovered. > The space is recovered upon reboot. There's probably some long-running nnrpd that is holding the file open. You should make sure the timeouts in config.data for nnrpd are reasonably short (or rather, not too long) and find out which nnrpd is still running, by who and why it's still being used--a normal human reading will usually let the defaul timeouts go before an hour or two up. Some broken newsreaders force the connection open by issuing bogus commands. James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org inn@isc.org
Re: Inn-1.5.1's file space recovery problem
Author: Katsuhiro Kondou
Date: Sun, 23 Mar 1997 00:00
Date: Sun, 23 Mar 1997 00:00
15 lines
1030 bytes
1030 bytes
In article <5h1h8i$p5f@uni00nw.unity.ncsu.edu>, cddukes@unity.ncsu.edu (Christopher D Dukes) writes: } When the old history file is removed for the new history file to replace } it, the space is not being recovered. } The space is recovered upon reboot. Maybe nnrpd grabs the old history. Currently there is no way to have nnrpd reopen it. -- Katsuhiro Kondou JH5GHM/1 NEC Corporation, Tokyo JAPAN
Re: Inn-1.5.1 upgrade
Author: Katsuhiro Kondou
Date: Sun, 23 Mar 1997 00:00
Date: Sun, 23 Mar 1997 00:00
30 lines
1554 bytes
1554 bytes
In article <01bc36e6$03f38440$e4e893cf@valued-cu>, "Murthy Durvasula" <MurthyDurvasula@worldnet.att.net> writes: } Can someone please post a safe way (steps involved) to upgrade from } Inn1.4 running on a Solaris 2.4 to Inn-1.5.1 on a production machine. } Any pointers will be greately appreciated. cd $inn/config cp ../sample-configs/config.data-solaris2.3-4 config.data make subst ./subst -f your_original.config.data config.data After that, you should check INNWATCH_INODES and INNWATCH_BLOCKS, so that the output of ``df'' can be parsed correctly. And more, set LIKE_PULLERS to ``DO'' in most case. And do the followings. cd $inn make update cd site make update If you've modified locally any files among $MOST in site/Makefile, the last ``make update'' will replace them. So you should modify them in samples directory before doing the last ``make update''. -- Katsuhiro Kondou JH5GHM/1 NEC Corporation, Tokyo JAPAN
Re: Inn-1.5.1's file space recovery problem
Author: Mark Wedel
Date: Mon, 24 Mar 1997 00:00
Date: Mon, 24 Mar 1997 00:00
28 lines
1676 bytes
1676 bytes
In article <5h7hok$4h7@uni00nw.unity.ncsu.edu>, Christopher D Dukes <cddukes@unity.ncsu.edu> wrote: >Thanks for all the responses. >Yes it does appear to be a long-running nnrpd causing the problem. >And I am currently looking at what options I have available >to fix the problem. (rmuser does not seem to work :-). >I will probably break down and write a script to run after >the nightly expire to expire a few nnrpd connections. > I had a similar problem. A fairly simple solution is to add a few lines in the news.daily to zero out the files before the are removed/ copied over (somethine like echo > history). This is the same idea as what is used to zero out the log files. Now the nnrpd process won't like it (will probably die on its own, because the history file it was using is now gone), but you might consider this a reasonable risk (worst case is that the user just needs to restart whatever newsreader.) -- -- Mark Wedel mark@pyramid.com
Re: Inn-1.5.1's file space recovery problem
Author: Eilon Gishri
Date: Mon, 24 Mar 1997 00:00
Date: Mon, 24 Mar 1997 00:00
34 lines
1969 bytes
1969 bytes
Christopher D Dukes <cddukes@unity.ncsu.edu> wrote: : I am running inn 1.5.1 on an AIX 4.1.5 box. : I am having an odd problem with expire. : When the old history file is removed for the new history file to replace : it, the space is not being recovered. : The space is recovered upon reboot. : Has anyone else seen this problem? : Is this an inn fault, an AIX fault, or both? Sure, get yourself lsof and run it on the partition where you installed your history file. You'll find out a couple of nnrpd processes are taking a lot of memory - the history file. I think its related to the DBZ options in the config.data but don't count on it. If you kill those processes (which is not the way to handle the problem) you'll gain the disk space back. I'm sorry I can't give you the solution as I'm not a news admin any more and I can't remember if I solved it or not. Probably the age.. : Any help would be appreciated. : -- : The following must be destroyed. Microsoft, Lyons Partnership, SoftCell. : Balkanize USENET!! Vote from the rooftops!! : Sending unsolicited commercial massmail to this account may result : in a network outage for your site. Have a nice day. -- Eilon Gishri, Tel-Aviv University Computation Center Home 03-5078671 /* on a matter of national security */ E-mail: eilon@aristo.tau.ac.il
Re: Inn-1.5.1's file space recovery problem
Author: Christopher D Dukes
Date: Tue, 25 Mar 1997 00:00
Date: Tue, 25 Mar 1997 00:00
15 lines
1235 bytes
1235 bytes
Thanks for all the responses. Yes it does appear to be a long-running nnrpd causing the problem. And I am currently looking at what options I have available to fix the problem. (rmuser does not seem to work :-). I will probably break down and write a script to run after the nightly expire to expire a few nnrpd connections. -- The following must be destroyed. Microsoft, Lyons Partnership, SoftCell. Balkanize USENET!! Vote from the rooftops!! Sending unsolicited commercial massmail to this account may result in a network outage for your site. Have a nice day.
Re: Inn-1.5.1's file space recovery problem
Author: Per Hedeland
Date: Tue, 25 Mar 1997 00:00
Date: Tue, 25 Mar 1997 00:00
59 lines
3157 bytes
3157 bytes
In article <5h80l7$6bi$1@stealth.eng.pyramid.com>, mark@stealth.eng.pyramid.com (Mark Wedel) writes: > I had a similar problem. A fairly simple solution is to add a few >lines in the news.daily to zero out the files before the are removed/ >copied over (somethine like echo > history). This is the same idea as >what is used to zero out the log files. > > Now the nnrpd process won't like it (will probably die on its own, because >the history file it was using is now gone), but you might consider this a >reasonable risk (worst case is that the user just needs to restart whatever >newsreader.) A somewhat friendlier method is to keep the old history around for the following 24 hrs, and zero it out before the next-next one is built. If you rebuild history in the same directory as the old one (the default), you need to have space for two versions anyway, and having them there all the time actually increases the likelihood that e.g. innwatch will warn you of space shortage before it is too late.:-) Below is the little script 'histtrunc' I use for this - credits go to Jerry Aguirre (if memory serves) for pointing out that you need to be careful to avoid zeroing out the current version.:-) N.B. that you don't need to modify news.daily for this. --Per Hedeland per@erix.ericsson.se #!/bin/sh # histtrunc - avoid old unlinked versions of the history file eating space # # Works by keeping a link to the old version around, and truncating it to # zero size at the next expire run. You need to have space for two versions # obviously, but you normally need that anyway for expire - and this way # you can be pretty certain expire doesn't run out of space. # # Should be run immediately before expire, e.g. by giving /path/to/histtrunc # as argument to news.daily. # The full pathname of the history file - adjust as needed HISTORY=/opt/news/history if [ -f $HISTORY.old ] # old version found then # We need to make sure this isn't actually the current version, # e.g. due to the previous expire having aborted - compare the # inode numbers. set -- `ls -i $HISTORY.old $HISTORY` if [ "$1" != "$3" ] # not the current one then cp /dev/null $HISTORY.old rm $HISTORY.old ln $HISTORY $HISTORY.old fi # do nothing if it was the current one else # no old version - just create it ln $HISTORY $HISTORY.old fi
Re: Inn-1.5.1's file space recovery problem
Author: Michael Douglass
Date: Thu, 27 Mar 1997 00:00
Date: Thu, 27 Mar 1997 00:00
22 lines
1540 bytes
1540 bytes
: I had a similar problem. A fairly simple solution is to add a few
: lines in the news.daily to zero out the files before the are removed/
: copied over (somethine like echo > history). This is the same idea as
: what is used to zero out the log files.
Am I the only one to thing that this is ridiculous? I did an lsof on the
history file and found that only a very few number of the nnrpd processes
had the history file open at all; if this is the case, then why do the ones
that have it open, have it open? To avoid this problem, should nnrpd not
be written to close the history file as soon as possible?
Just thoughts.
--
Michael Douglass
Texas Networking, Inc.
"The past is a foreign country; they do things differently there."
L. P. Hartley, British author. The Go-Between, Prologue (1953).
Re: Inn-1.5.1's file space recovery problem
Author: James Brister
Date: Thu, 27 Mar 1997 00:00
Date: Thu, 27 Mar 1997 00:00
19 lines
1313 bytes
1313 bytes
Michael Douglass <mikedoug@texas.net> writes: > Am I the only one to thing that this is ridiculous? I did an lsof on the > history file and found that only a very few number of the nnrpd processes > had the history file open at all; if this is the case, then why do the ones > that have it open, have it open? To avoid this problem, should nnrpd not > be written to close the history file as soon as possible? nnrpd opens the history file when a client asks for an article by message-id. If they just ask for articles by number, then it never needs to go to the history. James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org inn@isc.org
Re: Inn-1.5.1's file space recovery problem
Author: Jerry Aguirre
Date: Fri, 28 Mar 1997 00:00
Date: Fri, 28 Mar 1997 00:00
36 lines
2398 bytes
2398 bytes
In article <5hcdj5$lao$1@news3.texas.net>, Michael Douglass <mikedoug@texas.net> wrote: >Am I the only one to thing that this is ridiculous? I did an lsof on the >history file and found that only a very few number of the nnrpd processes >had the history file open at all; if this is the case, then why do the ones >that have it open, have it open? To avoid this problem, should nnrpd not >be written to close the history file as soon as possible? It is not "ridiculous" though not entirely correct either. News readers have the option to do article access by message ID. As a simple example consider an article with a refferences header. The reader might want to find the parent article and so would look it up by message ID. Some "pull" type newsfeeds also open the history file to find all the newly arrived articles. This is the dreaded "newnews" command. If nnrpd were "written to close the history file as soon as possible" then it would close it after each such access. If the client were making many such requests this would definitely be a lot of extra overhead to open and close it each time. It is perhaps reasonable to have nnrpd close the history file after some period of time. Say every hour it would close the history file if it was open. Feel free to write the code. This is not a complete fix though. Someone could be running a local news reader that directly accessed the history file. Or someone could just be doing a "more history" and leave it running. The method of zeroing the old file before removing it is reliable and handles all those cases. If someone had the history file open that long after expire has run then the data is old anyway.
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