If you want to re-install the applications or operating system of a simple application server and re-initialize the server, you can reset the server. You can reset the operating system or replace the image to reset a simple application server.

Background information

Note
  • After you reset a simple application server, the disk data on the server, and the snapshots and custom images that are created based on the server are deleted. Back up your data before you reset your simple application server.
  • After you reset the server, the monitoring operations that are performed on the server may fail. You can use one of the following methods to install the CloudMonitor agent on the server:
You can use one of the following methods to reset a simple application server:
  • Reset the operating system. You can re-install the operating system without the need to replace the image.
  • Replace the image. You can replace the image on the simple application server by using another Alibaba Cloud image or a custom image that you created.

Limits

  • If a simple application server was created from a custom image that contains data of a data disk, the server cannot be reset.
  • If your simple application server resides in a region outside the Chinese mainland, you cannot switch the operating system of the server between Windows and Linux. You cannot use a Windows image to reset a Linux simple application server. Similarly, you cannot use a Linux image to reset a Windows simple application server. You can switch the operating system of simple application servers only between Windows operating systems or between Linux distributions.
  • If you reset a simple application server by replacing the existing image with a custom image,
    • The custom image must reside in the same region as the current server.
    • The custom image cannot be created from the current server. If you want to recover the data on the server, you can use a snapshot that is created from the server to roll back the disks.
    • The following limits apply to the disks on the simple application server:
      • If the custom image contains a system disk and data disks, but the simple application server is not attached with a data disk but attached only with a system disk, you cannot use the custom image to reset the simple application server.
      • If the system disk size of the custom image is greater than the system disk size of the simple application server, you cannot directly use the custom image to reset the simple application server.

        When the system disk size of the simple application server is greater than or equal to the system disk size of the custom image, you can use the custom image to reset the simple application server. To increase the system disk size of the server, you can upgrade the simple application server. For more information, see Upgrade a simple application server.

      • If the data disk size of the custom image is greater than the data disk size of the simple application server, you cannot use the custom image to reset the simple application server.

Procedure

  1. Log on to the Simple Application Server console.
  2. In the left-side navigation pane, click Servers.
  3. Click the card of the simple application server that you want to reset to go to the Overview page.
  4. In the left-side navigation pane, choose Server Maintenance > Reset.
    Server resetting
  5. Reset the simple application server.
    Use one of the following methods to reset the server:
    • In the Reset the current system section, click Confirm Reset.
    • In the Change to other images section, perform the following operations:
      1. Select a new image.

        You can select an Application Image or a System Image provided by Alibaba Cloud, or select a Custom Image that you created.

      2. Click Confirm Change.
    Note For each method, a message appears, indicating that the reset operation will delete the disk data on the server and the snapshots that are created from the server. Confirm the information and click OK.
    Go back to the Servers page. When the status of the server changes from Resetting to Running, the server is reset. If you fail to reset the simple application server, we recommend that you read the Limits section in this topic to check whether the requirements for resetting the simple application server are met.
    • If the requirements are met, we recommend that you Submit a ticket.
    • If the requirements are not met, the simple application server cannot be reset.