Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Nov 2000 09:12:52 -0800
From:      Kent Stewart <kstewart@urx.com>
To:        Steve <vandena@ispchannel.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Update to 4.2
Message-ID:  <3A214494.A6898589@urx.com>
References:  <Pine.BSF.4.21.0011260650530.17195-100000@MyFreeBSD.ispchannel.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Steve wrote:
> 
> Thanks for the quick response.  Output is:
> 
> MyFreeBSD# df -i
> Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused
> Mounted on
> /dev/ad0s1a    248047   178899    49305    78%   62462       0   100%   /
> /dev/ad0s1e   7627012  2396559  4620293    34%  158662 1753912     8%
> /usr
> procfs              4        4        0   100%      44     488     8%
> /proc
> 
> Is the procedures outlined at http://www.freebsddiary.org/inodes.html the
> correct way to fix this problem?  Also, what would cause this and is there
> a quick fix to prevent it from happening again?

I've never had it happen but I think Dan's write up is correct for his
situation. My system's are typically setup like

Filesystem  1K-blocks     Used    Avail Capacity iused   ifree 
%iused  Mounted on
/dev/ad0s2a     99183    49143    42106    54%    2510   22576   
10%   /
/dev/ad0s2f   1488607    16996  1352523     1%    1319  371671    
0%   /tmp
/dev/ad0s2g  10517574  5262140  4414029    54%  292511 2342239   
11%   /usr
/dev/ad0s2e    496111    14604   441819     3%    1588  123338    
1%   /var
procfs              4        4        0   100%      45     487    
8%   /proc

My big system also has sufficient inodes. It looks like

Filesystem  1K-blocks     Used    Avail Capacity iused   ifree 
%iused  Mounted on
/dev/ad0s1a     99183    37998    53251    42%    2071   23015    
8%   /
/dev/ad3s1f    992239      524   912336     0%     205  249649    
0%   /tmp
/dev/ad0s1e  11934818  3973876  7006157    36%  264733 2719201    
9%   /usr
/dev/da0s1e   4102037   511023  3262852    14%   46190  985488    
4%   /usr1
/dev/ad1s1e   2999774  1259377  1500416    46%    5057  724541    
1%   /usr3
/dev/ad3s1e    496111    26861   429562     6%    1387  123539    
1%   /var
/dev/ad3s1g  11442450  5259025  5268029    50%  144888 2720006    
5%   /usr2
procfs              4        4        0   100%      50     482    
9%   /proc

I didn't do anything special when I created them. These are the
defaults from when I created the filesystems using sysinstall. The way
the usage is going, I think I'm going to run out of HD before I run
out of inodes.

You can see that I don't have a lot of small files on /. I'm guessing
here but it looks to me like you have a lot of files in /root.
Otherwise you would have a usage like mine. You need to mv them to
something like /usr/root/dir and then link it to /root/dir. 

The space allocated to /tmp, and /var is the same on all systems. What
ever is left is allocated to /usr. I would think that you could move
what is causing you to run out of inodes on to /usr as a link. To
recreate a file system such as /, you have to reinstall. I have
rearranged things by shutting down to single user mode (shutdown now)
and mv'ed things /var to a different HD. Create the link and exit to
multi-user mode. You have to check link permissions.

Kent

> 
> On Nov 26, Kent Stewart enlightened us with the following:
> 
> >
> >
> > Steve wrote:
> > >
> > > I have successfully cvsup'd to 4.2-STABLE.  However, in trying to complete
> > > the update in  /dev and /stand, I get the following errors:
> > >
> > > For /dev:
> > >    MyFreeBSD# ./MAKEDEV all
> > >
> > >    /: create/symlink failed, no inodes free
> > >    mknod: klog: No space left on device
> > >    /sbin/mknod klog
> > >
> > > ...(repeated many times)...
> > >
> > > For /stand:
> > >    /: create/symlink failed, no inodes free
> > >    install: /stand/sysinstall: No space left on device
> > >    *** Error code 71
> > >
> > > Diskspace looks as follows:
> > >    MyFreeBSD# df -h
> > >    Filesystem    Size   Used  Avail Capacity  Mounted on
> > >    /dev/ad0s1a   242M   175M    48M    78%    /
> > >    /dev/ad0s1e   7.3G   2.3G   4.4G    34%    /usr
> > >    procfs        4.0K   4.0K     0B   100%    /proc
> > >
> > > Any ideas, suggestions, links, etc. about what is going on would be
> > > greatly appreciated.  (BTW...I was using the Make World example found at
> > > www.mostgraveconcern.com/freebsd which has worked great as a general
> > > guideline up until now.)
> >
> > It sounds like you have run out of inodes on the file system. You can
> > see what is being used by typing "df -i".
> >
> > Kent
> >
> > >
> > > Steve
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-questions" in the body of the message
> >
> > --
> > Kent Stewart
> > Richland, WA
> >
> > mailto:kbstew99@hotmail.com
> > http://kstewart.urx.com/kstewart/index.html
> > FreeBSD News http://daily.daemonnews.org/
> >

-- 
Kent Stewart
Richland, WA

mailto:kbstew99@hotmail.com
http://kstewart.urx.com/kstewart/index.html
FreeBSD News http://daily.daemonnews.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A214494.A6898589>