🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Joel Turoff Thu, 09 Jul 1998 00:00
Help with configuring inn 2.0 - question on disk partitioning, etc.
#29653
Author: Joel Turoff
Date: Thu, 09 Jul 1998 00:00
52 lines
2455 bytes
Greetings!

I am currently trying to upgrade from INN 1.7.2 to the new 2.0
package.

I've gone over the INSTALL file, but have some confusion on the best
strategy for configuring my disks.

I've got a news server that is running BSD/OS 3.1 (with all the
patches).  Currently, I have the news binaries installed in /usr/news.

I have a 740 meg partition mounted on /var/news/etc, which holds all
of the config files and the history database, etc.  Then I've got a 16
gig spool mounted on /var/news/spool, which holds the articles.  (The
spool is actually four 4 gig disks spliced into one 16 gig
filesystem).

Here's the output of df:

Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a       99135    23580    70598    25%    /
/dev/sd0h      545543   499176    19089    96%    /usr
/dev/sd0g      396783   126114   250829    33%    /var
/dev/sd0f      740847   358916   344888    51%    /var/news
/dev/sp0d    16563064 13843783  1891127    88%    /var/news/spool

What I would like to do, is install 2.0 and take advantage of the CFNS
format, but I am unsure of where to put the pre-configured buffer
files.   It is also not entirely clear where the articles will be
stored with the new format.  Will they still be in /var/news/spool?  

From the documentation, I can see that the distribution wants to be
installed in /usr/local/news.  Unfortunately, I don't have enough
space on /usr to handle the distribution.   Would I be better off
doing a newfs on /var/news and mounting it on /usr/local/news.  

What about the pre-configured buffer files?  Should I do a newfs on
the 16 gig partition and put the buffer files there?   Would the 16
gig spool still be mounted on /var/news/spool? 

Or should I create a huge 17 gig partition and mount the whole thing
on /usr/local/news.  

Any advice would be greatly appreciated.

Joel





Re: Help with configuring inn 2.0 - question on disk partitioning, etc.
#29714
Author: Curt Welch
Date: Fri, 10 Jul 1998 00:00
89 lines
4738 bytes
turoff@disaster.com (Joel Turoff) wrote:
> What I would like to do, is install 2.0 and take advantage of the CFNS
> format, but I am unsure of where to put the pre-configured buffer
> files.   It is also not entirely clear where the articles will be
> stored with the new format.

They are stored in the cycbuffs defined in etc/cycbuff.conf.  I assume
these are the "pre-configured buffer files" you are talking about?

> Will they still be in /var/news/spool?

news/spool/articles/ is only used for the traditional storage
method.  If you are using CNFS it's not used (unless you decided
that's where you wnat to put your cycbuffs).

You control where they are stored by where you build the cycbuffs
(and what you put in etc/cycbuff.conf).

> From the documentation, I can see that the distribution wants to be
> installed in /usr/local/news.  Unfortunately, I don't have enough
> space on /usr to handle the distribution.   Would I be better off
> doing a newfs on /var/news and mounting it on /usr/local/news.
>
> What about the pre-configured buffer files?  Should I do a newfs on
> the 16 gig partition and put the buffer files there?   Would the 16
> gig spool still be mounted on /var/news/spool?
>
> Or should I create a huge 17 gig partition and mount the whole thing
> on /usr/local/news.
>
> Any advice would be greatly appreciated.

Learn to use symbolic links. (ln -s).

I put the distribution in /usr/local/news, and then symlinked the
db, spool/overivew, and spool/uniover directories to other disks.

When I have have arrays (ccd arrays on FreeBSD), I tend to
mount them as /raid1, /raid2, etc.  Then symlink stuff like the
above into them.  I created dirs like /raid1/news/db and
/raid2/news/spool/overview etc.  This technique makes it easy to
move stuff around.

If an array (or large partition) is only used for a single subtree (like
spool/overview) then you could just mount it on
/usr/local/news/spool/overview.  But if you later decide you would like to
have another subtree (like news/db) on that same array, it gets messy.

But if you mount it as /something, and then create subdirectories that
are symlinked into it, then it's easy to move these subtrees around
later.

> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/sd0a       99135    23580    70598    25%    /
> /dev/sd0h      545543   499176    19089    96%    /usr
> /dev/sd0g      396783   126114   250829    33%    /var
> /dev/sd0f      740847   358916   344888    51%    /var/news
> /dev/sp0d    16563064 13843783  1891127    88%    /var/news/spool

In your case, I would not have created a separate partition for
/var/news.  I'd just use all that space on sd0 for a larger /var or
a larger /usr (or some of both).

I'd then go ahead and put the inn distribution in the default place
that the distribution expects to be (/usr/local/news).

I'd then mount sp0d as /raid0.  Create /raid0/news and then symlink
anything from the news subtree over to the /raid0/news subtree that
I wanted on that array.

In the case of the cycbuffs, I created a /raid0/cnfs dir (typing
cycbuff was too hard for me :)) and created files in that named
b00, b01, b02, etc.

For these new cycbuffs, it might be better to not stripe the disks
but I'm not sure about that yet.  A large stripped array makes it
easy to share disk space among different applications, but the
cycbuffs don't change in size - so there's not free space issues
to deal with.  And if a disk fails (in a non redundant array), then
you loose it all.  But separate disks, I'm thinking you would only
loose the portion of the spool associated with the failed disk and
still have the rest of it - but I don't know how well inn deals
with this yet...

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

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