public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ext4 inode limit reached
Date: Mon, 12 Dec 2011 15:54:39 +0100	[thread overview]
Message-ID: <20111212155439.67504aef@weird.wonkology.org> (raw)
In-Reply-To: <20111212143128.GO3810@syscon4.inet>

Joseph writes:

> On 12/12/11 12:15, Daniel Troeder wrote:
> >Hello :)
> >
> >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
> >
> >That's really disappointing. I was using reiser3fs and XFS before, and
> >they didn't have that kind of limitation... Uhm... not meant as a rant
> >- I like ext4 - that's why I'm moving (almost?) everything to it...
> >
> >Is there any way to raise the number of inodes without using
> >$ mkfs.ext4 -N BIGNUM
> >
> >Thank you,
> >Daniel
> 
> That is scary. I just install new HD with 2TB capacity and ext4 that is
> 2% full and:
> $ find /home/joseph/ -xdev | wc -l 
> shows: 169977  that is 26% full.

No, that is 26% of the number of total inodes _Daniel_ has on his small
partition. Yours is bigger, so you have more inodes. My largest partition
has 724G, and 46 million inodes. Use df -i to see how many you have.

> So will run out of inodes before I run out of hard disk space :-/ that
> is not good. If other filesystems don't have these kind of limitation
> I'll be switching.

Having too few inodes has been a problem for me in the past. But that was
either a tiny partition for the portage tree, which has so many small
files. Or the partition where I back up my /var partition with
rdiff-backup, so it also has lots of files, and with each backup the same
amount gets added. If you intend to place unusually many files on a
partition, check how many inodes mkfs has created, and re-create the file
system using the -N option, giving it a somewhat larger number.

	Wonko



  reply	other threads:[~2011-12-12 14:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-12 11:15 [gentoo-user] ext4 inode limit reached Daniel Troeder
2011-12-12 12:00 ` Alex Schuster
2011-12-12 14:31 ` Joseph
2011-12-12 14:54   ` Alex Schuster [this message]
2011-12-12 15:44     ` Daniel Troeder
2011-12-12 14:39 ` Joseph
2011-12-12 14:48   ` Pandu Poluan
2011-12-13  0:44 ` Frank Steinmetzger
2011-12-13 10:07   ` Daniel Troeder
2011-12-13  5:24 ` Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111212155439.67504aef@weird.wonkology.org \
    --to=wonko@wonkology.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox