Re: No space left on device when there is space

From: Ernst Heiri <heiri@dont-contact.us>
Date: Mon, 15 Mar 1999 17:04:12 +0100

We had a similar Problem on Solaris 2.6 (sun4u sparc).
A 'df' showed 19% free space (about 4 GB) but it was impossible
to create one little file more in this filesystem.
(There were plenty of free inodes left too.)

You have to check as root:
        fstyp -v </dev/your/device> | less
the value for nbfree.
If this value is 0 no file can be allocated anymore - no matter of how
much free space 'df' shows.

Theoretically it would help to reduce the block size to 4096 for this
filesystem - but this is not possible for this architecure and not
for Solaris 2.6 (at least).

Ernst

On Mon, 15 Mar 1999 23:16:33 +1300 (NZDT) List Server Account wrote:

> I am running squid 2.1 patch 2 + mem leak patch. (Although the same
> happens with 2.2 pre 3). I have looked at the FAQ, and can't find any
> information about this.
>
> I also adjusted "store_avg_object_size from 13 KB down to 11 KB, as per
> an article I read (but did not understand), but it seems to have made no
> difference. I have 4 cache partitions, all 2050 Megs. Once one shrinks,
> the
> others follow. If I restart the cache, the caches will start off back at
> a max of 2050 megs, and decrease again.
>
> My Squid cache automatically shrinks. Initially 1 directory will
> shrink, then all of them seem to follow. I recently turned debugging on
> and it tells me :
>
> At 21:28:03
> diskHandleWrite: FD56: disk write error: (28) No space left on device
> storeSwapOutHandle: SwapOut failure (err code = -6).
> WARNING: Shrinking cache_dir #2 to 1490620 KB
>
> I just did discovered the problem, and did a df (at 23:08:07)
> /dev/sda2 2136576 1578058 558518 /cache2 (which is cache dir #2)
>
> I did reformat the partition (and there is only the squid cache on the
> partition), to allow 0% for root only space.
>
> My Config Includes :
>
> cache_swap_low 97
> cache_swap_high 98
> maximum_object_size 12000 KB
>
> cache_dir /cache2 2050 16 256
>
> Any ideas, this is driving me nuts !!!
>
> Thanks,
> David
>
Received on Mon Mar 15 1999 - 09:17:35 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:16 MST