> 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").