From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075322406449.tru64-unix-managers.marc@archive.invalid> From: NSYSTEM () beau ! nb ! rockwell ! com Date: Fri, 04 Aug 1995 23:12:35 +0000 To: tru64-unix-managers Subject: SUMMARY: Root Filesystem X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075322406449 Hello All, My original question was: 1. If a / (root) filesystem is full to over 111%, and it goes down to 60% after a reboot, what does that mean? Below is the summary: ------------------------------------------------------------------------------ From: SMTP%"SLOANE@KUHUB.CC.UKANS.EDU" 1-AUG-1995 12:16:46.61 It probably means that some program was running and had an open file on the filesystem that had been rm'ed but the inode hadn't been deleted because the file was in use. When the boot kill the process, the inode was delete, freeing up the space. To duplicate the problem, run a program which loops on a write statement forever and ignores errors, creating a file which gets bigger and bigger. Eventually it will fill up the file system. Now use rm to delete the file, but leave the program running. The file will be removed from its directory, but the space will not be deallocated. Now kill the process, and the space will re-appear. If this happens again you can use the freely available program lsof to find the program writing the big file and just kill it rather than booting the whole system. ------------------------------------------------------------------------------- From: SMTP%"SEB@LNS62.LNS.CORNELL.EDU" 1-AUG-1995 12:31:01.88 Candice, It sounds like you have left the /tmp directory in / /tmp is used for intermediate scratch files by the compilers, for example. Files in that directory are automatically deleted when the sytem boots. / usually doesn't have enough room on a multiuser development system. When you create a disk partition, by default only root is permitted to fill it up completely. The user accessable portion is normally 90% of the specified size, but is shown as if it were 100%. When a program with root privileges exceeds that, the partition is shown as if it were more than 100% full. The actual difference between the user accessable capacity and the actual capacity is controlled by arguments to newfs. We create a separate partition for /tmp which is mounted in fstab so that it doesn't occupy space in / and can be much larger. Our /tmp partition is often 64-128 MB, depending on the system. I hope this helps. Selden ------------------------------------------------------------------------------- Thank you to all who responded. doug.berry@sheridanc.on.ca arthur@midir.ucd.i martin@jerry.alf.dec.com SLOANE@KUHUB.CC.UKANS.EDU alan@nabeth.cxo.dec.com hyman@nuc006.psc.sc.edu john@WPI.EDU SEB@LNS62.LNS.CORNELL.EDU yanowitz@cs.umass.edu cdm@hyperk.com jtk@atria.com aad@nwnet.net iglesias@draco.acs.uci.edu bcd@pacific.mps.ohio-state.edu steve@aztech.com newcomer@dickinson.edu pclark@p90.pclark.com bourque@lvs-emh.lvs.loral.com rockwell@rch.dec.com xxfdh@omega.uta.edu TIMOTHY.D.KNOX@x400gw.ameritech.com matthewm@sgate.com khalid@FNAL.FNAL.GOV huhman@ee.deere.com Don.Ritchey@chipsi.com teh@coho.phy.anl.gov chu@musp0.Jpl.Nasa.Gov santana@nucmar.physics.fsu.edu kkkong@ee.cuhk.hk crispin@communica.oz.au bonn@durian.usc.edu.ph lattaw@alf.dec.com hl@tekla.fi morten.hanshaugen@usit.uio.no john@zyqad.co.uk demarthe@alpha.cad.cea.fr rjackson@gmu.edu sweber@mr.picker.com Regards Candice