Avatar of locster73
locster73
 asked on

expanding C drive in VMware

I am running RHLinux for a VM on my vmware. the c drive is running out of disk space. Can someone please show me if i can expand the C drive. THanks in advance.
VMware

Avatar of undefined
Last Comment
poison5151

8/22/2022 - Mon
Darius Ghassem

You can expand the drive but I don't know if you can expand the partition within Red Hat. For an example, for a Windows machine within VM you can expand your C: drive but the expanded space would be unallocated space the expanded space does not add space to your current Windows Partition since this is not managed by VMware but instead the OS.
SOLUTION
avilov

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
locster73

ASKER
Avilov can you show me how i can do the second step in details. thanks
SOLUTION
poison5151

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
avilov

if you run LVM, you need to  extend logical volume with "lvextend" command

check filesystem first with "e2fsck" command,
and than run "Resize2fs"

This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
poison5151

avilov, he'll need to resize the physical partition and then the physical volume first, then resize the desired logical volume, and only then resize the filesystem. None of these steps require a reboot, let alone booting from external media.
avilov

i didn't say reboot, i said umount  and if that is a  root partition he'll need to boot from external media. if that is incorrect please provide an instruction on how to unmount running root partition on live server
ASKER CERTIFIED SOLUTION
poison5151

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.