Solved

expanding C drive in VMware

Posted on 2010-11-15
8
557 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:locster73
8 Comments
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 34137175
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.
0
 
LVL 9

Assisted Solution

by:avilov
avilov earned 100 total points
ID: 34137314
you can expand the drive. That is actually two step process

1. increase drive size for that VM under "Virtual Machine Properties"
2. In Red hat change volume size. That will require unmounting that drive. and since that appears to be your boot drive and a root partition, you'll have to boot from external media to do that.
0
 

Author Comment

by:locster73
ID: 34137333
Avilov can you show me how i can do the second step in details. thanks
0
 
LVL 3

Assisted Solution

by:poison5151
poison5151 earned 400 total points
ID: 34137354
Please post the output of fdisk -l.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 9

Expert Comment

by:avilov
ID: 34137492
if you run LVM, you need to  extend logical volume with "lvextend" command

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

0
 
LVL 3

Expert Comment

by:poison5151
ID: 34137529
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.
0
 
LVL 9

Expert Comment

by:avilov
ID: 34137639
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
0
 
LVL 3

Accepted Solution

by:
poison5151 earned 400 total points
ID: 34144933
resize2fs can grow a mounted filesystem =). The process would be:

1. Resize partition with fdisk.
2. partprobe
3. pvresize
4. lvresize
5. resize2fs

I even tried it on my system:

Filesystem at /dev/vg/lv is mounted on /tmp/mount; on-line resizing required
Performing an on-line resize of /dev/vg/lv to 479232 (1k) blocks.
The filesystem on /dev/vg/lv is now 479232 blocks long.

Open in new window


But the point seems moot since the original poster is MIA.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Join & Write a Comment

Suggested Solutions

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now