I expanded my mdadm RAID 5 from 5 to 6 4TB disks and grew the raid. That all worked well. After I tried to expand the ext4 filesystem in GParted, which failed because of the 16TB limit. Afther the failed try GParted showed the partition as 20TB and 19.6TB used, so shrinking the partition with gparted did not work anymore. When the partition was mounted the size was correctly displayed as 16TB, all the data was still there and accesible.
I unmounted the partition and checked it with e2fsck -fy
(no errors), shrunk it with resize2fs -M
which was successful and shrunk the partition to 14TB. I rechecked the partition again with e2fsck -fy
(no errors) and mounmted the partition again and all the data was still there and the partition size was now 14TB and 100% full...
I unmounted the partition again and started GParted. GParted still displayed the partition as 20TB and 19.6TB used.
What went wrong and how can I fix it?