Operating System - HP-UX
1820254 Members
2631 Online
109622 Solutions
New Discussion юеВ

inode limit for file system

 
Velmurugan
Occasional Contributor

inode limit for file system

How to increase the inode limit for a particular file system. At present i have only 700 free inodes in the filesystem .
Each of social/professional status of a person has got it own pleasure and pain.
9 REPLIES 9
Andy Monks
Honored Contributor

Re: inode limit for file system

If the filesystem is jfs (vxfs) then it will increase automatically.

If it's hfs, then you can't. You will have to newfs the filesystem with different options and then recover your data.
CHRIS_ANORUO
Honored Contributor

Re: inode limit for file system

Increase the NINODE values through the kernel configuration parameters. This will cause your system to reboot.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Venu_2
Regular Advisor

Re: inode limit for file system

Hi,

I agree with Andy monks.

But ninode corresponds to the max inodes that can be opened. I dont think increasing ninode severs your purpose.

regards
venu
Rick Garland
Honored Contributor

Re: inode limit for file system

Increasing the number of free inodes is not easily done. You can try deleting and/or nulling files. I would cat > /dev/null first and then remove in case the files are open for writing.

Also depends on the types of apps you have running and the files they would write to.

You might want to newfs the partition and then restore from the backups.
John Palmer
Honored Contributor

Re: inode limit for file system

The kernel parameter 'ninode' only defines the size of the in-memory inode table. This caches the most recently used 'ninode' open inodes for efficiency, it does not limit the number of open inodes that the system can handle.
I also agree with Andy Monks but be aware that JFS (VXFS) filesystems will only dynamically increase the number of inodes if they were created (mkfs) with the default ninode=0 (or ninode= unlimited). If ninode= was used (desirable for large filesystems which will contain a small number of files) then is a hard limit. If you can't remove any old files then the only answer is to backup, mkfs and restore.
Nagaraj Dandeboyina
Occasional Advisor

Re: inode limit for file system

How to increase the inode limit for a particular file system. At present i have only 700 free inodes in the filesystem :

To increase inodes login as root,and go into SAM(System Admin tool) and select Kernal configuration,action,open item,configurable parametrs,and enter then all list will come,from that you select ninode,to change that value actions,modify configurable parameter and you define your value and build a kernal.It will ask for reboot and do that.And you check your inodes in system by typing
sar -v 3 3
Hope it can solve this problem.

-Nag
Everybody is ignorant, only on different subjects
Duane Gorder
Advisor

Re: inode limit for file system

If you are using hfs file systems and you need more inodes, you have to copy off all of your data, recreate the file system with more inodes, then restore the data. The necessary option on the "newfs" command is "-i xxxx" with the default for xxxx being 6144. The smaller the number, the more inodes that will be created. Keep in mind that if disk space is tight, the more inodes you have the less space you will have for files in the file system
Live each season as it passes; breathe the air,
carl_46
Advisor

Re: inode limit for file system

Okay stupid newbie question. What is an inode? From what I understand, every file has an inode and the inode holds information about the file, such as size and location. Is this correct? But why? What is its purpose and function?

Regards
Randy Jay
New Member

Re: inode limit for file system

In reply to seb's question, each file is associated with at least one inode. The inode contains information about the file (create dates, status etc.) and pointers to blocks on the physical storage device (within a file system). As storage referenced in the primary inode is used, additional inode blocks of pointers are assigned to the file as necessary. For the really gory details man 4 inode.