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