Solved

expanding C drive in VMware

Posted on 2010-11-15
8
560 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 3

Assisted Solution

by:poison5151
poison5151 earned 400 total points
ID: 34137354
Please post the output of fdisk -l.
0
 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to setup DFS and is my plan for deployment correct? 3 66
I cannot Import a vmdk file into a new VM host 3 53
VMWARE 13 64
ESXi 4.1.0 host unreachable every morning 1 46
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…

772 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