🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #32347

Diablo and multiple spool filesystems

#32347
From: Michael S. McMahon
Date: Wed, 21 Oct 1998 00:00
42 lines
2674 bytes
In <706lbh$m5i@newsops.execpc.com>, jgreco@ns.sol.net (Joe Greco) writes:
>[...] one of the things that I would _really_ like to see: support for
>multiple spool filesystems.  I like to build my spools out of a lot of
>disks.  One of my Diablo spools is 108GB (12 x 9GB), and I am scared to
>think that there will come a day I need to run fsck on it after a crash.

	We're preparing to give the diablo reader code a good workout on
a large spool, and I'm concerned about the same thing.  I haven't started
coding it yet, but here's what I'm planning to do:

	Create another config file called diablo.spools which lists, one
per line, paths to directories which can be used for spools.
	When the time comes to create a new D.whatever spool directory,
read the diablo.spools file and look for the filesystem with the most free
space on it.
	Make the D.whatever directory on that filesystem, and create a
symbolic link between /news/spool/news/D.whatever and the actual directory
on that filesystem.
	When dexpire runs, cycle through the diablo.spools file and remove
directories until the free space requirement is met on at least six of the
filesystems.  Assuming that dexpire is run once per hour, the free space
requirement would then be taken to mean the maximum amount of news you
expect to arrive in any single 10-minute period.  Some sanity checking will
be needed to ensure proper handling of free space calculations for
filesystems containing more than one directory listed in diablo.spools.

	Because of the symbolic links, I'm having a hard time shaking the
feeling that it's a big kludge--but I don't want to deviate too far from the
distributed code base.  Using an MD5 hash or any other method I can think
of affects everything that depends on a path to a spool file, whereas this
only affects dexpire and a small part of the master diablo.
	This method should work well for a feeder expire, but I'm not sure
yet what kind of contortions (if any) will be necessary in dexpire for
systems set to do a reader expire.


	Mike
---
Michael S. McMahon
mcmahon@novia.net

Technical Details
Message-ID: <7mqX1.6582$1d.1059812@news.novia.net>
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
References: <706lbh$m5i@newsops.execpc.com>

Show Full Headers
Complete Article Headers
Message-ID: <7mqX1.6582$1d.1059812@news.novia.net>
Subject: Diablo and multiple spool filesystems
Date: Wed, 21 Oct 1998 00:00:00 +0000
From: mcmahon@novia.net (Michael S. McMahon)
References: <706lbh$m5i@newsops.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-mail
X-Deja-AN: 403664303
Organization: Novia Internetworking
Newsgroups: news.software.nntp