Article View: news.software.nntp
Article #39336Re: Diablo - Multiple Spool Directories ?
From: Joe Greco
Date: Sun, 22 Aug 1999 00:00
Date: Sun, 22 Aug 1999 00:00
51 lines
2856 bytes
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
Technical Details
Message-ID:
<37c055f7$0$75072@news.execpc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<7poh0s$54c$1@news.iinet.net.au> <1rn1vjq35n.fsf@haey.ifi.uio.no>Show Full Headers
Complete Article Headers
Message-ID: <37c055f7$0$75072@news.execpc.com> Subject: Re: Diablo - Multiple Spool Directories ? Date: Sun, 22 Aug 1999 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <7poh0s$54c$1@news.iinet.net.au> <1rn1vjq35n.fsf@haey.ifi.uio.no> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 515895558 Sender: jgreco@earth.execpc.com X-Trace: nreader1.newsops.execpc.com 935351799 75072 jgreco@169.207.16.1 Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp X-Complaints-To: abuse@execpc.com