Thread View: news.software.nntp
4 messages
4 total messages
Started by Craig Dewick
Sun, 08 Dec 1996 00:00
Re: problem with innwatch and inode limits
Author: Craig Dewick
Date: Sun, 08 Dec 1996 00:00
Date: Sun, 08 Dec 1996 00:00
41 lines
2281 bytes
2281 bytes
In <58bi7p$qrc@lios.apana.org.au> cdewick@lios.apana.org.au (Craig Dewick) writes:
>Earlier this afternoon I installed inn 1.5 on my server (an old Sparcstation
>which runs SunOS 4.1.4), and about half an hour after I started the newly
>built and installed version of the daemon (by manually running
>/usr/local/etc/inndstart), the server was throttled with the following
>message logged to /var/log/news/news.notice:
Ok, since I posted this article, news worked fine until immediately after
news.daily had finished running around midnight, since the very first entry
in the new /var/log/news/news.notice file for today is:
Dec 8 00:02:50 jedi innd: SERVER servermode throttled
and then about 14 minutes later, the original problem I reported yesterday
regarding the daemon being throttled due to a supposed lack of inodes
reappeared:
Dec 8 00:16:40 jedi rnews: rejected connection 400 No space (spool inodes)
[innwatch:38] lt 200
No connections had been allowed since the server had been re-throttled after
news.daily had run.
Just as I did yesterday, killing off the old innd and manually restarting it
has made news start to flow again.
Has anyone else noticed this happening to their inn 1.5 installation? I'm
thinking that the problem is in the innwatch script, and not the daemon
itself. Ideas?
Regards,
Craig.
--
Craig Dewick. Send email to 'cdewick@lios.apana.org.au'
Point a web browser at 'http://lios.apana.org.au/~cdewick/sun_ark.html' to
access my collection of Sun information and links to other places.
Re: problem with innwatch and inode limits
Author: Peter Marelas
Date: Sun, 08 Dec 1996 00:00
Date: Sun, 08 Dec 1996 00:00
53 lines
2994 bytes
2994 bytes
Craig Dewick wrote:
>
> In <58bi7p$qrc@lios.apana.org.au> cdewick@lios.apana.org.au (Craig Dewick) writes:
>
> >Earlier this afternoon I installed inn 1.5 on my server (an old Sparcstation
> >which runs SunOS 4.1.4), and about half an hour after I started the newly
> >built and installed version of the daemon (by manually running
> >/usr/local/etc/inndstart), the server was throttled with the following
> >message logged to /var/log/news/news.notice:
>
> Ok, since I posted this article, news worked fine until immediately after
> news.daily had finished running around midnight, since the very first entry
> in the new /var/log/news/news.notice file for today is:
>
> Dec 8 00:02:50 jedi innd: SERVER servermode throttled
>
> and then about 14 minutes later, the original problem I reported yesterday
> regarding the daemon being throttled due to a supposed lack of inodes
> reappeared:
>
> Dec 8 00:16:40 jedi rnews: rejected connection 400 No space (spool inodes)
> [innwatch:38] lt 200
>
> No connections had been allowed since the server had been re-throttled after
> news.daily had run.
>
> Just as I did yesterday, killing off the old innd and manually restarting it
> has made news start to flow again.
>
> Has anyone else noticed this happening to their inn 1.5 installation? I'm
> thinking that the problem is in the innwatch script, and not the daemon
> itself. Ideas?
Im still running 1.4 unoff, but if you are running innwatch then
that is probably throttling your server.
Its saying that your inodes on your news spool dir are less than 200.
From my innwatch.ctl
!!! df -i /u02 | awk 'NR == 2 { print $3 }' ! lt ! 200 ! throttle ! No
space (spool inodes /u02)
List your inodes free, df -i on sunos 4 i think and see whether
they are anywhere near full..
What you can do is decrease the 200 in innwatch.ctl or re-build
the spool dir with more inodes.
--
The Fulcrum Consulting Group Peter Marelas - Consultant
12/10-16 Queen St, Melbourne VIC 3000,Australia Ph: +61-3-9621-2100
PGP Key -> finger maral@fusion.mel.sprint.com.au Fx: +61-3-9621-2724
Re: problem with innwatch and inode limits
Author: Dan Foster
Date: Sun, 08 Dec 1996 00:00
Date: Sun, 08 Dec 1996 00:00
15 lines
1233 bytes
1233 bytes
In article <Pine.SUN.3.95.961209081009.29355B-100000@lios.apana.org.au>, Craig Dewick <cdewick@lios.apana.org.au> wrote: >Can anyone tell me if doing 'df -i' on other system produces output in a >different format to SunOS? This might explain how a '7' slipped in for the >default for INNWATCH_INODES. Bingo! You got it. df on various systems produces slightly different output. BTW: follow-ups directed to news.software.nntp only. -Dan Foster Internet: dsf@frontiernet.net
Re: problem with innwatch and inode limits
Author: Craig Dewick
Date: Mon, 09 Dec 1996 00:00
Date: Mon, 09 Dec 1996 00:00
74 lines
3789 bytes
3789 bytes
In <32A9F77D.6DCE@phase-one.com.au> Peter Marelas <maral@phase-one.com.au> writes:
>From my innwatch.ctl
>!!! df -i /u02 | awk 'NR == 2 { print $3 }' ! lt ! 200 ! throttle ! No
>space (spool inodes /u02)
Ok, having just done some more sniffing around, and some logical figuring
out of what the awk expressions in innwatch.ctl mean, I believe I've found
an error (at least as far as SunOS 4.1.4 is concerned) with the defaults
in the 1.5 distribution...
In 1.4, the check for free inodes in the spool directory looks like this:
## =()<!!! df -i . | awk 'NR == 2 { print $3 }' ! lt !
@<INNWATCH_SPOOLNODES>@ ! throttle ! No space (spool inodes)>()=
!!! df -i . | awk 'NR == 2 { print $3 }' ! lt ! 200 ! throttle ! No space
(spool inodes)
In 1.5, the same thing looks like this:
## =()<!!! @<INNWATCH_DF>@ -i . | awk 'NR == 2 { print $@<INNWATCH_INODES>@
}' ! lt ! @<INNWATCH_SPOOLNODES>@ ! throttle ! No space (spool inodes)>()=
!!! /bin/df -i . | awk 'NR == 2 { print $7 }' ! lt ! 200 ! throttle ! No
space (spool inodes)
What's the difference? Well, look carefully at the 'print $x' in each
example. In 1.4, the third string was used, but in 1.5, this has somehow
become the 7th.
Now, here's a sample line from doing 'df -i' on my server machine:
Filesystem iused ifree %iused Mounted on
...
/dev/sd1e 122677 115979 51% /var/spool/news
Release 1.4 uses the 3rd string, which specifies the total number of free
inodes. Release 1.5 seems to be using the 7th string, and there isn't one!
I've changed the copy of innwatch.ctl installed into /usr/local/news, and
the server has not been throttled since.
So, where is this coming from? Well, in release 1.4, there was no way to
specify which field each awk expression would use as the subject of it's
calculation, but having checked config/config.data for 1.5, there now is!
Here is the default:
## Field number of INNWATCH_DF (with -i) output that gives free
## inodes (starting at 1).
#### =()<INNWATCH_INODES @<INNWATCH_INODES>@>()=
INNWATCH_INODES 7
## Field number of INNWATCH_DF output that gives the free block count.
##### =()<INNWATCH_BLOCKS @<INNWATCH_BLOCKS>@>()=
INNWATCH_BLOCKS 4
So, the simple solution is to change the setting of INNWATCH_INODES from
'7' to '3', and all is well for my system once I run 'make install' in the
site directory.
Can anyone tell me if doing 'df -i' on other system produces output in a
different format to SunOS? This might explain how a '7' slipped in for the
default for INNWATCH_INODES.
Regards,
Craig.
--
Craig Dewick. Send email to 'cdewick@lios.apana.org.au'
Point a web browser at 'http://lios.apana.org.au/~cdewick/sun_ark.html' to
access my collection of Sun information and links to other places.
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