home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / vms / 13696 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  2.1 KB

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