Reset a simple application server to reinstall its OS or applications. You can keep the current system or replace it with a different image.
Resetting deletes all data on the system disk. Back up your data before you proceed.
Prerequisites
The server must be in the Running or Stopped state.
Potential impacts
|
Resource |
Impact |
|
System disk |
All data is deleted. |
|
Data disk |
Data is preserved. You may need to remount or reconfigure the disk depending on the reset method. Data disk behavior. |
|
Snapshots |
Retained, but cannot roll the disk back to its pre-reset state. |
|
Key pair |
Unbound during the reset. Attach a key pair after the reset. |
|
Monitoring |
CloudMonitor may stop working. Reinstall the agent by connecting to the server or using Command Assistant. |
Data disk behavior by reset method
|
Reset method |
OS change |
Action required |
|
Reset current system |
Linux |
Remount the data disk manually. Automatic mount configurations are lost. |
|
Reset current system |
Windows |
None. |
|
Replace image (same OS family) |
Linux to Linux |
Remount the data disk. |
|
Replace image (same OS family) |
Windows to Windows |
None. |
|
Replace image (cross-OS) |
Linux to Windows or vice versa |
The new OS cannot recognize the data disk file system. Install compatibility software or re-initialize the disk (erases all data). Handle cross-OS data disk compatibility. |
If you reset with a custom image containing a data disk, ensure no business dependency exists between the original system disk and the data disk. Operations from the new system disk on the data disk may cause exceptions.
Limitations
-
Servers created from a custom image that includes a data disk snapshot cannot be reset.
-
For servers in regions outside the Chinese mainland, switching between Windows and Linux is not supported. Reset only within the same OS family.
-
When resetting with a custom image:
-
The image must be in the same region as the server.
-
Images that contain a data disk snapshot cannot be used.
-
Images created from the current server cannot be used.
-
The image system disk size must not exceed the server system disk size. If it does, upgrade the server configurations first.
-
To restore data after a reset, use a custom image created before the reset to create a new server.
Procedure
-
Log on to the Simple Application Server console.
-
In the left-side navigation pane, click Servers.
-
Find the target server and choose .
NoteYou can also click the server ID, then click Server Resetting in the upper-right corner or below Image Information in Basic Information.

-
Select a resetting mode.
Reset the current system
Reinstall the current operating system without changing the image.
Parameter
Description
Select a server resetting mode
Select Reset Current System.
Advanced Configuration > Logon Credential
Custom Password: Enter and confirm a password. Key Pair: Select an existing key pair. Configure after Resetting (default): Set a password after the reset completes.
Replace the image
Replace the current image with an application image, OS image, or custom image.
Parameter
Description
Select a server resetting mode
Select Replace with Another Image, then choose an image from the Application Images, OS Images, or Custom Images tab.
Advanced Configuration > Logon Credential
Custom Password: Enter and confirm a password. Key Pair: Select an existing key pair. Configure after Resetting (default): Set a password after the reset completes.
ImportantIf a key pair was bound to the server, it is automatically unbound during the reset. Attach a key pair after the reset.
-
Click Confirm Resetting.
-
Read the confirmation message and click OK.
The server status changes from Resetting to Running when the reset completes. If the reset fails, check the Limitations section. If the requirements are not met, the server cannot be reset. If all requirements are met, submit a ticket for technical support.
Next steps
Redeploy the environment
The server runs a clean OS after the reset. Reinstall software, configure package repositories, and set environment variables.
Recover system disk data
The original system disk is released and all data is deleted. To recover data, create a pay-as-you-go disk from a snapshot and attach it to the server. Release the disk promptly to avoid charges. Use a snapshot of the original system disk to restore data after the system disk of an ECS instance is replaced.
Handle cross-OS data disk compatibility
When you switch between Windows and Linux, the new OS cannot read the data disk file system.
Linux to Windows:
Windows cannot recognize Ext3, Ext4, or XFS file systems on the data disk.
-
No important data on the disk: Re-initialize and format for Windows. Re-initialize a data disk. Initialize a data disk on a Windows instance.
-
Important data on the disk: Install Ext2Read or Ext2Fsd to read Ext3, Ext4, or XFS file systems on Windows.
Windows to Linux:
Linux cannot recognize NTFS file systems on the data disk.
-
No important data on the disk: Re-initialize and format for Linux. Re-initialize a data disk. Initialize a data disk (Linux).
-
Important data on the disk: Install ntfsprogs to read the NTFS file system on Linux:
yum -y install ntfs-3g mount -t ntfs-3g <Partition name of the data disk> <Mount directory>NoteReplace
<Partition name of the data disk>and<Mount directory>with your actual values.
For more information, see How do I move an NTFS disk between a Linux instance and a Windows instance?