Biran, Yahav (Yahav) wrote:
> df -I show:
> [EMAIL PROTECTED] mpower]# df -i
> Filesystem            Inodes   IUsed   IFree IUse% Mounted on
> /dev/cciss/c0d0p6     262144   10442  251702    4% /
> /dev/cciss/c0d0p1      26104      54   26050    1% /boot
> none                 1013170       1 1013169    1% /dev/shm
> /dev/cciss/c0d0p2    3989888  616728 3373160   16% /export/home
> /dev/cciss/c0d0p7     131616      20  131596    1% /tmp
> /dev/cciss/c0d0p3    3842720  127472 3715248    4% /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]

Reply via email to