device-mapper: device /dev/vda2 too small for target – LVM

You can face this problem after trying to resize your logical volume partitions:

lvresize -L +2G /dev/mapper/VolGroup-lv_root
Extending logical volume lv_root to 10.07 GiB
device-mapper: resume ioctl on failed: Invalid argument
Unable to resume VolGroup-lv_root (253:0)
Problem reactivating lv_root

you can fix this booted from rescue image:

fdisk /dev/vda
d 2
n 2
old_start new_end
t 2
8e (Linux LVM)
w

then:
lvextend -l +100%FREE /dev/VolGroup/lv_root
lvmdiskscan

2 thoughts on “device-mapper: device /dev/vda2 too small for target – LVM

  1. B Fontaine

    Life saver!
    I had to destroy and recreate 2 partition with fdisk :
    The extended partition that supports the lvm partition and the lvm partition
    I had to change the starting block of extended partition in order to keep the old starting block for the lvm partition.
    I didn’t try the lvextend but a resize2fs on the faulty lvm logical volume.

    Thank you.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *