home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!utcsri!torn!utzoo!utdoe!torag!jrh!jrh
- From: jrh@jrh.uucp (James R. Hamilton)
- Subject: Re: /tmp Corrupted
- Message-ID: <1992Nov08.070150.196948@jrh.uucp>
- Organization: private system, Toronto, Ontario
- References: <1992Nov5.225824.3656@netcom.com>
- Date: Sun, 08 Nov 1992 07:01:50 GMT
- Lines: 44
-
- In article <1992Nov5.225824.3656@netcom.com> lui@netcom.com (Stephen Lui) writes:
- >Recently our /tmp file system started to fill up. I went to /tmp and deleted
- >unnecessary files. However, this did not release any space in the file system
- >according to df. I went ahead and deleted all of the files in /tmp and the
- >file system was still 100% full! I ran fsck on /tmp and got:
- >
- >
- >** Checking /dev/hd3 (/tmp) MOUNTED FILE SYSTEM; WRITING SUPPRESSED;
- >** Phase 1 - Check Blocks and Sizes
- >** Phase 2 - Check Pathnames
- >** Phase 3 - Check Connectivity
- >** Phase 4 - Check Reference Counts
- >** Phase 5 - Check Inode Map
- >The Inode map is not valid. (NOT SALVAGED)
- >** Phase 6 - Check Block Map
- >The Block map is not valid. (NOT SALVAGED)
- >The integrity of the file system is not guaranteed.
- >109 files 3576 blocks 37384 free
- >
- >To keep the system up, I created another /tmp file system and mounted it over
- >/tmp. After later rebooting the system and running fsck (you can't run fsck
- >and write to /tmp when it's mounted) the problem disappered. However, half a
- >day later the problem repeated itself.
- >
- >After a few days the problem seemed to correct itself. However, today the
- >same problem happened to /usr/ingres/files, a user-defined filesystem on a
- >total different physical disk. Any suggestions?
-
- Many program open tmp files and then unlink them. The effect of doing
- this is the file will not show up in the /tmp directory but it does
- continue to take up space as long as the program is alive and the file
- is open. If the file is closed or the program terminates (due to any
- reason) then the space is freed up. I suspect that you can figure out
- whether or not this is happening by attempting to un-mount the filesystem.
- This will fail if a process has a file open in that file system.
-
- Incidentally, fsck should not be run on a mounted file system.
-
- --jrh
- --
-
- James R. Hamilton inet: jrh@jrh.gts.org
- telephone: +1 416 493 4162 uunet: ...!uunet!jrh!jrh
- Toronto, Canada work: jrh@torolab6.vnet.ibm.com
-