🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Paul Raj Khangure Sun, 22 Aug 1999 00:00
Diablo - Multiple Spool Directories ?
#39344
Author: Paul Raj Khangure
Date: Sun, 22 Aug 1999 00:00
17 lines
1089 bytes
Is it possible to set up the diablo feeder to use two different drives
for spooling, without having to use raidtools to link them together into
one drive? ie, can I specify two spool directories? If so, what's the
syntax for it? (I assume it's in the general diablo.config file?)


Paul Raj Khangure

-- 

I stayed up all last night playing poker with tarot cards. 
I got a full house and four people died.

I don't suffer from insanity, I enjoy every minute of it.

Re: Diablo - Multiple Spool Directories ?
#39336
Author: Joe Greco
Date: Sun, 22 Aug 1999 00:00
51 lines
2856 bytes
In news.software.nntp article <1rn1vjq35n.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
:[Paul Raj Khangure]
:>   Is it possible to set up the diablo feeder to use two different
:>   drives for spooling, without having to use raidtools to link them
:>   together into one drive? ie, can I specify two spool directories?
:
:No.  But it is not too hard to add, I think.  Example:
:
:./util/doutq.c:
:snprintf(path, sizeof(path), "%s/%s.S%05d", PatExpand(DQueueHomePat), name, i);
:
:Change this into
:snprintf(path, sizeof(path), "%s/%02d/%s.S%05d",
:	 PatExpand(DQueueHomePat), name, i % 2, i);

Uh, yeah, that's fine for the queue, but does diddly for the spool, which is
what this fella was asking about (actually it isn't fine for the queue, but
oh well).

Besides, for the queue, you used to be able to (and probably still can) use
a slash in the site label to accomplish mostly the same thing, you just use
"drive1/site" for half your sites and "drive2/site" for the others.  Why
muck around doing more complex things?

:You have to do the same in dnewslink.c and diablo.c, and hunt out the
:mkdir() and chdir() calls which need changing.  If you make the number
:of disks (2) configurable, Matt might even accept your patch :-)
:
:(You may get feeds which are in lockstep if you don't take care when
:putting this into production.)

Someone suggested doing this for the spool too, it doesn't work that easily
though.  This is a trivial change, but the devil is in the details so you 
need to be real careful.

You need to consider the reason for the Diablo directory structure (and then
you can note some properties that are useful - not as simple as a straight
mod though!)

You need to consider re-engineering code inside of dexpire, which uses
the knowledge of the spool layout to determine what to expire, when, and how
much.

Or you can ask me real nice for the patches to do this, since I've been
running eight spool filesystems on my boxes for several months now.

One of many new features soon to be in Diablo.

... JG

Re: Diablo - Multiple Spool Directories ?
#39341
Author: Kjetil Torgrim Homme
Date: Sun, 22 Aug 1999 00:00
26 lines
1603 bytes
[Paul Raj Khangure]

>   Is it possible to set up the diablo feeder to use two different
>   drives for spooling, without having to use raidtools to link them
>   together into one drive? ie, can I specify two spool directories?

No.  But it is not too hard to add, I think.  Example:

./util/doutq.c:
snprintf(path, sizeof(path), "%s/%s.S%05d", PatExpand(DQueueHomePat), name, i);

Change this into
snprintf(path, sizeof(path), "%s/%02d/%s.S%05d",
	 PatExpand(DQueueHomePat), name, i % 2, i);

You have to do the same in dnewslink.c and diablo.c, and hunt out the
mkdir() and chdir() calls which need changing.  If you make the number
of disks (2) configurable, Matt might even accept your patch :-)

(You may get feeds which are in lockstep if you don't take care when
putting this into production.)


Kjetil T.

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