Subject: Re: "no inodes free", but still 40% (73MB) left on disk
To: henry nelson <netb@irm.nara.kindai.ac.jp>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 11/04/2003 17:07:23
On Wed, 5 Nov 2003, henry nelson wrote:
> I've been trying to just unpak (not use) pkgsrc.tar.gz, but it won't go on
> the partition I made for it. I tried: "gzip -dc pkgsrc.tar.gz | tar xf -",
> "cat pkgsrc.tar.gz |(cd /usr; tar xf -)" and "pax -zrpe -f pkgsrc.tar.gz".
> In every case, it stops with a message like:
> /usr/pkgsrc: create/symlink failed, no inodes free
> tar: Could not create file pkgsrc/ ... link2.mk: No such file or directory
> Yet, if I do `df`, that partition shows up as:
> 1K-blocks Used Avail Capacity
> /dev/sd0e 190600 107988 73082 59% /usr/pkgsrc
Try "df -i" to see inode usage too.
> Is it because pkgsrc has a huge number of very small files? Could I use
It has many files. I don't know if I counted right (as listed in
CVS/Entries so I wouldn't count my extra junk), but I came up with 41049
files.
You also need to consider when you extract distfiles and during a build.
(You can choose another filesystem for your pkgsrc work with WRKOBJDIR
setting if needed.)
> tunefs(8) or fdisk(8) to somehow increase the number of inodes without
> increasing the size of the partition? (If yes, how, i.e., what options?)
Have a look at newfs -i switch when making a new filesystem.
Jeremy C. Reed
http://www.reedmedia.net/