[Top] [All Lists]

Re: free space problem

To: Huszár Viktor Dénes <hvd@xxxxxx>
Subject: Re: free space problem
From: David Chinner <dgc@xxxxxxx>
Date: Tue, 1 Apr 2008 10:35:18 +1000
Cc: "'Emmanuel Florac'" <eflorac@xxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <20080331173724.24BB68D1DF4@xxxxxxxxxxxx>
References: <20080331093951.100ec125@xxxxxxxxxxxxxx> <20080331173724.24BB68D1DF4@xxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/
On Mon, Mar 31, 2008 at 07:36:56PM +0200, Huszár Viktor Dénes wrote:
> -----Original Message-----
> From: Emmanuel Florac [mailto:eflorac@xxxxxxxxxxxxxx] 
> Sent: Monday, March 31, 2008 9:40 AM
> To: Huszár Viktor Dénes; xfs@xxxxxxxxxxx
> Subject: Re: free space problem
> Le Mon, 31 Mar 2008 02:31:16 +0200 vous écriviez:
> >Then maybe you simply ran out of inodes. It's common if you have lots
> >of small files. There is a way to increase the number of inodes but I
> >don't remember it right now.
> --
> No, unfortunately not. There are not many small files and the inode usage is
> 1%. See.

Yes, but if you have fragemented free space then it is possible that there
are not enough free extents large enough (or aligned correctly) to
allocate more inodes. The number of "free inodes" reported doesn't take
this into account; it only looks at the number of free blocks and converts
that to a theoretical number of inodes that could be allocated in that
space (i.e. it assumes perfect fit and no waste). 

In this "not quite full filesystem" situation, you can write data to the
filesystem, but any attempt to create a new inode (new file, directory,
etc) will fail with ENOSPC. This sounds like the symptoms you are


Dave Chinner
Principal Engineer
SGI Australian Software Group

<Prev in Thread] Current Thread [Next in Thread>