Extend partition of Ubuntu VM running on VMware

Hi All

We have an Ubuntu VM running on a VMware ESXi host, the VM has 2 Virtual Hard drives, first I guess is for the OS, 2nd of which is for the data, its the data disk that I have been asked to extend, sadly I know more about brain surgery than I do Linux so I'm hoping someone can help me here,

In windows I would just extend the VMDK size in the settings of the VM and then in Windows disk manager right click and extend the volume, is there a similar way of doing it in Linux?

Many Thanks,
LVL 5
ncomperAsked:
Who is Participating?
 
dipopoConnect With a Mentor Commented:
Increase the disk size in VMware and then use Lvextend very straight forward.

lvextend -L12G /dev/myvg/homevol [-L"new size"]

http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
0
 
Seth SimmonsSr. Systems AdministratorCommented:
the previous comment is referring to logical volumes though you didn't mention the partition layout.  are you using logical volumes?  if you're not sure, please post the output of df -h
0
 
ncomperAuthor Commented:
Thanks
0
All Courses

From novice to tech pro — start learning today.