Wow! That was quick;) Many thanks to: Mike Salehi <mike.salehi@kodak.com> "Mangat, Vicky" <Vicky.Mangat@centrica.co.uk> "Sjolshagen, Thomas (Tru64 UNIX Eng.)" <thomas.sjolshagen@hp.com> Rick Rezinas <rick@beerdrinker.org> Scott M. Sorrentino <scott@sorrentino.net> Michael Schulte <mike@babbage.cs.umsl.edu> Matthew Stier <Matthew.Stier@us.fujitsu.com> Iain Miller <iainonthemove@gmail.com> Original question: > Since early this morning one of my partitions have become full: > > # df /dptweb > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/amir0d 25019863 23770030 -1161 100% /dptweb > > However: > > # du -s /dptweb > 6680278 /dptweb > > How can I resolve the problem. Michael's response is the most comprehensive, and doesn't need to be summarized;) On Fri, 29 Apr 2005, Michael Schulte wrote: > Date: Fri, 29 Apr 2005 13:58:05 -0500 (CDT) > From: Michael Schulte <mike@babbage.cs.umsl.edu> > To: jjah@sol.ccsf.cc.ca.us > Subject: Re: File system full, but not according to du;( > > The easy solution: reboot > The hard solution: find the process that is holding a deleted file open, and > kill that process. > > The problem is (very probably): when a file is deleted, the file space is > NOT recovered until all the processes that have the file open have > closed it (or died). Many system processes open a file when they start > and never close it; if someone deletes that file, the space is still > allocated. > > You notice the problem because df and du count the space differently. > Df counts space from the inodes (which gives all allocated space); > du follows the directory structure, so it only get file space accessible > by name. > > --- > Michael Schulte Specialist in Computer Science > Math/CS Dept. (MC-61) (314) 516 5239 > Univ. of Missouri-St. Louis schulte@cs.umsl.edu > One University Boulevard http://www.cs.umsl.edu/~schulte > St. Louis, MO 63121 USA Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@sol.ccsf.cc.ca.us _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Sat Apr 30 03:40:16 2005
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:46 EST