Expand inode available space in a Linux system

1Check if the file system that needs to be expanded is of XFS formatdf -hT

2The command df -i is used to view inode information

File system, inode available space, inode used space, free space, inode used%, mount point

3.The command xfs_info <mount_point> is used to view detailed information about an XFS volume.

The term imaxpct represents the percentage of space available for inode allocation, with 25% of space reserved by default for inode allocation.

Note: For file systems under 1TB, the default value is 25%; for file systems under 50TB, it is 5%; and for file systems over 50TB, it is 1%.

4.Use the command: xfs_growfs -m % <mount_point> to change the inode space percentage.

Note: -m [maxpct]: Specifies the new value for the maximum percentage of space in the file system that can be allocated for inodes.

5.Finally, check the expanded Inode space by using the command df -i.

Additionally, if the partition is in ext4 format, for non-system partitions, the size can be manually specified during formatting.

The partition needs to be unmounted before executing the following command.

mkfs.ext4 -i 8192 /dev/sda5

Note: 8192 represents 8K per inode, the default is 16K per inode.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

CentOS 7.x Firewall: Enable/Disable and Add Ports

  In CentOS 7.x, the default firewall is firewalld. Here is an example using CentOS 7.6...

How to enable/disable ping on Linux system

To prevent others from discovering and potentially attacking your machine through network ping...

How to View Memory Usage and Clear Cache in Linux System

Sometimes, when a server becomes unresponsive, it may not necessarily be due to high CPU usage....

How to remotely access a Linux system using Putty tool

Introduction to Putty software PuTTY is a Telnet, SSH, rlogin, raw TCP, and serial interface...

Linux System RuiSu Installation Tutorial

Note: The prerequisite for installing RuiSu is to ensure that the network card is in the "eth"...