This topic describes how to extend a Windows file system. Resizing a cloud disk does not extend the file system; it only extends the storage capacity. Therefore, you need to format the new storage capacity after you resize a cloud disk.

Limits

The information contained in this topic applies only to disks that are in use and are attached to Running instances. For information on how to attach, partition, or format disks that are in the Available state, see Attach a cloud disk and Partition and format a data disk.

Preparations

  1. Use the ECS console or call the API to resize the cloud disk.
  2. Create a snapshot to back up your data.
  3. Attach the cloud disk to the instance and make sure that the instance is in the Running state. For information about the connection methods, see Overview.
  4. Format and partition the data disk. For more information, see Partition and format a data disk.

Extend the system disk partition

After you resize a system disk in the ECS console, you need to connect to the instance to extend the file system of the corresponding system disk partition. In this example, the operating system is Windows Server 2008 R2 Enterprise Edition 64-bit and the system disk is resized from 50 GiB to 72 GiB.

  1. Connect to the Windows instance.
  2. Open Server Manager.
  3. In the left-side navigation pane, choose Storage > Disk Management.
  4. Choose Action > Refresh or Action > Rescan Disks.

  5. In the Disk Management area, view the unallocated capacity. In this example, Disk 0 is the resized system disk.

  6. Right-click the blank space in the Disk 0 area, and then select Extend Volume.
  7. Follow the instructions provided by the Extend Volume Wizard to extend the volume.
    The new disk space is automatically added to the original volume.

Extend a data disk partition

After you resize a data disk in the ECS console, you need to connect to the instance to extend the file system of the corresponding data disk partitions. In this example, the operating system is Windows Server 2008 R2 Enterprise Edition 64-bit and the data disk is resized from 20 GiB to 30 GiB.

  1. Connect to the Windows instance.
  2. Open Server Manager.
  3. In the left-side navigation pane, choose Storage > Disk Management.
  4. Choose Action > Refresh or Action > Rescan Disks.

  5. In the Disk Management area, view the unallocated capacity. In this example, Disk 1 is the resized data disk.

  6. Extend Disk 1.
    • To use the new disk space to extend the existing partition, follow these steps:
      1. Right-click the blank space in the Disk 1 area, and then select Extend Volume.

      2. Follow the instructions provided by the Extend Volume Wizard to extend the volume.
        The new disk space is automatically added to the original volume.

    • To use the new disk space to add a new partition, follow these steps:
      1. Right-click the bank space in the Disk 1 area, and then select New Simple Volume.

      2. Follow the instructions provided by the New Simple Volume Wizard to extend the volume.
        The new disk space is added to a new partition.