From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-95950-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1M9nyy-0005Lu-Oq
	for garchives@archives.gentoo.org; Thu, 28 May 2009 22:21:53 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id DB5A7E0761;
	Thu, 28 May 2009 22:21:51 +0000 (UTC)
Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213])
	by pigeon.gentoo.org (Postfix) with ESMTP id 7F42EE0761
	for <gentoo-user@lists.gentoo.org>; Thu, 28 May 2009 22:21:51 +0000 (UTC)
Received: by ewy9 with SMTP id 9so5367470ewy.34
        for <gentoo-user@lists.gentoo.org>; Thu, 28 May 2009 15:21:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:from:to:subject:date
         :user-agent:references:in-reply-to:mime-version:content-type
         :content-transfer-encoding:content-disposition:message-id;
        bh=kOKdR2vZST3UfTsjabAS5w9+8u4v3RJzewdEyBRvZPc=;
        b=TSjsa3tTr+fhFsNHXHjXL3vf/iZ7COyrvHcwReifzY/HR2D56E6ovAHyEqrv9WBlcn
         Jg27ZsaZoZstvcxJyFdw5PrBRUBxIyIiIUPOjumx2V1fKnjybfBtGBEkN3yZu7XS2iiC
         OZZmCsGL7h//w1cG3kRa5XYVLl/+j9adllpEM=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:to:subject:date:user-agent:references:in-reply-to:mime-version
         :content-type:content-transfer-encoding:content-disposition
         :message-id;
        b=twcWuI3Ai9LilaYVg+qb9OtDiabLCIp75BuUtkfKUOZq9Cfd/rjvGDpD1r0oWgp1cr
         iNf27K7dFI3W87vyUoFhg/wye0IhlVyBu4bD6Ej6TY0p69MJxH7Ocxw1AxDcTxXzS3zT
         HdRwozyQmi+zw2l4BaLyKLKAThrx/YWfes37o=
Received: by 10.210.88.3 with SMTP id l3mr3389017ebb.37.1243549310948;
        Thu, 28 May 2009 15:21:50 -0700 (PDT)
Received: from nazgul.localnet (196-210-153-19-rrdg-esr-2.dynamic.isadsl.co.za [196.210.153.19])
        by mx.google.com with ESMTPS id 10sm1192537eyz.21.2009.05.28.15.21.49
        (version=SSLv3 cipher=RC4-MD5);
        Thu, 28 May 2009 15:21:50 -0700 (PDT)
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [ot] no more inodes
Date: Fri, 29 May 2009 00:20:23 +0200
User-Agent: KMail/1.11.3 (Linux/2.6.29-gentoo-r4; KDE/4.2.3; x86_64; ; )
References: <a0811460905280846md3cd361u40a0b659287ad37c@mail.gmail.com> <4A1EB8F9.3080905@f_philipp.fastmail.net> <a0811460905281443xf2dc78fgc1596af9ec6fe0f9@mail.gmail.com>
In-Reply-To: <a0811460905281443xf2dc78fgc1596af9ec6fe0f9@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200905290020.23755.alan.mckinnon@gmail.com>
X-Archives-Salt: da9ba9b4-861c-4def-b5d2-06af8f279b4f
X-Archives-Hash: aaf2d8d02b37bbaa2e3282917d85110a

On Thursday 28 May 2009 23:43:19 Maxim Wexler wrote:
> > My advice: Save everything to another disk and then reformat the
> > partition with a higher amount of inodes.
>
> Everything? Won't that copy over the extraneous inodes?

You appear to not understand what an inode is.

The inode IS THE FILE. It's a specially formatted block on disk, the 
filesystem knows how to interpret it, and it contains all known information 
(except one piece) about the file - as in, everything that ls can display.

The missing bit of information is the name you call it by, that is stored in 
the directory (which is really just a special file and contains file names and 
their corresponding inode numbers - this is how the fs driver finds files).

When you copy a file, the inode is read and a new one initialized in the new 
location. Then the disk blocks are read from the original and copied to the 
destination. As the destination does this, the fs driver knows how to keep 
it's inode accounting intact.

So, there is no such thing as an extraneous inode. It's either being used (and 
thus gets copied) or it is not used (and does not get copied). You cannot copy 
a file without copying it's inode, and you cannot copy an inode without 
copying the file (special exception - files of zero length).

> > This will create a file system with three times as many indoes as you
> > had before.
>
> Is 3x enough? I haven't even gotten off the ground yet, 28 lines in
> /var/db/pkg/world and my alotted inodes have been already used up? No
> gnome, kde, gimp, office etc etc.

You will need approx 500,000 inodes on an average machine total, split that up 
amongst your mounted volumes as appropriate. Use "find -x | wc" on an existing 
machine per mount point to get a rough idea of the scale.

> FWIW, I thought I'd chroot in and do an emerge -C mozilla-firefox but
> it hadn't even been installed yet! It choked on dev-java/jdk. So, did
> emerge mozilla-firefox. Same thing:
>
> IOError: [Errno 28] No space left on device:
> '/var/db/pkg/dev-java/-MERGING-sun-jdk-1.6.0.13/CFLAGS'

Well, what did you expect? You have used up all the "index entries" for files, 
and you are trying to create more files. What else could it do apart from 
fail?

Log onto the machine and delete some stuff. Then try unmerge to free up more 
space. Then backup, reformat, restore.

-- 
alan dot mckinnon at gmail dot com