Re: Run out of inodes

2007-12-27 Thread Valery Reznic

--- Biran, Yahav (Yahav) [EMAIL PROTECTED]
wrote:

 df -I show:
 [EMAIL PROTECTED] mpower]# df -i
 FilesystemInodes   IUsed   IFree IUse%
 Mounted on
 /dev/cciss/c0d0p6 262144   10442  2517024% /
 /dev/cciss/c0d0p1  26104  54   260501%
 /boot
 none 1013170   1 10131691%
 /dev/shm
 /dev/cciss/c0d0p23989888  616728 3373160   16%
 /export/home
 /dev/cciss/c0d0p7 131616  20  1315961%
 /tmp
 /dev/cciss/c0d0p33842720  127472 37152484%
 /usr
 /dev/cciss/c0d0p8 131616  131616   0  100%
 /var
 
 Therefore I can't run any rpm nor up2date.
 
 How one can clean up some inodes? 
You can remove some files under /var.
Or you can backup /var somewhere, unmount it, create
on /dev/cciss/c0d0p8 new filesystem with more inodes,
and then restore /var

Valery.

Valery

 
 Internal Virus Database is out-of-date.
 Checked by AVG Free Edition. 
 Version: 7.5.503 / Virus Database: 269.17.1/1183 -
 Release Date: 12/13/2007 9:15 AM
  
 

To
 unsubscribe, send mail to
 [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g.,
 run the command
 echo unsubscribe | mail
 [EMAIL PROTECTED]
 
 



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Run out of inodes

2007-12-27 Thread Omer Zak
Few years ago a Linux system, which I used, ran out of inodes once in a
while.  The reason was that a directory in /var (I do not remember its
name) got filled by thousands of zero-length files, due to a botched
error recovery attempt by some daemon.  The cure was to delete all those
files.

I would suggest that you look for obsolete archive files in /var/log and
for other obsolete stuff in other /var subdirectories.  Once those files
re deleted, you should be able to free several inodes.

  --- Omer

On Wed, 2007-12-26 at 09:12 +0100, Biran, Yahav (Yahav) wrote:
 df -I show:
 [EMAIL PROTECTED] mpower]# df -i
 FilesystemInodes   IUsed   IFree IUse% Mounted on
 /dev/cciss/c0d0p6 262144   10442  2517024% /
 /dev/cciss/c0d0p1  26104  54   260501% /boot
 none 1013170   1 10131691% /dev/shm
 /dev/cciss/c0d0p23989888  616728 3373160   16% /export/home
 /dev/cciss/c0d0p7 131616  20  1315961% /tmp
 /dev/cciss/c0d0p33842720  127472 37152484% /usr
 /dev/cciss/c0d0p8 131616  131616   0  100% /var
 
 Therefore I can't run any rpm nor up2date.
 
 How one can clean up some inodes? 

-- 
MS-Windows is the Pal-Kal of the PC world.
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Run out of inodes

2007-12-27 Thread Lior Kaplan
Biran, Yahav (Yahav) wrote:
 df -I show:
 [EMAIL PROTECTED] mpower]# df -i
 FilesystemInodes   IUsed   IFree IUse% Mounted on
 /dev/cciss/c0d0p6 262144   10442  2517024% /
 /dev/cciss/c0d0p1  26104  54   260501% /boot
 none 1013170   1 10131691% /dev/shm
 /dev/cciss/c0d0p23989888  616728 3373160   16% /export/home
 /dev/cciss/c0d0p7 131616  20  1315961% /tmp
 /dev/cciss/c0d0p33842720  127472 37152484% /usr
 /dev/cciss/c0d0p8 131616  131616   0  100% /var
 
 Therefore I can't run any rpm nor up2date.
 
 How one can clean up some inodes? 

The usual case is a directory which has a lot of files (usually small,
otherwise the FS will hit in size limits). An example might be empty log
files.

The best way to find problematic directory is to look for a large
directory. Don't mix between the directory size itself, and the size of
it's contents.

a small example to clarify:
$ ls -ld /tmp/inode-test/
drwxr-xr-x 2 kaplan kaplan 1024 2007-12-28 02:20 /tmp/inode-test/
$ for i in {1..5000}; do
 touch /tmp/inode-test/$i
 done
$ ls -ld /tmp/inode-test/
drwxr-xr-x 2 kaplan kaplan 60416 2007-12-28 02:29 /tmp/inode-test/

Notice the directory size, while each of the files in it is 0 in size.

From here, I'm sure you'll manage to find the large directory by yourself.

Good luck.

-- 
Lior Kaplan
[EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]