The inode node records important information such as the file type, size, permission, owner, number of file connections, Creation Time, and update time, another important thing is to point to the data block pointer.
In general, no special configuration is required. If there are many files to store, you need to configure them. Sometimes the disk space is available but files cannot be stored, probably because the number of inode nodes is not enough.
View the inode quantity:
df -iFilesystem Inodes IUsed IFree IUse% Mounted on/dev/sda2 3276800 49969 3226831 2% /tmpfs 100000 4535 95465 5% /dev/shm/dev/sda1 32768 39 32729 1% /boot/dev/sda5 14467072 77478 14389594 1% /data1/dev/sdb1 18276352 65447 18210905 1% /data2
You can see the total number of inodes in each partition, which are used and idle.
To adjust the number of inode nodes, perform the following steps:
1. Detach a File System
Umount/data0
2. Create a file system and specify the number of inode nodes
Mkfs. ext3/dev/sda6-N 18276352
3. Modify the fstab file
Vi/etc/fstab
/Dev/sda6/data0 ext3 defaults 1 2
4. Mount the File System
Mount-
4. View the modified inode Parameters
Dumpe2fs-h/dev/sda6 | grep node
[Note] adjusting the inode number will format the disk. Before executing the operation, make sure that there is no important data on the disk or back up the data first.