RHEL 9 fails to shrink logical volume after the filesystem was already resized to desired size.
Issue
After sucessfull shrinking Ext2/3/4 filesystem the logical volume cannot be resized to the size of the filesystem and it's reporting filesystem size being bigger than the requested size. As bellow Example
[root@rhel-9-3~]# resize2fs /dev/test/lv01 2T
resize2fs 1.46.5 (30-Dec-2021)
Resizing the filesystem on /dev/test/lv01 to 536870912 (4k) blocks.
The filesystem on /dev/test/lv01 is now 536870912 (4k) blocks long.
[root@rhel-9-3~]# lvresize -L 2T /dev/test/lv01
File system ext4 found on test/lv01.
File system size (2.00 TiB) is larger than the requested size (0 ).
File system reduce is required (see resize2fs or --resizefs.)
Environment
- Red Hat Enterprise Linux 9
- Logical volume with size 2T and more after attempt to resize.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.