KVM VPS disk space does not correspond to allocated disk space after VPS creation in SolusVM

Have more questions? Submit a request

Applicable to:

  • SolusVM

Symptoms

KVM VPS disk space does not correspond to allocated amount after VPS creation in SolusVM.

Cause

  • The following error is produced when trying to deploy a VPS partition using virt-resize utility:

    # virt-resize -d --resize-force /dev/sda2=2048M --expand /dev/sda1 /home/solusvm/kvm/template/linux-debian-9-x86_64-minimal-latest.gz /dev/solusvm/kvm101_img
    <...>
    virt-resize: error: libguestfs error: resize2fs: e2fsck 1.42.9
    (28-Dec-2013)
    /dev/sda1 has unsupported feature(s): metadata_csum
    e2fsck: Get a newer version of e2fsck!

e2fsprogs version earlier than 1.43 does not support metadata_csum feature.

Resolution

Update e2fsprogs using the below steps:

  1. Connect to KVM node via SSH

  2. Install onapp repository:

    # wget http://cdn.rpm.repo.onapp.com/repo/OnApp-hosters.repo -O /etc/yum.repos.d/OnApp-hosters.repo

  3. Remove the current package ignoring dependencies:

    # rpm -e --nodeps e2fsprogs

  4. Install the package back(it will be installed from the repo installed in step 1):

    # yum install e2fsprogs

  5. Make sure the package has newer version:

    # rpm -qa e2fsprogs
    e2fsprogs-1.43.4-2.el7.onapp.x86_64

  6. Remove onapp repository:

    # rm -f /etc/yum.repos.d/OnApp-hosters.repo

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.