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

How to switch to a different repository for CentOS 8 EOL

 CentOS 8 reached its end of life at the end of 2021. When using yum repositories for...

To change the network interface name in CentOS 7.x

一.modify GRUB 1.Edit the GRUB configuration file by running the command: `vi...

To modify the hostname on CentOS

Method One:   1.Open a terminal or SSH into the Linux system. 2.Log in to the system with...

An incorrect configuration in the /etc/fstab file on the Linux system is causing login issues

Encountering communication issues with the machine, I checked the system error messages through...

How to use the atop monitoring tool in Linux

Atop is a monitoring tool used to monitor resources and processes in Linux systems. It...