From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fc318da4fc43d986 X-Google-Attributes: gidfee84,public From: Steve Hancock Subject: Re: Which file system Date: 1996/09/04 Message-ID: <322DB1BE.6201@alf.dec.com>#1/1 X-Deja-AN: 178462508 references: <01bb96a6$f4a4d000$99f1acce@NONE.sympatico.ca> <322A1A4E.2465@cao.mts.dec.com> content-type: text/plain; charset=us-ascii organization: Digital UNIX Kernel Support mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (X11; I; OSF1 V4.0 alpha) 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 | 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 //.tags/M-6 | grep extentCnt". You'll need to do the same thing for each volume in the domain using the formula: //.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 |