You can extend storage space on an existing volume to a new disk by creating a spanned volume.

After you increase the size of an EBS volume, use the Windows Disk Management utility or PowerShell to extend the disk size to the new size of the volume. You can begin resizing the file system as soon as the volume enters the optimizing state. For more information about this utility, see Extend a basic volume on the Microsoft Docs website.

For more information about extending a file system on Linux, see Extend a Linux file system after resizing a volume in the Amazon EC2 User Guide for Linux Instances.

Contents

  • Extend a Windows file system using the Disk Management utility
  • Extend a Windows file system using PowerShell

Extend a Windows file system using the Disk Management utility

Use the following procedure to extend a Windows file system using Disk Management.

To extend a file system using Disk Management

  1. Before extending a file system that contains valuable data, it is a best practice to create a snapshot of the volume that contains it in case you need to roll back your changes. For more information, see Create Amazon EBS snapshots.

  2. Log in to your Windows instance using Remote Desktop.

  3. In the Run dialog, enter diskmgmt.msc and press Enter. The Disk Management utility opens.

    You can extend storage space on an existing volume to a new disk by creating a spanned volume.

  4. On the Disk Management menu, choose Action, Rescan Disks.

  5. Open the context (right-click) menu for the expanded drive and choose Extend Volume.

    Extend Volume might be disabled (grayed out) if:

    • The unallocated space is not adjacent to the drive. The unallocated space must be adjacent to the right side of the drive you want to extend.

    • The volume uses the Master Boot Record (MBR) partition style and it is already 2TB in size. Volumes that use MBR cannot exceed 2TB in size.

    You can extend storage space on an existing volume to a new disk by creating a spanned volume.

  6. In the Extend Volume wizard, choose Next. For Select the amount of space in MB, enter the number of megabytes by which to extend the volume. Generally, you specify the maximum available space. The highlighted text under Selected is the amount of space that is added, not the final size the volume will have. Complete the wizard.

    You can extend storage space on an existing volume to a new disk by creating a spanned volume.

  7. If you increase the size of an NVMe volume on an instance that does not have the AWS NVMe driver, you must reboot the instance to enable Windows to see the new volume size. For more information about installing the AWS NVMe driver, see AWS NVMe drivers for Windows instances.

Extend a Windows file system using PowerShell

Use the following procedure to extend a Windows file system using PowerShell.

To extend a file system using PowerShell

  1. Before extending a file system that contains valuable data, it is a best practice to create a snapshot of the volume that contains it in case you need to roll back your changes. For more information, see Create Amazon EBS snapshots.

  2. Log in to your Windows instance using Remote Desktop.

  3. Run PowerShell as an administrator.

  4. Run the Get-Partition command. PowerShell returns the corresponding partition number for each partition, the drive letter, offset, size, and type. Note the drive letter of the partition to extend.

  5. Run the following command to rescan the disk.

    "rescan" | diskpart
  6. Run the following command, using the drive letter you noted in step 4 in place of . PowerShell returns the minimum and maximum size of the partition allowed, in bytes.

    Get-PartitionSupportedSize -DriveLetter
  7. To extend the partition to a specified amount, run the following command, entering the new size of the volume in place of . You can enter the size in KB, MB, and GB; for example, 50GB.

    Resize-Partition -DriveLetter -Size

    To extend the partition to the maximum available size, run the following command.

    Resize-Partition -DriveLetter -Size $(Get-PartitionSupportedSize -DriveLetter ).SizeMax

    The following PowerShell commands show the complete command and response flow for extending a file system to a specific size.

    You can extend storage space on an existing volume to a new disk by creating a spanned volume.

    The following PowerShell commands show the complete command and response flow for extending a file system to the maximum available size.

    You can extend storage space on an existing volume to a new disk by creating a spanned volume.

Can you extend a spanned volume?

Spanned Volumes A spanned volume consists of disk space from more than one physical disk. You can add more space to a spanned volume by extending it at any time.

How do I extend the volume of an existing drive?

To extend a volume by using Disk Management After Computer Management opens, go to Storage > Disk Management. Select and hold (or right-click) the volume that you want to extend, and then select Extend Volume.

How increase spanned volume in disk space?

Open a command prompt as an administrator and type diskpart..
At the DISKPART prompt, type list volume. ... .
At the DISKPART prompt, type select volume . ... .
At the DISKPART prompt, type list disk. ... .
At the DISKPART prompt, type extend [size=] [disk=]..

What is a new spanned volume?

A spanned volume combines areas of unallocated space from multiple disks into one logical volume, allowing you to more efficiently use all of the space and all the drive letters on a multiple-disk system. A striped volume is created by combining areas of free space on two or more disks into one logical volume.