2004-06-02 16:37:36

by Calvin Spealman

[permalink] [raw]
Subject: Possible bug: ext3 misreporting filesystem usage

I've been getting a possible bug after running my system a few weeks. The
ext3 partition's usage is being misreported. Right now, df -h says ive got
no space left, but according to du /, I'm only using 17 gigs of my 40 gig
drive. Restarting fixes the problem, so I'm thinking it might be some
mis-handled variable in memory, not something on the disc itself? And, yes,
I do know that du is right, not df, because I keep good track of my disc
usage. This is pretty serious, it killed a 40+ hour process that i'll have
to start over again from the beginning!


2004-06-02 16:53:46

by Miquel van Smoorenburg

[permalink] [raw]
Subject: Re: Possible bug: ext3 misreporting filesystem usage

In article <[email protected]>,
Calvin Spealman <[email protected]> wrote:
>I've been getting a possible bug after running my system a few weeks. The
>ext3 partition's usage is being misreported. Right now, df -h says ive got
>no space left, but according to du /, I'm only using 17 gigs of my 40 gig
>drive. Restarting fixes the problem, so I'm thinking it might be some
>mis-handled variable in memory, not something on the disc itself? And, yes,
>I do know that du is right, not df, because I keep good track of my disc
>usage. This is pretty serious, it killed a 40+ hour process that i'll have
>to start over again from the beginning!

There's a process holding on to a 23 GB logfile that has been
deleted. Try "ls -l /proc/*/fd/* 2>&1 | grep deleted" . Kill the
process and you'll have your space back.

Mike.

2004-06-03 04:55:31

by Calvin Spealman

[permalink] [raw]
Subject: Re: Possible bug: ext3 misreporting filesystem usage

Miquel van Smoorenburg wrote:

> In article <[email protected]>,
> Calvin Spealman <[email protected]> wrote:
>>I've been getting a possible bug after running my system a few weeks. The
>>ext3 partition's usage is being misreported. Right now, df -h says ive got
>>no space left, but according to du /, I'm only using 17 gigs of my 40 gig
>>drive. Restarting fixes the problem, so I'm thinking it might be some
>>mis-handled variable in memory, not something on the disc itself? And,
>>yes, I do know that du is right, not df, because I keep good track of my
>>disc usage. This is pretty serious, it killed a 40+ hour process that i'll
>>have to start over again from the beginning!
>
> There's a process holding on to a 23 GB logfile that has been
> deleted. Try "ls -l /proc/*/fd/* 2>&1 | grep deleted" . Kill the
> process and you'll have your space back.
>
> Mike.

All that shows is a couple things from konq's http cache, nothing adding
nearly to the 23 gigs.

If i delete some files, i have more space, but then the used space steadily
increases until i have nothing left again. i am running a 2.6.6_rc1 kernel.

2004-06-07 09:19:48

by Walter Hofmann

[permalink] [raw]
Subject: Re: Possible bug: ext3 misreporting filesystem usage

> I've been getting a possible bug after running my system a few weeks. The
> ext3 partition's usage is being misreported. Right now, df -h says ive got
> no space left, but according to du /, I'm only using 17 gigs of my 40 gig
> drive. Restarting fixes the problem, so I'm thinking it might be some
> mis-handled variable in memory, not something on the disc itself? And, yes,
> I do know that du is right, not df, because I keep good track of my disc
> usage. This is pretty serious, it killed a 40+ hour process that i'll have
> to start over again from the beginning!

I have seen this too. See
http://marc.theaimsgroup.com/?l=linux-kernel&m=108549779731780&w=2

No replies yet.

Walter