Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Which file system
@ 1996-08-30  4:00 Luc Marotte
  1996-09-02  4:00 ` Peter Mayne
  1996-09-04  4:00 ` rp001ns
  0 siblings, 2 replies; 12+ messages in thread
From: Luc Marotte @ 1996-08-30  4:00 UTC (permalink / raw)



Which of LSM, UFS and ADVFS s the best file system ?


				



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  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-04  4:00 ` rp001ns
  1 sibling, 1 reply; 12+ messages in thread
From: Peter Mayne @ 1996-09-02  4:00 UTC (permalink / raw)



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].
-- 
PJDM
Digital Equipment Corporation (Australia), Canberra, ACT
-------------------------------------------------------------------------------
These are my opinions, and have nothing to do with Digital.
I design Internet Service Providers. It's a job.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  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     ` Steve Hancock
  0 siblings, 2 replies; 12+ messages in thread
From: Jonathan Chen @ 1996-09-02  4:00 UTC (permalink / raw)



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
---------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  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
  1 sibling, 1 reply; 12+ messages in thread
From: Nikos George @ 1996-09-03  4:00 UTC (permalink / raw)



In article <slrn52mn63.t55.jonc@tui.pinnacle.co.nz>,
Jonathan Chen <jonc@pinnacle.co.nz> wrote:

[...]

>>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.

Can you tell me why not, or point me to a document that explains it???
I am a newbie on osf and trying to decide on how to configure 
my news server.
Thanks!

/Nikos



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  1996-09-02  4:00   ` Jonathan Chen
  1996-09-03  4:00     ` Nikos George
@ 1996-09-04  4:00     ` Steve Hancock
  1996-09-05  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1996-09-09  4:00       ` Saul Tannenbaum
  1 sibling, 2 replies; 12+ messages in thread
From: Steve Hancock @ 1996-09-04  4:00 UTC (permalink / raw)



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  |



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  1996-09-03  4:00     ` Nikos George
@ 1996-09-04  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 0 replies; 12+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-09-04  4:00 UTC (permalink / raw)




In article <50hmbu$f3n@decaxp.harvard.edu>, ngeorge@scsun1.harvard.edu (Nikos George) writes:
>
>>>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.
>
>Can you tell me why not, or point me to a document that explains it???

I don't know of any place that reasonably documents then, but it
somewhat widely known.

The Advanced File System dynamically allocates per-file data structures
expanding the space needed for these tables as necessary.  But, there
are two constraints on space for this table;

1.  A new extent to the table must be contiguous.

2.  There are a limited number of extents allowed.

Fortunately, the extent size is variable.  The -x option of addvol
and mkfdmn should describe the feature in some detail and various
versions of the release notes have minimally documented the
problem.  But, in order to support a very large number of files,
a very large extent size must be used.  As the extent size gets
larger, it becomes harder to find the necessary amount of
contiguous space.

Under the file creation/deletion load caused by News, the free
space is very quickly fragmented and large extents are harder than
usual to find.  Regular running of defragment may partly solve the
problem.

Even though a file system may appear to have a large amount of
free space, an attempt to extend the table of per-file data
structures could fail because there isn't enough contiguous
space.  Even if there is, it could also fail, because the last
extent has been used.

Another work-around to the problem is to pre-create a large
number of empty files and then delete them.  This will extend
the table while it is easy to allocate the space.  It also
takes a long time and there may still be surprises left.  A
file system shouldn't have surprises.

With UFS, you can tell in advance how many files can be stored
and adjust the file system creation parameters to ensure you
have enough.  You know when you're going to run out and if you're
willing to waste some space, you can arrange so that you can't
run out of inodes.


>/Nikos
>
--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  1996-08-30  4:00 Which file system Luc Marotte
  1996-09-02  4:00 ` Peter Mayne
@ 1996-09-04  4:00 ` rp001ns
  1996-09-06  4:00   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1 sibling, 1 reply; 12+ messages in thread
From: rp001ns @ 1996-09-04  4:00 UTC (permalink / raw)



In article <01bb96a6$f4a4d000$99f1acce@NONE.sympatico.ca>, "Luc Marotte" <luc.marotte@boulevard.ca> says:
>
>Which of LSM, UFS and ADVFS s the best file system ?
>
>
UFS is the standard Unix filesystem. IT should be used for the root
partition of your system. Disadvantage: Backups should be made in
single user mode, because unix will corrupt open files during 
backup.

Advfs should be used for larger partitons (>= 1GB). Advantages:
no filesystemcheck necessary at boottime (=faster boot) because
it is transaction controlled and you can add single partitions to
a virtual disc (= domains). You need a licence to use advanced tools
like the graphical gui, balancing or to create complex domains.
With advfs you have the capability to create online backups which
is not possible with UFS.

LSM is the logical storage manager to produce mirrored disk and to
use advanced features of the storage works technologie.

Suggestion:
Use UFS for the root partition and for all data partitions (includes
/usr and /var) ADVFS.

Regards

                                



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  1996-09-04  4:00     ` Steve Hancock
@ 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
  1 sibling, 1 reply; 12+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-09-05  4:00 UTC (permalink / raw)




In article <322DB1BE.6201@alf.dec.com>, Steve Hancock <hancock@alf.dec.com> writes:

[ Jonathan Chen appears to have written this part... ]
>> 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:
>
> [ And Steve goes to length on how AdvFS can successfully be
>   used with News. ]

Constant defragmentation, rebalancing, removing and adding volumes
to get the bit map table reallocated contiguously.  Seems like an
awful lot of work just to use a file system with News.  With UFS
it is fairly easy to ensure you'll probably never run out of files
as long as the files contain some data.  Give newfs the right
parameters up front and you're done.

Running News on AdvFS should not require constant maintenance just
to ensure News keeps running.  There should be more important things
to worry about.

>It the nature of the USENET application 
>that causes the file system problems, not the file system itself.

Wrong.  It is the nature of this particular application that reveals
a short coming in the design and implementation of the Advanced File
System.  News is not the only application that cycles through lots
of small files.  But, it is one of the most prevalent.  If the file
system could extend the BMT as necessary, independent of how many
times it had been extended in the past or of how contiguous the
free space was, this problem wouldn't exist.

AdvFS has it strong points and many of the worst problems have
been fixed in recent versions.  And it is nice to know that it
can be forced to work with News.  But, people shouldn't have to
perform this much maintenance just to store a few million small
files...

>
>Steve
>
>-- 
>| Steve Hancock         | "Life ... is a tale told by an idiot,   |
--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  1996-09-04  4:00 ` rp001ns
@ 1996-09-06  4:00   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 0 replies; 12+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-09-06  4:00 UTC (permalink / raw)




In article <50jmf2$1ul@horatius.ccn.net>, rp001ns@netsurf.de (rp001ns) writes:

There are two errors in this, 

>Backups should be made in
>single user mode, because unix will corrupt open files during 
>backup.

There are some problems that can happen when backing up a live
file system.  But the chance of them happening is a long way
from "unix will corrupt".  If you want the most reliable backup
from dump, you want to shutdown to single user.  Even then,
the root file system is still mounted.  If I open a file and
don't do anything to it, dump will hard pressed to corrupt
the backup of that file.

>... and to use advanced features of the storage works technologie.

LSM is independent of the StorageWorks subsystems.  The backplane
RAID subsystems use a bootable configuration utility and the HSZ40
family uses a tty console for its configuration.  Once upon a time
LSM was going to have a hook to allow running a host based configuration
utility, but it never got used.

--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  1996-09-05  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1996-09-08  4:00         ` Saul Tannenbaum
  0 siblings, 0 replies; 12+ messages in thread
From: Saul Tannenbaum @ 1996-09-08  4:00 UTC (permalink / raw)



In article <50niv0$j9u@nntpd2.cxo.dec.com>, Alan Rollow - Dr. File System's Home for Wayward Inodes. (alan@nabeth.cxo.dec.com) wrote:

> Running News on AdvFS should not require constant maintenance just
> to ensure News keeps running.  There should be more important things
> to worry about.

> >It the nature of the USENET application 
> >that causes the file system problems, not the file system itself.

> Wrong.  It is the nature of this particular application that reveals
> a short coming in the design and implementation of the Advanced File
> System.  News is not the only application that cycles through lots
> of small files.  But, it is one of the most prevalent.  If the file

Thank you. It's nice to hear someone from Digital state the obvious,
plain truth, that many of us have longed to hear for some time now.

	- Saul
-- 
Saul Tannenbaum, Manager, Academic Systems | "It's still rocket  
                stannenb@emerald.tufts.edu |    science" - Vint Cerf
Tufts University Computing and             |Finger for PGP public key
                Communications Services    |http://www.tufts.edu/~stannenb



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  1996-09-04  4:00     ` Steve Hancock
  1996-09-05  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1996-09-09  4:00       ` Saul Tannenbaum
  1996-09-12  4:00         ` Steve Hancock
  1 sibling, 1 reply; 12+ messages in thread
From: Saul Tannenbaum @ 1996-09-09  4:00 UTC (permalink / raw)



In article <322DB1BE.6201@alf.dec.com>, Steve Hancock (hancock@alf.dec.com) wrote:
> 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.

This seems to work for me only if I cd to /<mount-pt/.tags and then
showfile -x M-6.

> 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.

Is this the "touch a zillion files" workaround, or is is there something
less painful than that?

	- Saul
-- 
Saul Tannenbaum, Manager, Academic Systems | "It's still rocket  
                stannenb@emerald.tufts.edu |    science" - Vint Cerf
Tufts University Computing and             |Finger for PGP public key
                Communications Services    |http://www.tufts.edu/~stannenb



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Which file system
  1996-09-09  4:00       ` Saul Tannenbaum
@ 1996-09-12  4:00         ` Steve Hancock
  0 siblings, 0 replies; 12+ messages in thread
From: Steve Hancock @ 1996-09-12  4:00 UTC (permalink / raw)
  To: Saul Tannenbaum; +Cc: hancock


Saul,


Saul Tannenbaum wrote:
> 
> In article <322DB1BE.6201@alf.dec.com>, Steve Hancock (hancock@alf.dec.com) wrote:
> > 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.
> 
> This seems to work for me only if I cd to /<mount-pt/.tags and then
> showfile -x M-6.
> 

You must have a version of Digital UNIX at 4.0 or greater for method in the
above text to work. Prior version, you must cd to "/<mount-pt/.tags" and then
do "showfile -x M-6".


> > 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.
> 
> Is this the "touch a zillion files" workaround, or is is there something
> less painful than that?
> 

This is not the "touch a zillion files" workaround. In 4.0, that method has
been made obsolete by the '-p' switch to the mkfdmn and addvol commands. In
addition, for v3.2d and v3.2e, there is a patch which provides the '-p'
switch for mkfdmn. Here's an exerpt from the patch README for 3.2d-1:

PROBLEM:  (Patch ID: OSF360-061)
********
This patch fixes a problem in which a system using AdvFS can run out of
metadata space when the AdvFS domain still has some free space available.
The system will display error messages such as 'no space left on device'.

The problem may occur on a heavily fragmented system with many small files,
such as an Internet News server or Mail server.

To handle this problem, please use the -p and -x options when using
the mkfdmn command to create an AdvFS domain that is expected to have
many small files. Specifying the new -p option to the mkfdmn command
pre-allocates internal AdvFS structures and the erroneous 'out of space'
messages will not occur.

NOTE:  Please run the mkfdmn command with no options or arguments to list
       the updated mkfdmn man page and the -p and -x option descriptions.



>         - Saul
> --
> Saul Tannenbaum, Manager, Academic Systems | "It's still rocket
>                 stannenb@emerald.tufts.edu |    science" - Vint Cerf
> Tufts University Computing and             |Finger for PGP public key
>                 Communications Services    |http://www.tufts.edu/~stannenb



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  |



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1996-09-12  4:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.

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