Cannot start Azure VM after resizing OS Disk

Filippo Zanetti 0 Reputation points
2024-12-20T15:11:29.95+00:00

Hi to all,

I resized a OS Disk to my VM WSRV2016 from 127GB to 200GB, when it was in unallocated state.

After that, my VM cannot longer starts.

The error starting VM is:

Failed to start virtual machine 'VM_NAME*'. Error: Disk size reduction is not supported. Current size is 214748365312 bytes, requested size is 136365212160 bytes.

Can you help me?

Thanks in advance

Filippo

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,167 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Robina 260 Reputation points
    2024-12-20T15:30:04.5266667+00:00

    The issue you’re facing is due to an unsupported disk size reduction attempt. Virtual machine disks typically cannot be resized to a smaller capacity once they have been allocated.

    Suggested Solutions:

    Restore the Original Disk Size: If you accidentally tried to reduce the disk size, revert the disk to its original size of 214748365312 bytes. Check your platform's disk management options for resizing or undoing changes.

    Create a New Disk:

    • Create a new virtual disk with the desired smaller size (136365212160 bytes).
    • Migrate your data from the old disk to the new disk using tools like dd or platform-specific migration utilities. Restore from Backup (If Available):
    • If you have a backup of the VM or disk, restore it to a new disk with the desired size.
      • Attach the restored disk to your VM.
      Platform-Specific Recommendations:
      • For Azure: Use disk snapshots or images to create a new disk with the desired size.

    Why Disk Reduction Fails:

    Reducing a disk size may lead to data loss or corruption because it involves altering the structure of the disk. Most virtualization platforms explicitly prevent this for safety reasons.


  2. Filippo Zanetti 0 Reputation points
    2024-12-20T23:16:14.63+00:00

    Hi Robina,

    because this VM is in production, I called Azure Support.

    Applying this command, the VM was restarted:

    az vm update -n "VM_NAME" -g "RG_NAME"

    Thanks for your support!

    Filippo

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.