Expanding System Drive of a running W2K3 VM using EXTPART

At some point in time a VM will run low on disk space and you’ll need to add more space to it. For VMs running Windows server 2008 this isn’t an issue but anything older, well , you had to use tools such as DiskPart to get the job done. Let’s say the system drive was running low, for W2K3 servers, this was a little bit harder to expand because you needed to shutdown the VM. Depending on what you were running on that VM getting that shutdown approval could take an act of congress to pass. Expanding the system drive on a running W2K3 VM is not impossible though, for I have the solution that could solve those woes.

A few years ago when my company was just getting started on our virtualization infrastructure (VMware of course) I became familiar with a nice little tool that would expand drives on the fly for VM’s running W2K3 or older. This was pretty important considering over 80% of our servers at the time were still on W2K3. What’s this magical tool that can save us admins from having to shutdown a VM because the users hoarded all the space?

Dell’s EXTPART. I will tell you that there is no guarantees with this and use at your risk. Since I’m a daring person , well honestly, just don’t want to go asking to shutdown the server, I’ve used this tool. I have used it quite often too. I’m still alive, the servers survived, and half the time they didn’t even know they were low on space because I proactively fixed the problem.

Now, this isn’t the magical tool that fixes everything because it does have some caveats. For instance, you can only expand system drives on while running if the VM was not P2V’d. If the VM’s were built from scratch or from a template this tool works great but if your VM was P2V’d you need to reboot into safe mode to expand the system drive. Expanding non system drives while running is perfectly fine on P2V’d VMs using EXTPART.

To use this EXTPART do the following:

  1. To use EXTPART to expand a drive you will first need to download the tool and save it to a location on the VM. The tool can be found here
  2. In vSphere, go to the settings of your VM and increase the Hard disk that you want to expand. If it’s the system drive then most likely you will want Hard disk1.
  3. EXTPART_1

  4. Now go to your VM, open a Command Prompt and navigate to the directory where you saved the download.
  5. Once you are in the file directory of EXTPART, run the extpart.exe file
  6. You will be prompted to type in the Volume or Drive that you want to expand, type in C:
  7. After putting the volume it will display the details of the drive, such as volume and partition size, and ask how much you want to expand the drive. At this point enter in the size (MB) that you want to expand the drive by. This is the amt you are increasing the drive with not the total size of the drive.
  8. EXTPART_2

  9. Once complete press enter and the size of the increased volume will be displayed.
  10. If this fails with an error that “the disk is not accessible” then most likely the VM was P2V’d and you will need to reboot the VM into safe mode. Once booted into safe mode start at step 3 again.

So there you have it, an expanded drive on a running W2K3 VM. No time downtime and you look like a hero for expanding the drive. #WINWIN

10 comments

  1. Thanks for this. Helped me solve a long-standing problem on a client’s system. Why-oh-why does Dell ship servers with such a tiny microscopic C drive?

  2. My issue is win2k3 server is reporting wrong space. In Disk Manager and explorer it shows disk capacity as 239.81gb(original system before conversion) but graphic shows correct space 1000GB. Any ideas? Expart shows same info 239 for volume, 1000gb for partition

  3. Hello,

    Thanks for your post
    I want to know if it’s working with another material constructor like HP, or only Dell machine.
    Thanks in advance

Comments are closed.