Tuesday, March 30, 2010

UFS : Out of inodes on metadevice(Solaris)

UFS : Out of inodes on metadevice(Solaris)

dmesg says "out of inodes"
root@server# dmesg
..
uid 0 on /: out of inodes
uid 0 on /: out of inodes
uid 0 on /: out of inodes
uid 0 on /: out of inodes
uid 0 on /: out of inodes
uid 0 on /: out of inodes
uid 0 on /: out of inodes
uid 0 on /: out of inodes


    inodes are used for file entries.  Each file/directory uses an inode.
When you run out of inodes, you can't create any more files, no matter
how much space you have left.


"df -i" will show inode usage.

root@server# fstyp /dev/dsk/c0t0s0
ufs
root@server# df -o i /
Filesystem iused ifree %iused Mounted on
/dev/dsk/c0t0s0 1258550 0 100% /



The only way to free up inodes is to delete some files/directories.
You must have a lot of files or directories somewhere to be using up
all your inodes when you have 50% of the disk left. Once you find
out where all the files are, you can delete some, or possible tar
them up so they only take up a single inode.

For more information: http://www.porcupine.org/forensics/forensic-discovery/chapter3.html

No comments: