1836876 Members
1976 Online
110110 Solutions
New Discussion

Re: /opt: out of inodes

 
Ronald Tyon
New Member

/opt: out of inodes

Hi,
The following was collected from "df" command output at my box. But "/opt: out of inodes" kept appear in "/var/adm/messages" file even though there were >5000 inodes available for "/opt" directory. If any one have any answer to that question, I really appriciated.

.
.
.
/opt (/dev/vg01/lvol2 ): 5767034 blocks 5084 i-nodes
.
.


Ron.
UNIX Forever
5 REPLIES 5
eran maor
Honored Contributor

Re: /opt: out of inodes

Hi

i agree that it is very starnge , could be that the command df is not giving the rigth answer .

if you have this problem the /opt is a hfs file system ( JFS file system doesnt have this problem because the inode is dynm. )

i will advise you to delete some files from the /opt ( even if the df is giving you the result of 5000 - this is not good ) .

or to convert the filesystem to JFS or to recreate the /opt with more inodes .
love computers
Sridhar Bhaskarla
Honored Contributor

Re: /opt: out of inodes

Hi Ron,

Try with df -i and see how it is looking.
It could be that it is 100% though you have some free inodes left. This case is true for only hfs.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Wodisch
Honored Contributor

Re: /opt: out of inodes

Hello Ronald,

you can always unmount the file-system (you may have to boot single-user mode to do this) and increase its LV and then use "extendfs" to add another Cylindergroup and hence more inodes...

Just my $0.02,
Wodisch
Frank Slootweg
Honored Contributor

Re: /opt: out of inodes

Is /opt a JFS/vxfs filesystem? ("fstyp /dev/vg??/lvol?") If so, This Should Not Happen (tm)!

Note "Should", not "Can". I.e. one could have made the filesystem with a fixed number of inodes (see "ninode=n" in mkfs_vxfs(1M)) and then, as far as I know, this can happen.
Joseph A Benaiah_1
Regular Advisor

Re: /opt: out of inodes

Ronald,

One of the other things I would also recommend is to run the following find command:

find /opt -xdev -type f -size 0 -exec ls -ld {} \;

If there are a large amount of 0 byte files created by an application, removing them will help.

Regards,

Joseph.