How to resolve Filesystem Full?

I have experienced Filesystem full (%iused = 100%) as below. I have tried to remove a lot of garbage but it still become full soon.

# df -F ufs -o i
Filesystem iused ifree %iused Mount
/dev/dsk/c0t0d0s0 512000 0 100% /
/dev/dsk/c0t0d0s3 1887 382113 0% /cms
 

Other information as below:

# df -k
Filesystem   kbytes  used avail capacity Mounted on
/dev/dsk/c0t0d0s0  41309821260659 2829014 31% /
/proc  0  0  0 0% /proc
mnttab 0  0   0  0% /etc/mnttab
swap  1112048   24 1112024 1% /var/run
/dev/dsk/c0t0d0s3 3098743269774 2766995 9% /cms
swap  1112072   48 1112024 1% /tmp
# uname -a
SunOS FT44430077 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Blade-100
 
# cat /etc/release
Solaris 9 4/03 s9s_u3wos_08 SPARC
Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 25 February 2003

Something must be writing a large number of small files to be taking up all your inodes. Maybe do a search of the newest files, and see what's filling it up.

Example: This would list the files written in the last 7 days.

find / -name "*" -ctime +7

Quite the opposite. That will list all files whose ctime is older than 7 days.

Regards,
Alister

Sorry, typo ---

find / -name "*" -mtime -7

Var is in different file system or same in "/".

du -ko /|sort -n | more

it will give large files.