public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] ext4 inode limit reached
  @ 2011-12-13  0:44 99% ` Frank Steinmetzger
  0 siblings, 0 replies; 1+ results
From: Frank Steinmetzger @ 2011-12-13  0:44 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1735 bytes --]

On Mon, Dec 12, 2011 at 12:15:52PM +0100, Daniel Troeder wrote:

> I have an ext4-filesystem that contains /usr/src, the /usr/portage and
> /var/cache/edb. It previously also contained /var/db/pkg, but I had to
> move that some weeks ago, because the fs was "full". Now it's "full"
> again, though it has free blocks. But no inodes are left:
> 
> $ fsck -vf /dev/sda5
> [..]
>   655360 inodes used (100.00%)
> [..]
> 
> $ find /gentoo -xdev | wc -l
> 655338
> 
> Is there any way to raise the number of inodes without using
> $ mkfs.ext4 -N BIGNUM

You can’t increase the number in an existing FS, you’ll have to reformat it.
If you have a backup, as you should anyway ;-) , you could boot a live system
and reformat.

On my system, /usr/portage currently contains 127000 files. But for reason of
increased performance I put it into a squashfs file.  (There was a nice howto
on this ML some months ago).  You could try that, which will free those inodes
up and ideally leaves you with one used inode for the squashfs image. Plus, if
you have enough RAM, you could put /var/tmp/portage into tmpfs. I have 3GB,
and this is fairly enough. For other hogs like firefox, LO and java, I use
binary packages though.
For comparision, I too have one (seldom two) kernel source trees and everything
else on / except /home. And while of the 17GB capacity barely 1GB is left free,
I still have 480k inodes free of the 1M in total. (I figured that I may have
more space for content if I reserved less for inodes).
-- 
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.

A hammer is a wonderful tool,
but it is plain unsuitable for cleaning windows.  (SelfHTML forum)

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-12-12 11:15     [gentoo-user] ext4 inode limit reached Daniel Troeder
2011-12-13  0:44 99% ` Frank Steinmetzger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox