Modifying Individual ECS Specifications
Scenarios
If ECS specifications do not meet service requirements, you can modify the ECS specifications, including vCPUs and memory. Certain ECSs allow you to change their types when you modify their specifications.
- Before changing a Xen ECS to a KVM ECS, you need to manually install the required drivers on the ECS first, or the ECS will be unavailable after the modification is complete. For example, starting the OS will fail. The following section describes how to change a Xen ECS to a KVM ECS. For Linux, you are recommended to use a script to automatically change a Xen ECS to a KVM ECS.
- ECSs can be classified as the following based on the virtualization types:
- Xen ECSs: S1, C1, C2, and M1 ECSs.
- KVM ECSs: See the Virtualization column in ECS Specifications.
Notes
- The ECS needs to be stopped during the the specification modification, so you are advised to perform this operation during off-peak hours.
- During the specification modification, do not perform any operation on the ECS, such as stopping or restarting the ECS. Otherwise, the modification will fail.
- When modifying the specifications of an ECS, sold-out vCPU and memory resources are unavailable for selection.
- Downgrading ECS specifications (vCPU or memory) will reduce performance.
- Certain ECS types do not support specifications modification currently. For details about available ECS types and functions, see ECS Types. For details about restrictions on using different types of ECSs, see their notes.
- When the disk status is Expanding, you are not allowed to modify the specifications of the ECS where the disk is attached.
- Before modifying the specifications of a Windows ECS, modify the SAN policy by following the instructions provided in Why Does a Disk Attached to a Windows ECS Go Offline? to prevent disks from going offline after the specifications are modified.
- For yearly/monthly ECSs that use paid images, the instance specifications cannot be downgraded. This means you cannot change the specifications to lower-cost ones.
Pricing
Modifying specifications will lead to pricing changes. For details, see Pricing of a Changed Specification.
Preparations
After ECS specifications are modified, NIC flapping may occur. Before modifying the specifications, perform the following operations:
NIC flapping occurs because NIC retaining is enabled in the image from which the ECS is created.
For more information about NIC flapping, see What Should I Do If NIC Flapping Occurs After My ECS Specifications Are Modified?
- Linux
Run the following commands on the ECS to delete the files with persistent and net included in their names in the network rule directory:
rm -fr /etc/udev/rules.d/*net*persistent*.rules
rm -fr /etc/udev/rules.d/*persistent*net*.rules
- Windows
Delete the following directories in the registry on the ECS:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\Unmanaged
Figure 1 Registry
Step 1: Modify Specifications
- Log in to the management console.
- Click in the upper left corner and select your region and project.
- Click . Under Compute, click Elastic Cloud Server.
- Choose More > Modify Specifications in the Operation column.
The Modify ECS Specifications page is displayed.
- Select the new ECS type, vCPUs, and memory as prompted.
Before modifying the specifications, stop the ECS or select Authorize ECS auto-stop (The ECS will be automatically stopped when specifications are being modified).
Figure 2 Modifying specifications
- Click Next.
- Confirm the settings, read and select the disclaimer, and then click Submit Application.
- Check whether the specifications have been modified.
After modifying the specifications, you can check whether the specifications have been modified in Failures.
- Check whether Failures is displayed on the management console. For details, see Viewing Failed Tasks.
- If yes, go to step 8.b.
- If no, the specifications have been modified.
- Click Failures. Then, in the Failures dialog box, click Operation Failures and check whether the task is contained in the list by Name/ID, Operated At, or Task.
- If yes, the specifications modification failed. See Follow-up Procedure for failure causes.
- If no, the specifications have been modified.
- Check whether Failures is displayed on the management console. For details, see Viewing Failed Tasks.
Step 2: Check Disk Attachment
After specifications are modified, disk attachment may fail. Therefore, check disk attachment after specifications modification. If disks are properly attached, the specifications modification is successful.
- Windows ECS
For details, see Why Do the Disks of a Windows ECS Go Offline After I Modify the ECS Specifications?
- Linux ECS
For details, see Why Does the Disk Attachment of a Linux ECS Fail After I Modify the ECS Specifications?
Follow-up Procedure
Perform the following operations in the event of a specifications modification failure:
- Log in to the management console.
- Under Management & Governance, choose Cloud Trace Service.
- In the navigation pane on the left, choose Trace List.
- In the Trace Name column, locate the resizeServer event by resource ID.
The resource ID is the ID of the ECS on which the specifications modification failed.
- Click View Trace in the Operation column to view the failure cause.
If the fault cannot be rectified based on logs, contact customer service.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot