/var: out of inodes

Dear Forum,

Please help me i have SUNW,Sun-Fire-V240 with sun solaris 8,if i check inode in /var like below:

# df -F ufs -o i
Filesystem             iused   ifree  %iused  Mounted on
/dev/md/dsk/d0         62354  310638    17%   /
/dev/md/dsk/d3        372992       0   100%   /var
/dev/md/dsk/d6             4   57020     0%   /globaldevices
/dev/md/dsk/d5          6151  619513     1%   /FERMAtmp
/dev/md/dsk/d4         46838 6799370     1%   /export/home

Please help me to solve my case.....

Go into var/tmp and start getting rid of temp files. See what is going on in /var/log.
You have to manage some of the directories in /var the same way you do with user directories, by rolling off old files.

inodes are created when you format the disk/partition. So, for example, if /var/tmp is loaded with temp files, consider adding a new disk with lots of free files (inodes), then mount it on /var/tmp.

You can also try growfs to increase the size of the current mounted filesystem. See growfs, and the -i option of newfs.

1 Like

thx,if I check /var/tmp and /var/log

[319] $ cd /var/tmp
[320] $ ls -ltr
total 0
$ cd ../log
[322] $ ls -ltr
total 50036
-rw-r--r--   1 root     other        264 Jun 25  2004 sysidconfig.log
-rw-r--r--   1 root     other    4071993 Mar  1  2009 syslog.5
-rw-r--r--   1 root     other    4071884 Mar  8  2009 syslog.4
-rw-r--r--   1 root     other    2902452 Mar 15  2009 syslog.3
-rw-r--r--   1 root     other    14508483 Oct  4  2009 syslog.0
-rw-r--r--   1 root     other        116 Aug 20 20:22 snmpd.log

Must I add new disk and mount it to /var?