Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: resized LVM smaller and not VM wont boot

  1. #1
    Join Date
    Oct 2004
    Beans
    359
    Distro
    Ubuntu 18.04 Bionic Beaver

    resized LVM smaller and not VM wont boot

    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 afterwards. Then I rebooted.

    So now I got this:

    https://i.postimg.cc/NFqjhJkq/Screen...6-16-54-14.png

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

    Regards
    Last edited by ajgreeny; 3 Weeks Ago at 08:03 PM. Reason: Slow loading large image linked.

  2. #2
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    14,225
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: resized LVM smaller and not VM wont boot

    When resizing you should resize the filesystem FIRST, and then resize the partition (or the LV).

    When extending you first extend the partition/LV and then the filesystem after.

    If you have the option to attach an ISO to the VM and boot from it, try booting with the ubuntu 18.04 iso and go into rescue mode. Try to extend the LV to 150GB again so that you go back to how it was before.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  3. #3
    Join Date
    Oct 2004
    Beans
    359
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: resized LVM smaller and not VM wont boot

    I have is a "Live" iso. went to ubuntu website to download different version, but all available for 18.0.4 is live versions. there is no rescue mode in the live iso.

  4. #4
    Join Date
    Oct 2004
    Beans
    359
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: resized LVM smaller and not VM wont boot

    Is there anything else I can do?

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: resized LVM smaller and not VM wont boot

    Code:
    lvreduce -r
    a very helpful option.

  6. #6
    Join Date
    Oct 2004
    Beans
    359
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: resized LVM smaller and not VM wont boot

    Quote Originally Posted by TheFu View Post
    Code:
    lvreduce -r
    a very helpful option.
    Normally that is helpful, but not in this case, I can't get into the OS.

    Regards

  7. #7
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    14,225
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: resized LVM smaller and not VM wont boot

    I don't know what exactly do you mean with "live" iso. The -live-server- or the desktop iso that has Try Ubuntu live mode. It all got confused when they released this "additional type" of server image and I hate it!!!

    Anyway, you have the standard -server- iso here: http://cdimage.ubuntu.com/releases/18.04.3/release/

    And you can also use the Desktop iso by booting into Try Ubuntu and then working in terminal. You don't need to mount anything from the OS, just to activate the LVM and extend the LV you need. NOTE how I said ACTIVATE, not creating new LVM over the old one!!!

    PS. Basically you could even use the System Rescue CD, anything that allows you quick boot into live terminal with LVM tools available, will do the job. http://www.system-rescue-cd.org/
    Last edited by darkod; 3 Weeks Ago at 09:25 AM.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: resized LVM smaller and not VM wont boot

    Quote Originally Posted by Heeter View Post
    Normally that is helpful, but not in this case, I can't get into the OS.

    Regards
    Actually, it isn't helpful NOW. It would have resized the file system at the same time for ext4 file systems.

  9. #9
    Join Date
    Oct 2004
    Beans
    359
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: resized LVM smaller and not VM wont boot

    Thank you for that, Thefu

    I do appreciate it, didn't know about that command actually.

    This is still very new to me. Please bear with me.

    Had to walk away from this last night as I was just overwhelmed with this LVM stuff.

    And the saving a server install is really new to me as well.

    Regards

  10. #10
    Join Date
    Oct 2004
    Beans
    359
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: resized LVM smaller and not VM wont boot

    Quote Originally Posted by darkod View Post
    I don't know what exactly do you mean with "live" iso. The -live-server- or the desktop iso that has Try Ubuntu live mode. It all got confused when they released this "additional type" of server image and I hate it!!!

    Anyway, you have the standard -server- iso here: http://cdimage.ubuntu.com/releases/18.04.3/release/

    And you can also use the Desktop iso by booting into Try Ubuntu and then working in terminal. You don't need to mount anything from the OS, just to activate the LVM and extend the LV you need. NOTE how I said ACTIVATE, not creating new LVM over the old one!!!

    PS. Basically you could even use the System Rescue CD, anything that allows you quick boot into live terminal with LVM tools available, will do the job. http://www.system-rescue-cd.org/
    Thanks a million for the explanation, everytime I booted from the server-live iso that I have, it keeps telling me that there is no rescue mode in the iso. Thanks for the link to the regular install iso.

    I am going to try the systemrescue iso right now. Please wish me luck. will report back immediately.

    Regards

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •