We help IT Professionals succeed at work.

Extend Non System Partition on VMWare Windows 2003 Server

677 Views
Last Modified: 2015-02-14
I have a Windows 2003 R2 Server virtual machine inside VMWare 4.1. It is the E:\ drive and I need to increase the size of it from 100GB to 200GB. I have read different items on how to do this and just not exactly sure.

I saw one article from VMWare that says you need to do the following, but this seems uneccesary to me...but I don't know. It appears to be below if you want to do this on the actual ESXi Host.  Do I need to do the following if it is just a Windows VM guest?

To expand VMDK and extend a partition:
Log into the VMware ESX/ESXi host as the root user. Verify that the virtual machine does not have any snapshots by going into the virtual machine's directory and looking for Delta files. Run the command:

#ls -lah /vmfs/volumes/datastore_name/vm_name/*delta*
-rw------- 1 root root 1.8G Oct 10 10:58 vm_name-000001-delta.vmdk

Note: For more information on logging into the ESX/ESXi, see the following:
For more information on VMware ESX Service Console, Unable to connect to an ESX host using Secure Shell (SSH) (1003807)
For more information on VMware ESXi Technical Support Mode, Tech Support Mode for Emergency Support (1003677)
For more information on VMware ESXi 4.1 and ESXi 5.0 Technical Support Mode, Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910)

If the virtual machine does have snapshots, commit them using these commands:

#vmware-cmd -l /vmfs/volumes/datastore_name/vm_name/vm_name.vmx

#vmware-cmd /vmfs/volumes/datastore_name/vm_name/vm_name.vmx removesnapshots removesnapshots() = 1

Would you please tell me how to do this and if the VM needs to be POWERED OFF or POWERED ON during any of the process.

Thanks so much!
Comment
Watch Question

MaheshArchitect
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
You can follow steps in below article to extend 2003 guest OS partition
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007266
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
the VM may not need to be powered OFF!

see my EE Article and use Dell ExtPart

HOW TO:  Resize a VMware (VMDK) Virtual Disk

Please post back if unsure.
Scott LewisInformation Security Officer

Author

Commented:
Looking at the article from VMware..... My question was, do I need to run the part
#ls -lah /vmfs/volumes/datastore_name/vm_name/*delta*
? What is that doing? I am trying to figure out why you just don't go into Edit Settings/Hard Drive/Change the size...then use Diskpart and extend the non system volume.

I have never done this before, so I am very hesitant. Sorry to sound so foolish.

hancocka....What is the difference from using diskpart and the Dell ExtPart? Do you have to change the hard disk size in vCenter prior using ExtPart? Does it matter that I am using IBM ESX boxes instead of Dell....however my storage is Equalogic.
MaheshArchitect
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
the step no. 1 is checking if you have VM snapshot taken.......
If the virtual machine has snapshot taken, 1st you need to commit them into original vmdk file in step no.2

thanks..
VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Scott LewisInformation Security Officer

Author

Commented:
hancocka...awesome.  I think I understand now. Those Linux commands are for checking and getting rid of any snapshots. If I don't have any snapshots then those commands are not necessary and I would know if I had a snapshot if when doing the Edit Settings to change the disk size in vCenter is grayed out....is this correct?

Thanks so much for all your explanation! Very much appreciate your patience.
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Thanks for your kind words, it's important that VMware Admins understand, I'm quite happy to be here, answering and posting your questions about the subject.

Yes that's correct in fact the commands show you have a snapshot they do not get rid that's another question.

I've written another article about snapshots, please feel free to read...

HOW TO: VMware Snapshots :- Be Patient
Scott LewisInformation Security Officer

Author

Commented:
If I may.....I have one question regarding the Dell ExtPart...

In the installation instructions it has:
volume - the volume to extend. e.g. f:, g:, etc (only basic volumes)
size - the size in megabytes by which to extend the volume.

So, if it is the E:\ drive in the Windows system and I want to increase by 100GB, then I would type:   extpart e: 104800

Is that correct?

Thanks again!
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
correct, it's the size you want to expand by, so that's correct.

I use

100GB x 1024 = 102400

sometimes, the rounding value, can state cannot complete, due to not enough space, so I round down.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.