On this filesystem, there are enough inodes already, I only need more filesystem size:
# df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/spinning-backup 4293918720 56250724 4237667996 2% /srv/backup In fact, if I try to resize, it fails because the number of inodes would be too many:
EXT4-fs warning (device dm-0): ext4_resize_fs:2061: resize would cause inodes_count overflow EXT4-fs warning (device dm-0): ext4_group_extend:1870: can't shrink FS - resize aborted OK, I do not need more inodes, so, how can I resize without adding even more inodes?
More details about the failing command: (the above warnings are from dmesg)
# resize2fs -p /dev/mapper/spinning-backup resize2fs 1.47.0 (5-Feb-2023) Filesystem at /dev/mapper/spinning-backup is mounted on /srv/backup; on-line resizing required old_desc_blocks = 5760, new_desc_blocks = 7040 resize2fs: Invalid argument While checking for on-line resizing support More details about the file system:
# tune2fs -l /dev/mapper/spinning-backup Filesystem features: has_journal ext_attr dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum Filesystem flags: signed_directory_hash Default mount options: user_xattr acl Filesystem state: clean Filesystem OS type: Linux Inode count: 4293918720 Block count: 12079595520 Reserved block count: 0 Overhead clusters: 269519130 Free blocks: 3090624005 Free inodes: 4236049566 First block: 0 Block size: 4096 Fragment size: 4096 Group descriptor size: 64 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 11648 Inode blocks per group: 728 RAID stride: 128 RAID stripe width: 1024 Flex block group size: 16 First inode: 11 Inode size: 256 Additional info: The underlying (LVM) volume already has more Terabytes, I just want the filesystem to grow to that new size.