I got an error about e2fsck version. In my case the issue happened in Centos7, when I try to expand the disk of my VM in Cloudmin.
1 |
qemu-img resize fedora-new.qcow2 +20G |
You will hit an error with your e2fsck version. You will need to download the latest source binary of e2fsprogs from your OS distributor and install it.
[ 17.0] Resizing (using virt-resize) to expand the disk to 8.0G
virt-resize: error: libguestfs error: resize2fs: e2fsck 1.42.9
(24-Dec-2024)
/dev/sda1 has unsupported feature(s): metadata_csum
e2fsck: Get a newer version of e2fsck!
Install newer version of e2fsck in CentOS 7
To install it from on CentOS 7. You will also need to install libguestfs-xfs
on CentOS 7 to handle XFS file system with virt-builder
utility. Otherwise you will hit below error. Get a newer version of e2fsck for virt-resize
1 2 3 4 5 6 7 |
sudo wget https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.47.0/ sudo tar -xf e2fsprogs-1.47.0.tar.xz sudo cd e2fsprogs-1.47.0 sudo ./configure sudo make sudo make install sudo yum -y install libguestfs-xfs |