General Operations for Modifying 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, manually install desired drivers on the ECS. Otherwise, the ECS will be unavailable after the modification. For example, starting the OS may 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.
- For instructions about how to modify the specifications of other ECSs, for example, between KVM ECSs, see this section.
- Xen ECSs include S1, C1, C2, and M1 ECSs.
- To obtain KVM ECSs, see the Virtualization Type column in ECS Specifications.
- Before changing a Xen ECS to a KVM ECS, install the desired driver on the ECS. Otherwise, the ECS will be unavailable after the modification is performed. For example, starting the OS will fail.
- When changing Xen to KVM for a Linux ECS, follow the instructions provided in Automatically Changing a Xen ECS to a KVM ECS (Linux).
Notes
- When modifying the specifications of an ECS, you are not allowed to select sold-out CPU and memory resources.
- If ECS specifications are downgraded, the ECS performance is deteriorated.
- Certain ECSs do not support specifications modification currently. For details about available ECS types as well as their functions and usage, see "Notes" in ECS Types.
- 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 What Should I Do If a Disk Is Offline? to prevent offline disks after the specifications are modified.
Fees Description
Modifying specifications will lead to fee changes. For details, see Pricing of a Changed Specification.
Preparations
After ECS specifications are modified, NIC flapping may occur. To prevent NIC flapping from affecting dependency configurations, perform the following operations before modifying the specifications:
- 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 the desired region and project. - Under Computing, click Elastic Cloud Server.
- Click More in the Operation column and select Modify Specifications.
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 Automatically stop the ECSs and then modify specifications.
Figure 2 Modifying specifications
- (Optional) Set DeH.
If the ECS is created on a DeH, the system allows you to change the DeH.
To do so, select the target DeH from the drop-down list. If no DeH is available in the drop-down list, remaining DeH resources are insufficient and cannot be used to create the ECS with specifications modified.
- Click Next.
- Confirm the modified configuration. Read and select the service agreement, and then click Submit.
- 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 Failures.
- If yes, go to step 9.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 Failures.
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.
Follow-up Procedure
Perform the following operations in the event of a specifications modification failure:
- Log in to the management console.
- Under Management & Deployment, click 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.
Last Article: Modifying ECS vCPU and Memory Specifications
Next Article: Changing a Xen ECS to a KVM ECS (Windows)
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.