2004-06-17 22:24:10

by Guennadi Liakhovetski

[permalink] [raw]
Subject: space left on ext3 (2.6.6-bk3)

On a ext3 fs:

fast:/mnt/tmp# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 958488 521864 387936 58% /mnt

fast:/mnt/tmp# cat /dev/zero > zr
cat: write error: No space left on device

fast:/mnt/tmp# ls -l
total 436624
-rw-r--r-- 1 root root 446660608 Jun 18 00:23 zr

fast:/mnt/tmp# rm zr

fast:/mnt/tmp# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 958488 521864 387936 58% /mnt

Is this an expected behaviour?.. Yeah, it is nice to have more space than
you think you have, but...

Thanks
Guennadi
---
Guennadi Liakhovetski


2004-06-17 22:38:00

by Martin Hermanowski

[permalink] [raw]
Subject: Re: space left on ext3 (2.6.6-bk3)

On Fri, Jun 18, 2004 at 12:23:25AM +0200, Guennadi Liakhovetski wrote:
> On a ext3 fs:
>
> fast:/mnt/tmp# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sda3 958488 521864 387936 58% /mnt
>
> fast:/mnt/tmp# cat /dev/zero > zr
> cat: write error: No space left on device
>
> fast:/mnt/tmp# ls -l
> total 436624
> -rw-r--r-- 1 root root 446660608 Jun 18 00:23 zr
[...]
> Is this an expected behaviour?.. Yeah, it is nice to have more space than
> you think you have, but...

436192 blocks

958488-521864 = 436624 blocks

I think you have 5% reserved for root, as this is the default setting
when creating ext3 fs'.

LLAP, Martin


Attachments:
(No filename) (695.00 B)
signature.asc (189.00 B)
Digital signature
Download all attachments

2004-06-17 22:59:00

by tom st denis

[permalink] [raw]
Subject: Re: space left on ext3 (2.6.6-bk3)

--- Guennadi Liakhovetski <[email protected]> wrote:
> On a ext3 fs:
>
> fast:/mnt/tmp# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sda3 958488 521864 387936 58% /mnt
>
> fast:/mnt/tmp# cat /dev/zero > zr
> cat: write error: No space left on device
>
> fast:/mnt/tmp# ls -l
> total 436624
> -rw-r--r-- 1 root root 446660608 Jun 18 00:23 zr
>
> fast:/mnt/tmp# rm zr
>
> fast:/mnt/tmp# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sda3 958488 521864 387936 58% /mnt
>
> Is this an expected behaviour?.. Yeah, it is nice to have more space
> than
> you think you have, but...

Have you tried running fsck on it? How many inodes are available.

Tom



__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

2004-06-18 18:34:27

by Guennadi Liakhovetski

[permalink] [raw]
Subject: Re: space left on ext3 (2.6.6-bk3)

On Fri, 18 Jun 2004, Martin Hermanowski wrote:

> On Fri, Jun 18, 2004 at 12:23:25AM +0200, Guennadi Liakhovetski wrote:
>
> I think you have 5% reserved for root, as this is the default setting
> when creating ext3 fs'.

Oh, I forgot about that again... Wouldn't it be good to have df either
1) report different amounts for root / non-root
or
2) report both
?

Thanks
Guennadi
---
Guennadi Liakhovetski