I'm using vmware and want to add space to a VM without shutting down the system by simply adding space to the existing drive. How can I accomplish that?
Ubuntu – How to add space to LVM’s root partition without shutting down the VM
lvmpartitioningvirtualizationvmware
Best Answer
fdisk
orcfdisk
orparted
to create a new primary partition with type8e/lvm
(we'll call it/dev/sda3
for now)sudo partprobe /dev/sda3
sudo pvcreate /dev/sda3
sudo vgextend $VGName /dev/sda3
sudo lvextend -L+10G /dev/$VGName/root
sudo resize2fs /dev/$VGName/root
It may be easier to simply add additional drives to the VM and use them as physical volumes. That would clutter the VM storage area with more VMDKs. This solution is a bit messier in the vm.