1829625 Members
2037 Online
109992 Solutions
New Discussion

Inode

 
SOLVED
Go to solution
Shahul
Esteemed Contributor

Inode

Hi

What is maximum number of inode can have in a vxfs file system. Any formula for this? If I do bdf -i for a vxfs file system, I am getting % of inode used.. What is this exactly?

TIA
Shahul
9 REPLIES 9
PIYUSH D. PATEL
Honored Contributor
Solution

Re: Inode

Hi,

JFS/Vxfs dynamically allocates inodes, so there is no internal restriction
on the number of inodes. The only restriction is disk space.

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.

A JFS inode takes up 256 bytes. HFS inodes have restrictions.

Piyush
James R. Ferguson
Acclaimed Contributor

Re: Inode

Hi:

With VxFS filesystems, there is no limit on the number of inodes. The more disk space the more inodes.

Regards!

...JRF...
PIYUSH D. PATEL
Honored Contributor

Re: Inode

Hi,

bdf -i will show the available inodes on all filesystems but only has meaning for HFS (vxfs is dynamic, cdfs is meaningless as it can't be changed). You will run out of inodes on an HFS filesystem (but have plenty of space for new files) if you have thousands, perhaps millions of small files.

Piyush
Shahul
Esteemed Contributor

Re: Inode


Hi Piyush

Thanks for the reply.
If there is no restriction, then what is that % U are getting from bdf -i? And if it goes to 100% U would not be able to creat files.. Means something is there...Right?

TIA
Shahul
John Carr_2
Honored Contributor

Re: Inode

Hi

I dont think there is a limit its all to do with how much space you have on the disk. Its dynamic in vxfs so no need to worry about.

cheers
John.
PIYUSH D. PATEL
Honored Contributor

Re: Inode

Hi,

In vxfs inode numbers are unlimited by default. Inodes in vxfs are created as long as there are free blocks of disk available. See the man page for 'mkfs_vxfs' for more information.

Piyush

Tim D Fulford
Honored Contributor

Re: Inode

There is a kernel parametr called ninode == Max number of open i-nodes if that is what you are refereing to

Tim
-
Peter Kloetgen
Esteemed Contributor

Re: Inode

Hi Shahul,

you don't have to take care at all of the number of inodes in a vxfs file system. As allready mentioned, the file system generates inodes as needed. This is a difference to hfs file systems, in which you have to increase the size of the file system if no more inodes are available.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Martin Johnson
Honored Contributor

Re: Inode

The "bdf -i" shows the % used of the currently allocated inodes. When you exceed the threshold (I'm not sure what the percentage is) the OS will allocate a chunk of inodes.

HTH
Marty