Received: with ECARTIS (v1.0.0; list linux-xfs); Thu, 25 Mar 2004 07:33:00 -0800 (PST) Received: from redix.it (host49-169.pool8172.interbusiness.it [81.72.169.49]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i2PFWtKO000427 for ; Thu, 25 Mar 2004 07:32:56 -0800 Received: (qmail 15889 invoked by uid 72); 25 Mar 2004 15:32:53 -0000 Received: from 81.72.169.49 (SquirrelMail authenticated user roberto) by mail.redix.it with HTTP; Thu, 25 Mar 2004 16:32:52 +0100 (CET) Message-ID: <44293.81.72.169.49.1080228772.squirrel@mail.redix.it> In-Reply-To: <20040325014100.0aaedcea.gkoch@tampabay.rr.com> References: <20040325014100.0aaedcea.gkoch@tampabay.rr.com> Date: Thu, 25 Mar 2004 16:32:52 +0100 (CET) Subject: Re: losing disk space From: roberto@redix.it To: "Greg Koch" Cc: linux-xfs@oss.sgi.com User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-archive-position: 2594 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: roberto@redix.it Precedence: bulk X-list: linux-xfs Content-Length: 1543 Lines: 43 > I have a server running apache on an 18GB xfs partition. It seems to > loose large chunks of disk space around the time the apache logs rotate. > The apache logs get to be around 2 gig at the end of the day and are > compressed and started over by logrotate. df reports one value > while du-sch / reports another. The value du give stays pretty much > steady while the value df gives shows a gradual loss of disk space. > > The last time the disk filled up, I restarted and used xfs-repair which > recovered a bunch of apache logs among other stuff. The disk has plenty > of room now and on most days seems to recover disk space after the log > rotation. Then on some days you dont see any space recovery. > > Here are some other details: > Gentoo kernel Linux 2.4.25_pre7-gss-r2 > Dual Xeon 1.8 GHz CPU > WDC WD200BB-00CAA1 hard drive in udma5 mode WriteCache=enabled > xfsprogs 2.3.9 > logrotate 3.6.5 > syslogd 1.4.1 > apache 2.0.48 > > -- > > My colleagues, every statement I make today is backed up by sources, > solid sources. These are not assertions. What we are giving you are > facts and conclusions based on solid intelligence. > > > Maybe the problem is related to some process(es) that do not close a file descriptor (a previously opened file), and a user or another precess has removed the file. As far I know "df" shows the free space with the "opened" but deleted file, du shows the free space). Please check the log rotation procedure and check the process open file (please man "lsoft" and "fuser"). Bye Roberto