Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Bob Harris <harris@zk3.dec.com>
To: frey@dove.bme.unc.edu (Eric Frey)
Subject: Re: Limit on Number of Files in ADVFS?
Date: 1999/08/26	[thread overview]
Message-ID: <260819990946362558%harris@zk3.dec.com> (raw)
In-Reply-To: 7q1a1r$32c$1@fddinewz.oit.unc.edu

[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <7q1a1r$32c$1@fddinewz.oit.unc.edu>, Eric Frey
<frey@dove.bme.unc.edu> wrote:

>I have a 50 gb disk with a single advfs fileset on it and am storing lots
>of relatively small files on it. I have not file or disk size quotes set.
>However, I have found that when I get ~404000 files on it, I can create no
>more files despite the fact that I have some diskpace (~5 gb) left. I can
>find no place where this mentioned or can be set or changed. Is this correct?
>Would it work to create another fset on the same fdmn? Thanks in advance.

I suspect that your AdvFS domain was created before Tru64 UNIX v4.0d. 
The most likely problem is that the BMT has become so fragmented that
it can no longer be extended.  The BMT is the only AdvFS data structure
that has a limit on the number of extents it can have.  The BMT is also
where all the metadata for files is stored.  If you can not grow the
BMT then you can not create new files.

In v4.0d changes were made to the way storage was allocated on newly
created domains or on new volumes added to existing domains.  This
change helps keep the BMT from becoming fragmented so that it does not
run out of extend map entries.  In the next major release (v5.0) the
BMT expansion limit was totally eliminated.

What can you do today to get around the problem.  The answer depends on
how your system is configured.  Since I do not know that I will have to
throw out some general ideas.

First I would suggest running the sys_check utility which will be able
to verify that a full BMT is the problem.

<ftp://ftp.digital.com/pub/DEC/IAS/sys_check/sys_check.html>

First before doing anything, I would _STRONGLY_ suggest that if your
data is valuable to you, that you make sure you have a good backup
before messing around with your domain.  Havng once been a System
Administrator, I know that Murphy's Laws are real, and things happen
that no one ever expects.

If you can upgrade to v4.0d or a later version, it would help minimize
the problem in the future.  You will still have to perform the
following work arounds, but at least it should not happen again using
v4.0d or newer (famous last words :-)

If your AdvFS domain consists of a single 50GB volume, then unless you
have a spare 50GB the best solution would be to backup the data, create
new domain using the mkfdmn -p and -x options, and then restore your
data to the new domain.  The -p option is the most important.  The best
way to figure out what value you should use is to look at the sys_check
output and use the -p option to pre-allocate at least as much BMT
storage as you are already using, plus some additional pages to account
for the additional files you expect to create.

You should be able to find out more about the -p and -x options in the
mkfdmn and addvol man pages.  There is also information about using the
-p and -x options in the release notes.  You should be able to find a
copy of this documenation at the following URL:
       
<http://www.unix.digital.com/faqs/publications/pub_page/doc_list.html>

If your 50GB domain is composed of a bunch of smaller volumes, then you
could use addvol -p to add a spare empty volume.  Then use rmvol to
remove an existing older volume.  This will force the system to migrate
the data of the removed volume to the other volumes which mostly means
it will go to the new volume.  Since this new volume was added with a
-p option calculated to handle the storage needs of your domain it
should not have a BMT problem.

Now you can add the just removed volume back into the domain with a -p
option and remove another of the older volumes.  Repeat the
addvol/rmvol sequence until all the old volumes have been cycled out
and put back in with newer -p options calculated to handle your needs.

This sequence works because each volume of a domain has its own BMT.

Note:  It maybe necessary to delete a few files in order to free up a
few BMT Mcells so that the rmvol has some wiggle room to do its job.

Good luck.



  parent reply	other threads:[~1999-08-26  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-25  4:00 Limit on Number of Files in ADVFS? Eric Frey
1999-08-25  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-08-26  4:00 ` Bob Harris [this message]
     [not found]   ` <ericb-2708990307470001@x3066.resnet.cornell.edu>
1999-08-27  4:00     ` Bob Harris
1999-08-27  4:00     ` Serguei Patchkovskii
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