Thread View: news.software.nntp
9 messages
9 total messages
Started by Rebecca Ore
Sat, 10 Mar 2001 16:48
Dividing up disk space
Author: Rebecca Ore
Date: Sat, 10 Mar 2001 16:48
Date: Sat, 10 Mar 2001 16:48
58 lines
2843 bytes
2843 bytes
I have two 4.2 gig hard drives for my present setup. The first hard
drive is divided into two mount points: / and /usr. All the news
files are on the second hard drive which is mounted /news. As only 6%
of /usr is full now, can I put some of the spool on /usr? Any
particular gotchas? My present /news partition is only 4% full, but
I'm thinking of adding a couple of hieararchies of Big Eight plus some
alt.* groups. I don't anticipate further changes to /usr. Present
storage is
method timehash {
newsgroups: *
class: 3
}
The tradspool became corrupted after a power failure so the emergency
fix was to put everything in timehash. I also have a timecaf class
set up, but the group that was supposed to go there never was fed
(control.cancel).
Expires are presently:
*:A:1:30:45
control.*:A:1:2:3
paradoxa.*:A:14:14:14
Present inn.config has paths set like this:
patharchive: /news/spool/archive
patharticles: /news/spool/articles
pathbin: /news/bin
pathcontrol: /news/bin/control
pathdb: /news/db
pathetc: /news/etc
pathfilter: /news/bin/filter
pathhttp: /news/log
pathincoming: /news/spool/incoming
pathlog: /news/log
pathoutgoing: /news/spool/outgoing
pathoverview: /news/spool/overview
pathrun: /news/run
pathspool: /news/spool
pathtmp: /news/temp
I assume I'd have to make a link in /news/spool to use space on the
first harddrive.
How easy or difficult would it be to modify this on a live server
(assuming I have to shut it down to make some of the changes).
--
Rebecca Ore
http://www.ogoense.net/rebecca
Re: Dividing up disk space
Author: Jeffrey M. Vinocur
Date: Sat, 10 Mar 2001 19:40
Date: Sat, 10 Mar 2001 19:40
26 lines
1975 bytes
1975 bytes
In article <m33dclvad0.fsf@pyrophore.ogoense.net>, Rebecca Ore <rebecca@ogoense.net> wrote: > >I have two 4.2 gig hard drives for my present setup. The first hard >drive is divided into two mount points: / and /usr. All the news >files are on the second hard drive which is mounted /news. As only 6% >of /usr is full now, can I put some of the spool on /usr? I don't think it should be a problem. (You're Solaris? I don't do much Solaris.) We have a separate partition for /usr/local/news/spool with no problems at all -- when we decided to put separate news, we just stopped INN, mounted the new partition someplace, moved everything over, and mounted the new partition on /usr/local/news/spool. You want to break it down _within_ spool, but I don't see that being any different. (There's never any point where INN removes a subdirectory of spool/, I don't think. If there were, and that was one of the mount points, things might get ugly.) -- Jeffrey M. Vinocur jeff@litech.org
Re: Dividing up disk space
Author: Rebecca Ore
Date: Sun, 11 Mar 2001 00:59
Date: Sun, 11 Mar 2001 00:59
70 lines
3677 bytes
3677 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:
> In article <m33dclvad0.fsf@pyrophore.ogoense.net>,
> Rebecca Ore <rebecca@ogoense.net> wrote:
> >
> >I have two 4.2 gig hard drives for my present setup. The first hard
> >drive is divided into two mount points: / and /usr. All the news
> >files are on the second hard drive which is mounted /news. As only 6%
> >of /usr is full now, can I put some of the spool on /usr?
>
> I don't think it should be a problem. (You're Solaris? I don't
> do much Solaris.)
NetBSD. I created a separate /usr/news/spool on the first drive. It
looks like I now have a problem (I've added groups) that putting
overview there might help if I'm reading the INN FAQ correct and if
this is related to my problem.
I'm now getting an error message of
Failed to initialize server
Reason: 400 Too many open files writing creating overview file -- throttling
slrn fatal error:
Failed to initialize server.
when I try to access the server from my other machine using slrn.
My /news/log/news.err gives these messages:
Mar 10 19:28:20 paradoxa innd: SERVER throttle Too many open files writing creating overview file -- throttling
Mar 10 19:28:20 paradoxa innd: SERVER cant store overview for @02033AAAC6A3004200000000000000000000@
Mar 10 19:28:20 paradoxa innd: SERVER cant write history <t2glatgplrv818a28c9oat49c0o5gfe8nk@4ax.com> Too many open files
> We have a separate partition for
> /usr/local/news/spool with no problems at all -- when we decided
> to put separate news, we just stopped INN, mounted the new
> partition someplace, moved everything over, and mounted the new
> partition on /usr/local/news/spool. You want to break it down
> _within_ spool, but I don't see that being any different.
>
> (There's never any point where INN removes a subdirectory of
> spool/, I don't think. If there were, and that was one of the
> mount points, things might get ugly.)
At this http://www.unix.org.il/inn_html/part7/faq-doc-22.html , I
found this:
For really great performance, put the NOV files on a separate disk.
(Not just a separate partition, a separate disk or spindle.)
This one-liner will generate a shell script that will move your NOV
files: awk '{ print $1 }' /usr/lib/news/active | tr . / | awk '{ print
"mkdir -p /new/location/" $1 ; print "mv " $1 "/.overview
/new/location/" $1 "/.overview" }'
Don't know if that would fly with INN-2.3.1 or if I need to recompile
to get overview moved, or if that is really the present problem.
--
Rebecca Ore
http://www.ogoense.net/rebecca
Re: Dividing up disk space
Author: Jeffrey M. Vinocur
Date: Sun, 11 Mar 2001 03:03
Date: Sun, 11 Mar 2001 03:03
28 lines
1935 bytes
1935 bytes
In article <m3u2519l2t.fsf@pyrophore.ogoense.net>, Rebecca Ore <rebecca@ogoense.net> wrote: >jeff@litech.org (Jeffrey M. Vinocur) writes: > >Mar 10 19:28:20 paradoxa innd: SERVER throttle Too many open files I don't think the problem is what you think it is. I think you're hitting the system limit on number of open file descriptors. You either want to increase that, or tell INN to use fewer, I think. To check limits, use `limit` in csh/tcsh or `ulimit -a` in sh/bash and see what you see for "open files" or "file descriptors". (Also, see `limit -h` and `ulimit -H -a` respectively to get hard limits.) I have a feeling you're on a system where the soft limit is 64, which isn't enough. Hey, look, there's a nice section on this in the INSTALL file. Look for the "File Descriptor Limits" section. That covers it pretty well. -- Jeffrey M. Vinocur jeff@litech.org
Re: Dividing up disk space
Author: Rebecca Ore
Date: Sun, 11 Mar 2001 05:32
Date: Sun, 11 Mar 2001 05:32
74 lines
3381 bytes
3381 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes: > In article <m3u2519l2t.fsf@pyrophore.ogoense.net>, > Rebecca Ore <rebecca@ogoense.net> wrote: > >jeff@litech.org (Jeffrey M. Vinocur) writes: > > > >Mar 10 19:28:20 paradoxa innd: SERVER throttle Too many open files > > I don't think the problem is what you think it is. I think > you're hitting the system limit on number of open file > descriptors. You either want to increase that, or tell INN to > use fewer, I think. `ulimit -a` core file size (blocks) unlimited data seg size (kbytes) 65536 file size (blocks) unlimited max locked memory (kbytes) 21517 max memory size (kbytes) 64552 open files 64 pipe size (512 bytes) 1 stack size (kbytes) 512 cpu time (seconds) unlimited max user processes 80 virtual memory (kbytes) 66048 Where do I change this? > > To check limits, use `limit` in csh/tcsh or `ulimit -a` in > sh/bash and see what you see for "open files" or "file > descriptors". (Also, see `limit -h` and `ulimit -H -a` > respectively to get hard limits.) I have a feeling you're on a > system where the soft limit is 64, which isn't enough. bash-2.04$ ulimit -H -a core file size (blocks) unlimited data seg size (kbytes) 262144 file size (blocks) unlimited max locked memory (kbytes) 64552 max memory size (kbytes) 64552 open files 1772 pipe size (512 bytes) 1 stack size (kbytes) 262144 cpu time (seconds) unlimited max user processes 532 virtual memory (kbytes) 524288 > > > Hey, look, there's a nice section on this in the INSTALL file. > Look for the "File Descriptor Limits" section. That covers it > pretty well. Actually, I did check that out after I posted that, and found the section and changed inn.conf to rlimitnofile: 256 I take it that this will bite me unless I increase the soft limit. I've just looked at the man page for setrlimit which I understand is the relevant command for redoing this. I got one peer to cut down on some of what he was feeding me. -- Rebecca Ore http://www.ogoense.net/rebecca
Re: Dividing up disk space
Author: Jeffrey M. Vinocur
Date: Sun, 11 Mar 2001 06:06
Date: Sun, 11 Mar 2001 06:06
23 lines
1878 bytes
1878 bytes
In article <m3n1asswef.fsf@pyrophore.ogoense.net>, Rebecca Ore <rebecca@ogoense.net> wrote: > >Actually, I did check that out after I posted that, and found the >section and changed inn.conf to > >rlimitnofile: 256 > >I take it that this will bite me unless I increase the soft limit. >I've just looked at the man page for setrlimit which I understand is >the relevant command for redoing this. Nuuu. INN takes care of calling setrlimit for you -- as long as rlimitnofile is set to something below the _hard_ limit, it will be able to override the soft limit. The setting in inn.conf is there to save you from having to manually figure out how to give the news user a higher soft limit. -- Jeffrey M. Vinocur jeff@litech.org
Re: Dividing up disk space
Author: Rebecca Ore
Date: Sun, 11 Mar 2001 06:24
Date: Sun, 11 Mar 2001 06:24
29 lines
2260 bytes
2260 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes: > In article <m3n1asswef.fsf@pyrophore.ogoense.net>, > Rebecca Ore <rebecca@ogoense.net> wrote: > > > >Actually, I did check that out after I posted that, and found the > >section and changed inn.conf to > > > >rlimitnofile: 256 > > > >I take it that this will bite me unless I increase the soft limit. > >I've just looked at the man page for setrlimit which I understand is > >the relevant command for redoing this. > > Nuuu. INN takes care of calling setrlimit for you -- as long as > rlimitnofile is set to something below the _hard_ limit, it will > be able to override the soft limit. The setting in inn.conf is > there to save you from having to manually figure out how to give > the news user a higher soft limit. Okay, thanks. I'd left that at the default earlier when I wasn't being fed very much. Obviously getting more articles caused the machine to throttle from not having enough numbers of files available. -- Rebecca Ore http://www.ogoense.net/rebecca
Re: Dividing up disk space
Author: those who know me have no need o...
Date: Thu, 15 Mar 2001 13:18
Date: Thu, 15 Mar 2001 13:18
11 lines
1081 bytes
1081 bytes
<m3u2519l2t.fsf@pyrophore.ogoense.net> divulged: >putting >overview there [under /usr] might help it should. not with the "too many open files" problem, but with your disk use, and your soon to be expiration (as you add articles), problem(s). -- okay, have a sig then
Re: Dividing up disk space
Author: Rebecca Ore
Date: Thu, 15 Mar 2001 15:56
Date: Thu, 15 Mar 2001 15:56
25 lines
1935 bytes
1935 bytes
not-a-real-address@usa.net (those who know me have no need of my name) writes: > <m3u2519l2t.fsf@pyrophore.ogoense.net> divulged: > > >putting > >overview there [under /usr] might help > > it should. not with the "too many open files" problem, but with your disk > use, and your soon to be expiration (as you add articles), problem(s). The "too many open files" problem I've had pointers on fixing. Increasing the open file limit helped. I throttled INN and then stopped it before moving and repointing inn.conf to /usr/news/spool. Seems to have been done successfully and added another percentage point to the useage of the first hard drive. What with getting most of rec.* and news.*, I'm going up on useage of the /news harddrive at about a percentage point a day, 14% today. -- Rebecca Ore http://www.ogoense.net/rebecca
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