From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,68f41f9d7cd9df45 X-Google-Attributes: gidfee84,public From: Bob Harris Subject: Re: Limit on Number of Files in ADVFS? Date: 1999/08/26 Message-ID: <260819990946362558%harris@zk3.dec.com>#1/1 X-Deja-AN: 517658558 Content-Transfer-Encoding: 8bit References: <7q1a1r$32c$1@fddinewz.oit.unc.edu> To: frey@dove.bme.unc.edu (Eric Frey) Posted-And-Mailed: yes Content-Type: text/plain; charset=ISO-8859-1 Organization: Digital Equipment Corporation, Palo Alto, CA, USA Mime-Version: 1.0 User-Agent: YA-NewsWatcher/4.2.3 Newsgroups: comp.unix.osf.osf1 [[ 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 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. 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: 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.