Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Steve Hancock <hancock@alf.dec.com>
Subject: Re: Which file system
Date: 1996/09/04	[thread overview]
Message-ID: <322DB1BE.6201@alf.dec.com> (raw)
In-Reply-To: slrn52mn63.t55.jonc@tui.pinnacle.co.nz


Jonathan Chen wrote:
> 
> In article <322A1A4E.2465@cao.mts.dec.com>, Peter Mayne wrote:
> >Luc Marotte wrote:
> >>
> >> Which of LSM, UFS and ADVFS s the best file system ?
> >
> >LSM isn't a filesystem, so that's easy. 8-) (LSM uses physical disks to provide
> >volumes that filesystems can be built on.)
> >
> >AdvFS is much more flexible than UFS, and doesn't need fscking [sic].
> 
> But if you're planning to use the file-sys as a news-server, use UFS.
> --
> ---------------------------------------------------------------------
> Jonathan Chen <jonc@pinnacle.co.nz> | Opportunites are seldom labeled
> ---------------------------------------------------------------------

Not to be disagreeable, but AdvFS works fine for news servers if
its properly configured and maintained. I have some tips that I
routinely give customers when setting it up:

1) Use more than one AdvFS volume for your news domain. The number
will depend on how much news you intend to keep on the server and
how much disk space you are using. A good rule of thumb seems to be
2 - 4 GB per volume. Try to get between 3 and 6 volumes. This helps
prevent metadata fragmentation and makes it easier to defragment the
metadata should it become fragmented.

2) You should run the news domain such that you can always pull out 
a volume should you need to defragment. That means if you have 5 
volumes then you should stay under the 80% used mark to ensure you
can pull out a volume and put it back it when needed. When the volume
is added back in, the BMT will extend itself contiguously, thus
succeeds in defragmenting it without imacting users. The other option is
vdump/vrestore the entire domain (very high impact to users!).

3) Use the -x switch when making the domain (3.2c and higher) and when
adding new AdvFS volumes. Use a value for -x which is greater than
128 (the default) and less than 2048. Larger values tend to make
the metadata become fragmented sooner and usually leads to poor results.
Keep in mind that this value is in file system blocks (or 8K blocks).
Therefore, a -x value of 2048 forces the BMT to extend itself in
increments of 2048 * 8192 = 16 MB at a time. Should there not be that
much contigous space, it does best fit. 

4) Set up a cron that runs nightly or weekly which balances and defragments 
the domain. Also, have the cron send you the defragment statistics, 
showfdmn and the output of "showfile -x /<mount-pt>/.tags/M-6 | grep
extentCnt". You'll need to do the same thing for each volume in the domain
using the formula: /<mount-pt>/.tags/M-(6*volnum). When these numbers
start to approach 500, worry. You may need to remake the domain using
a higher -x value or add another volume to the domain and balance it.
Should the extentCnt get to 683, you are done and the BMT cannot extend
itself to accomodate more files. When this happens, you get a "No more
space" message.

5) For those running DU 4.0, use the -p switch to mkfdmn to preallocate
metadata extents, thus avoiding the fragmentation issue. It is possible
to preallocate for versions prior to 4.0, but its painful.

6) Don't bother backing up the news data. Should a catastrophy occur, 
the data can be recreated in no time from the incoming feed. If you do
decide to back it up, you should not use cloning, since it tends to
fill up the domain in a big hurry.


UFS can be improperly configured for news servers too, so it's not a
problem strictly with AdvFS. It the nature of the USENET application 
that causes the file system problems, not the file system itself. 


Regards,

Steve

-- 
| Steve Hancock         | "Life ... is a tale told by an idiot,   |
| Digital UNIX Support  |  full of sound and fury, signifying     |
| Atlanta CSC           |  nothing."                              |
| hancock@alf.dec.com   |          - William Shakepeare, Macbeth  |



  parent reply	other threads:[~1996-09-04  4:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-30  4:00 Which file system Luc Marotte
1996-09-02  4:00 ` Peter Mayne
1996-09-02  4:00   ` Jonathan Chen
1996-09-03  4:00     ` Nikos George
1996-09-04  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-09-04  4:00     ` Steve Hancock [this message]
1996-09-05  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-09-08  4:00         ` Saul Tannenbaum
1996-09-09  4:00       ` Saul Tannenbaum
1996-09-12  4:00         ` Steve Hancock
1996-09-04  4:00 ` rp001ns
1996-09-06  4:00   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox