You can resize a system disk or data disk to extend its capacity. If your Linux or Windows Elastic Compute Service (ECS) instance does not support online resizing of disks, you can resize the disks of the instance offline. After you resize a disk of an instance offline, you must restart the instance for the change to take effect. The restart operation temporarily interrupts services that run on the instance. We recommend that you resize disks offline during off-peak hours.
Prerequisites
Resource | Requirement |
---|---|
Instance | The instance is in the Running or Stopped state. |
Disk |
|
Step 1: Create a snapshot
Before you resize a disk online, you must create a snapshot for the disk to back up the data stored on the disk.
Step 2: Resize the disk and start or restart the instance in the ECS console
Resize disks
Start or restart the instance in the ECS console
- If your instance is in the Running state, you must restart the instance in the ECS console. If your instance is in the Stopped state, you must start the instance in the ECS console.
- The disk resizing operation takes effect only after you start or restart the instance by using the ECS console or by calling the RebootInstance operation. If you restart the instance from within the operating system, the disk resizing operation does not take effect.
- The offline disk resizing operation takes effect only after you start or restart the instance. If you have resized a disk offline but cannot start or restart the instance due to your business requirements, you can resize the disk online again to make the offline resizing operation take effect when the instance is in the Running state. You are charged for resizing the disk online. You must resize the disk based on your business requirements. For more information, see What do I do if I have resized a disk offline but do not want to restart the instance?.
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select a region.
- Find the instance that you want to restart. Then, in the Actions column corresponding to the instance, choose .
- In the Restart dialog box, select a restart method and click OK.
What to do next
- For more information about how to resize the partitions and file systems of disks within a Linux instance, see Resize disks online for Windows instances.
- For more information about how to resize the partitions and file systems of disks within a Windows instance, see Resize the partitions and file systems of disks for Windows instances.