home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!ucbvax!lrw.com!leichter
- From: leichter@lrw.com (Jerry Leichter)
- Newsgroups: comp.os.vms
- Subject: re: help needed with directory problem
- Message-ID: <9208161520.AA20328@uu3.psi.com>
- Date: 16 Aug 92 15:22:44 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 33
-
-
- I have a user who currently cannot receive any mail. The error
- message when PMDF tries to send mail to the user's account is:
- -RMS-E-CRE, ACP file create failed
- -SYSTEM-W-DIRALLOC, allocation failure on directory file
-
- His mail directory has 560 files in it. What do I need to do to fix
- this? I tried creating a new directory and copying his mail files to
- it (via COPY and via BACKUP). Both of these attempts failed, giving
- the same error as above on the new directory.
-
- Well, the most obvious possibility is that there is no free space on the disk!
- Assuming that you've checked for that, your problem is almost certainly due to
- disk free-space fragmentation. Directory files have to be contiguous. A MAIL
- directory file containing 560 files would be about 54 blocks long, assuming it
- doesn't contain a lot of wasted space. (There's no magic in my coming up with
- this estimate - my own MAIL subdirectory file contains 466 files at the
- moment! The exact value varies depending on disk cluster size - 3, in my case
- - and on how many files within that were once in the directory have been
- deleted - and exactly where in the directory their names fell.) The code that
- increases the size of a directory seems to roughly double it. So you'd need
- about 100 blocks of contiguous file space.
-
- The only possible fix is to get some more contiguous space. Either use an
- on-line defragmenter, or an image backup/restore.
-
- For a short-term fix, find some old, large file to delete - or simply copy it,
- then delete the original. An old file is probably contiguous or close to
- contiguous; any copy you make will not be contiguous, but when you delete the
- original, you will instantly have a whole bunch of contiguous free space, at
- least for a little while.
- -- Jerry
-
-