Article View: news.software.nntp
Article #46164Re: Optimal usage of disks as INN-spooldir
From: Joe Greco
Date: Fri, 28 Apr 2000 00:00
Date: Fri, 28 Apr 2000 00:00
62 lines
3804 bytes
3804 bytes
In news.software.nntp article <39097E1E.FD29A654@freeler.nl>, BWare <bware@freeler.nl> wrote: :Russ Allbery wrote: :> :> > Does anyone have recommendations on how to divide several large disks :> > (about 270Gb) into smaller chunks to provide an optimal spooldisk for :> > INN (with a feed of about 90Gb a day). The reason for doing this would :> > be to have as little as possible downtime in case a machine crashes and :> > the OS performs an fsck. : :<SNIP> :> if you want to use traditional :> spool rather than CNFS for your other newsgroups, my personal strong :> preference is to use RAID, either hardware or software, and turn the :> remaining space into one logical partition with spares. Of course, that :> does have the fsck problem, but you may be able to run a logging file :> system on it to solve that problem. And RAID means you can dedicate hot :> spares and thus have less downtime from disk failures. :Sounds fair enough... Another solution to resolve the fsck problem :would :be installing Veritas. Are there any know problems with this except for :the performance degradation ? :Since we're already using a RAID (devided into 4 logical drives of :270Gb) :the disk failure is not really an issue. What scares me is having the :OS :fscking a TeraByte which prolly takes a whole day :( I can do it in 30 seconds flat. How? The thing that takes a long time with fsck is that you generally have an inode for every 1K or 2K of disk space. For traditional spool, this is the correct behaviour (approximately) - but results in at least half a million inodes at terabyte filesystem sizes. If you do not plan to use traditional spool format, and instead use large files, increase the blocks per inode. I use 256K or 1M on my Diablo machines (depending on the intended content), which lowers the number of inodes to something on the order of a few thousand - probably less than your average small UNIX filesystem! I also build many (8-9) smaller filesystems out of the space in order to gain some parallelization benefits. More importantly, I don't bother with RAID, but that way, in the event of a drive loss, I only lose 1/8 or 1/9th my spool. With one big multi-terabyte FS, it may actually take about 120 seconds to fsck, because most of the drives are sleeping... and of course, you lose one drive, you lose the FS. When I was first deploying my new Diablo architecture, and was demonstrating this to people, I invariably took the theatrical route, by describing how much disk space was on the server, and then I'd go and slam the Big Red Button - reactions were always funny, since everybody had more or less that same idea about fsck times. Then I'd sit back, grin, and describe how the fsck's for /news took less time than the fscks for the rest of the system, or even the memory test, for that matter. It would be back up and running before I completed my discussion of why. Grin, ... JG
Technical Details
Message-ID:
<390999e8$0$19900@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:
<39095461.C9FBA484@freeler.nl> <ylsnw6si5h.fsf@windlord.stanford.edu> <39097E1E.FD29A654@freeler.nl>Show Full Headers
Complete Article Headers
Message-ID: <390999e8$0$19900@news.execpc.com> Subject: Re: Optimal usage of disks as INN-spooldir Date: Fri, 28 Apr 2000 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <39095461.C9FBA484@freeler.nl> <ylsnw6si5h.fsf@windlord.stanford.edu> <39097E1E.FD29A654@freeler.nl> 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: 616784983 Sender: jgreco@earth.execpc.com X-Trace: 0RW8S?BXNa2I5[332>a9Y;bfNiaEHUgJ7RYcgIRLSUE=]FeKP0cdQ9<AfCV`C5MeR27FL3Tn0RI_0GhaMU<hZ^N7F4FfQ?Mh6U= Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp X-Complaints-To: abuse@execpc.com