Post

Windows 2012R2 - Extend Disk: "There is not enough space available on the disk(s) to complete this operation."

Windows 2012R2 - Extend Disk: "There is not enough space available on the disk(s) to complete this operation."

Resolving Disk Extension Issues in Windows Server 2012 R2

The Problem

When trying to extend a disk volume in Windows Server 2012 R2 after increasing the disk size in VMware, you might encounter this error message:

“There is not enough space available on the disk(s) to complete this operation.”

This can be frustrating because VMware has successfully extended the virtual disk, but Windows doesn’t recognize the additional space.

The Solution

The fix is surprisingly simple:

  1. Ensure the disk is set as “Dynamic” in Disk Manager
  2. Perform a disk rescan to make Windows detect the new space
  3. Extend the volume to use the newly available space

Step-by-Step Guide

Step 1: Check the Error

When attempting to extend the volume, you’ll see the error message:

Error when extending disk

Step 2: Rescan the Disks

In Disk Manager (diskmgmt.msc):

  1. Right-click on “Disk Management” at the top of the window
  2. Select “Rescan Disks”

Rescan disks

Step 3: Extend the Volume

After rescanning, the additional space should be visible:

  1. Right-click on the volume you want to extend
  2. Select “Extend Volume”
  3. Follow the wizard to allocate the newly available space

Disk extended to use the extra space

Additional Tips

Using PowerShell

You can also perform these operations using PowerShell:

1
2
3
4
5
6
7
8
9
# Rescan disks
Update-HostStorageCache

# Get disk information
Get-Disk

# Extend a volume (example for drive C:)
$size = (Get-PartitionSupportedSize -DriveLetter C).SizeMax
Resize-Partition -DriveLetter C -Size $size

Common Issues

If rescanning doesn’t solve the problem:

  1. Basic vs. Dynamic Disks: Ensure the disk is set as “Dynamic” if you need to extend volumes across multiple disks
  2. Partition Type: MBR partitions are limited to 2TB; consider converting to GPT for larger disks
  3. Non-Contiguous Space: The unallocated space must be adjacent to the volume you’re extending
  4. System or Boot Volumes: Some system volumes may have restrictions on extension

For VMware Virtual Machines

When extending disks for VMs:

  1. Power off the VM before extending the disk in VMware (recommended but not always required)
  2. After extending in VMware, power on the VM and perform the disk rescan
  3. Consider using VMware Tools to help with disk recognition

Conclusion

This simple disk rescan operation often resolves the “not enough space available” error when extending volumes in Windows Server 2012 R2 after increasing the underlying disk size in VMware.

This post is licensed under CC BY 4.0 by the author.