Solved

expanding C drive in VMware

Posted on 2010-11-15
8
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vSphere VM Sysprepped + deleted a snapshot 3 102
vmware workstation slow 39 190
cheap host service for my VMWare guest server 3 102
How to change ESXi 6.5 NIC E1000 to vmxnet3 9 75
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

742 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