resized LVM smaller and not VM wont boot

Discussion in 'Server Operation' started by Heeter, Nov 17, 2019.

  1. Heeter

    Heeter Member

    Hi all,

    This is for a Ubuntu18.0.3 with KVM. I have a VM Ubuntu18 running on it.

    I resized the LVM from 150 to 50 using the "lvreduce" command but I forgot to resize the ext4. Then I rebooted.

    So now I got this:

    [​IMG]

    Can someone assist me on getting this up and running again please?

    Regards
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    When making disk smaller, the order should be first shrink the file system, then reduce the disk partition size. If it it done in the reverse order, I do not know if the mess can be repaired.
    Of course you took backups before embarking on adventurous disk resizing escapades, so you can safely try if shrinking the EXT4 filesystem and running fsck repairs you system so it can boot.
     

Share This Page