Results 1 to 4 of 4

Thread: Resize (shrink) harddisk

  1. #1
    Join Date
    Jan 2017
    Beans
    31

    Resize (shrink) harddisk

    I'm running Ubuntu 18.04.1 LTS on a VMware ESXi host.
    At the moment the drive I assigned to the virtual machine is 30GB.
    I want to shrink this to 20GB.

    How can I shrink the size in Ubuntu (using LVM)?

  2. #2
    Join Date
    Oct 2006
    Beans
    58,286

    Re: Resize (shrink) harddisk

    Thread moved to the "Virtualisation" forum.

  3. #3
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,739

    Re: Resize (shrink) harddisk

    There is a utility named virt-resize that will resize a virtual machine's disk. More complicated than you might think. Information:

    http://manpages.ubuntu.com/manpages/...-resize.1.html
    http://libguestfs.org/virt-resize.1.html

    I used it just once, to expand a virtual machine disk; but from the references, you can reduce them as well.
    Note: The one I expanded was in a KVM/QEMU virtual machine, and not on VMware or VirtualBox.
    Last edited by Dennis N; October 28th, 2018 at 05:18 PM.

  4. #4
    Join Date
    Jan 2017
    Beans
    31

    Re: Resize (shrink) harddisk

    Isn't there an easier way to do this?
    To be honest I think it's pretty damn hard to shrink an Ubuntu LVM disk.
    Even Windows is pretty straight forward doing this...

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
  •