home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / ultrix / 5817 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  2.1 KB

  1. Xref: sparky comp.unix.ultrix:5817 comp.unix.admin:4254
  2. Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!augean.eleceng.adelaide.edu.AU!idall
  3. From: idall@augean.eleceng.adelaide.edu.AU (Ian Dall)
  4. Newsgroups: comp.unix.ultrix,comp.unix.admin
  5. Subject: Re: Strange behaviour of df and /tmp
  6. Message-ID: <1992Jul22.012137.13011@augean.eleceng.adelaide.edu.AU>
  7. Date: 22 Jul 92 01:21:37 GMT
  8. References: <1992Jul20.152235.20345@news.uakron.edu>
  9. Organization: Electrical and Electronic Eng., University of Adelaide
  10. Lines: 38
  11.  
  12. In article <1992Jul20.152235.20345@news.uakron.edu> david@vax1.cc.uakron.edu (David Sumitra) writes:
  13. >The system is Ultrix 4.2 on vax 11/785. I have a strange behaviour of
  14. >'df'. It shows 65% full on /tmp. Whereas infact, it is empty according
  15. >to 'ls -la'. The 'du' on /tmp seems to agree with 'ls'.
  16. >
  17. >According to DEC whom I called for help, this could occur when a process
  18. >unlinks a file and just hangs or sits for a while to complete. DEC says
  19. >since the file is unlinked it is not easy to get its inode to remove
  20. >it.  It seems it is the standard feature with all unix based file
  21. >systems and not just the Ultrix.
  22.  
  23. It is a feature!
  24.  
  25. >  The suggested solution is to unmount
  26. >/tmp file system and to run 'newfs'.
  27.  
  28. This won't work. The system won't allow you to umount a filesystem which
  29. has open files one it.
  30.  
  31. The way this all works is that files are deleted when the link count
  32. goes to zero. When a process has a file open, the kernels internal
  33. idea of the link count gets incremented and decremented when the
  34. process closes the file.
  35.  
  36. Thus, to free the blocks allocated to a file you need to a) remove all
  37. links to it in the file system *and* kill all processes which have the file
  38. open.
  39.  
  40. Determining the process could be tricky. It requires grunging through kernel
  41. tables. ofiles may have the ability to find all processes accessing the
  42. partition tmp is on.
  43.  
  44.  
  45. -- 
  46.  Ian Dall           life (n). A sexually transmitted disease which afflicts
  47.                               some people more severely than others.
  48.    ACSnet: idall@augean.oz
  49.  Internet: idall@augean.oz.au
  50.