41
Linux Servers Support / Re: What are Inodes and how to increase them?
« Last post by sumit1203 on December 19, 2012, 10:10:41 AM »If you are keeping huge number of small files in your disks, this may one day cause running out of available inodes because of which even though you might have sufficient disk space, file system cannot create new files. Lets see how it works in my 1GB disk partition.
The parameter “-i” allows us to play with the number of inodes we can have in a partition. It is called “bytes-per-inode”. The bigger it is less number of inodes you will have. I have set a relatively big size “163840″ bytes per inode and the result is I have 6768 inodes. What this means indeed is I can’t create more than 6768 file.
In order to increase the number of inodes, format the partition again and specify the size.
#mkfs.ext3 -i 163840 /dev/sdb1
In order to check,use the command:
#df -i
The parameter “-i” allows us to play with the number of inodes we can have in a partition. It is called “bytes-per-inode”. The bigger it is less number of inodes you will have. I have set a relatively big size “163840″ bytes per inode and the result is I have 6768 inodes. What this means indeed is I can’t create more than 6768 file.
In order to increase the number of inodes, format the partition again and specify the size.
#mkfs.ext3 -i 163840 /dev/sdb1
In order to check,use the command:
#df -i

Recent Posts