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)?
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)?
Thread moved to the "Virtualisation" forum.
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.
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