Skip to contentSkip to conversation

File system question - free blocks

DISCUSSION Rohan Sheth 2 participants 4 messages Apr 15, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Under what circumstances would I see something like this happen (ext3)?

[rohan@box1 ~]$ df

Filesystem Total Used Free
/dev/partition 10000 9990 0

[rohan@box1 ~]$ rm <some files on that partition>

[rohan@box1 ~]$ df

Filesystem Total Used Free
/dev/partition 10000 9700 0

So the number of blocks in use went down, but the number free did not increase. Why?

--Rohan

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 3 lines · James Paton

Is it a virtual disk?

-- Jim

Nope, physical disk.

--Rohan

#3 lore raw
In reply to Rohan Sheth

The space you've freed up is probably reserved for root and the various process run as root. In order to prevent the system from crashing it will report no free space to normal users when there is clearly some there once a certain threshold is reached.

http://www.ducea.com/2008/03/04/ext3-reserved-blocks-percentage/

-Mathew

Quoted 14 lines · Rohan Sheth

Under what circumstances would I see something like this happen (ext3)?

[rohan@box1 ~]$ df

Filesystem         Total Used Free
/dev/partition     10000 9990 0

[rohan@box1 ~]$ rm <some files on that partition>

[rohan@box1 ~]$ df

Filesystem       Total Used Free
/dev/partition   10000 9700 0

Quoted 9 lines

So the number of blocks in use went down, but the number free did not increase. Why?

--Rohan
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 8 lines · Mathew Snyder

The space you've freed up is probably reserved for root and the various process run as root. In order to prevent the system from crashing it will report no free space to normal users when there is clearly some there once a certain threshold is reached.

http://www.ducea.com/2008/03/04/ext3-reserved-blocks-percentage/

-Mathew

Yep, that seems to have been the culprit, thanks!

--Rohan