I run FreeBSD 4.7 and keep all my logs on my /var partition. Now normally I don't have a big problem since I don't get a lot of activity on my server since pretty much only me and my family uses it, but recently I wanted to see how my apache setup stood up to lots of hits, so I got one of those http benchmarking programs and went to town with it. Server stood up great, but I was an idiot and filled up my /var partition with apache log files. So I archived them on another drive to free up some space. Then I ran the following commands and got the following results...
*****@*****:/>> df
Filesystem 1K-blocks Used Avail Capacity Mounted on
...
/dev/ad0s1e 257998 252130 -14770 106% /var
...
*****@*****:/>>du /var
...
148370 /var
*****@*****:/>>
So...what the heck did I do to my computer here? du reports the correct size of the remaining files on /var, yet df still reports the old size before the files were removed, which as you'll notice is not larger than the partition, but I have negative available space and 106% usage. Any thoughts guys?
*****@*****:/>> df
Filesystem 1K-blocks Used Avail Capacity Mounted on
...
/dev/ad0s1e 257998 252130 -14770 106% /var
...
*****@*****:/>>du /var
...
148370 /var
*****@*****:/>>
So...what the heck did I do to my computer here? du reports the correct size of the remaining files on /var, yet df still reports the old size before the files were removed, which as you'll notice is not larger than the partition, but I have negative available space and 106% usage. Any thoughts guys?