All Products
Search
Document Center

Simple Application Server:Reset a simple application server

Last Updated:Mar 27, 2025

To reinstall applications or the operating system on a simple application server, or to completely reinitialize the simple application server, you can reset the server. You can reset a simple application server by replacing the current system or image.

Prerequisites

The simple application server is in the Running or Stopped state.

Impact description

Item

Description

System disk

After you reset a simple application server, the system disk data on the server is deleted. Back up your data before you reset your server.

Data disk

Resetting a simple application server does not change or lose data in the data disk, but you need to take note of the following items:

  • Replace the current system

    • For a Linux simple application server, the automatic mounting information configured for the data disk is lost. You must remount file systems.

    • For a Windows simple application server, you do not need to perform additional operations on the data disk.

  • Replace the image

    • If you replace a Windows image with another Windows image, only the system disk of the original simple application server is changed and the data disk of the original simple application server is not impacted.

    • If you replace a Linux image with another Linux image, the system disk of the original simple application server is changed and the data disk of the original simple application server must be remounted.

    • If you replace a Windows image with a Linux image or replace a Linux image with a Windows image, the system disk of the original simple application server is changed and the data disk of the original simple application server must be recognized by using a special software or re-initialized because the format of the file system cannot be recognized by the new operating system. For more information, see How to use the data disk of the original simple application server after a Windows image is replaced with a Linux image or a Linux image is replaced with a Windows image?

    Important

    If you reset a simple application server by replacing its image with a custom image that contains a data disk, make sure that no business dependency exists between the original system disk and the data disk or no issues occur when an operation is performed from the new system disk to the new data disk. For example, if the original system disk reads data from and writes data to the data disk, exceptions may occur when the new system disk reads data from and writes data to the new data disk.

Monitoring

After you reset the server, the monitoring operations on the server may fail. You can use one of the following methods to install the CloudMonitor agent on the server:

Logon credentials

  • If you have bound a key to the original simple application server, the key is automatically unbound during the resetting of the server. You must re-bind the key after the server is reset. For more information, see Bind a key pair to a simple application server.

Snapshot

Snapshots that are created before the resetting are retained but cannot be used to roll back the disk.

Limits

  • You cannot reset simple application servers that were created based on custom images that contain data of data disks.

  • You cannot switch the operating systems of simple application servers deployed outside the Chinese mainland between Windows Server and Linux. You cannot use a Windows Server image to reset a Linux simple application server. You also cannot use a Linux image to reset a Windows Server simple application server. You can switch the operating systems of simple application servers only between Windows Server operating systems or between Linux distributions.

  • If you reset a simple application server by using a custom image, the following limits apply:

    • The custom image must reside in the same region as the current server.

    • You cannot select a custom image that contains data of data disks.

    • You cannot select a custom image that is created based on the current server.

      If you want to restore the original data after you reset a simple application server, you can use a custom image that was created before you reset the server to create a new 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.

      Only if 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 your simple application server, you can upgrade the server. For more information, see Upgrade a simple application server.

Procedure

  1. Log on to the Simple Application Server console.

  2. In the left-side navigation pane, click Servers.

  3. In the card of the server that you want to reset, choose More > Server Resetting.

    Note

    You can also click the server ID in the server card to go to the Server Overview tab. On the Server Overview page, click Server Resetting in the upper-right corner or click Server Resetting below Image Information in the Basic Information section.

    image

  4. Reset the simple application server.

    Use one of the following methods to reset the server based on your business requirements:

    Replace the current system

    You can reset a simple application server by replacing its operating system.

    Parameter

    Description

    Select a server resetting mode

    Select Reset Current System.

    Advanced Configuration

    Select whether to set a password for the simple application server in the Logon Credential section.

    • Custom Password: Enter a password and confirm it.

    • Configure after Resetting: Set a password for the server after the resetting operation is complete. This option is selected by default.

      Important
      • If you have bound a key to the original simple application server, the key is automatically unbound during the resetting of the server. You must re-bind the key after the server is reset. For more information, see Bind a key pair to a simple application server.

    Replace the image

    You can replace the existing image on the simple application server by using another Alibaba Cloud application image, Alibaba Cloud OS image, or a custom image. This effectively replaces the operating system.

    Parameter

    Description

    Select a server resetting mode

    Select Replace with Another Image and then select an image on the Application Images, OS Images, or Custom Images tab.

    Advanced Configuration

    Select whether to set a password for the simple application server in the Logon Credential section.

    • Custom Password: Enter a password and confirm it.

    • Configure after Resetting: Set a password for the server after the resetting operation is complete. This option is selected by default.

      Important
      • If you have bound a key to the original simple application server, the key is automatically unbound during the resetting of the server. You must re-bind the key after the server is reset. For more information, see Bind a key pair to a simple application server.

  5. Click Confirm Resetting.

  6. In the message that appears, read the tips and then 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 to obtain technical support.

    • If the requirements are not met, the simple application server cannot be reset.

What to do next

  • You must redeploy environments on the simple application server that has the new operating system to run services. For example, you may need to install software, install the Advanced Packaging Tool (APT) or Yellowdog Updater Modified (YUM) repository, or configure environment variables.

  • After you reset a simple application server, the original system disk is released and all data stored on the system disk is deleted. You can use a snapshot of the original system disk to create a pay-as-you-go disk, and then attach the pay-as-you-go disk to the simple application server to restore data. After you restore the data, we recommend that you release the pay-as-you-go disk at the earliest opportunity. For more information. see Use a snapshot of the original system disk to restore data after the operating system of an ECS instance is replaced.

  • After you replace the operating system of a simple application server between Windows and Linux families, you can perform the following operations to reuse the data disk of the simple application server:

    • After you replace the Linux operating system of a simple application server with a Windows operating system, the Windows operating system cannot recognize Ext3, Ext4, or XFS file systems on the data disk of the simple application server. To resolve the preceding issue, we recommend that you perform one of the following operations on the data disk:

      • If the data disk does not contain important data, re-initialize the data disk and format the data disk into a file system that can be recognized by the Windows operating system. For more information, see Re-initialize a data disk and Initialize a data disk on a Windows instance.

      • If the data disk contains important data, install software (such as Ext2Read and Ext2Fsd) that allows the Windows operating system to recognize Ext3, Ext4, or XFS file systems.

    • After you replace the Windows operating system of a simple application server with a Linux operating system, the Linux operating system cannot recognize the New Technology File System (NTFS) file system on the data disk of the simple application server. To resolve the preceding issue, we recommend that you perform one of the following operations on the data disk:

      • If the data disk does not contain important data, re-initialize the data disk and format the data disk into a file system that can be recognized by the Linux operating system. For more information, see Re-initialize a data disk and Initialize a data disk on a Linux instance.

      • If the data disk contains important data, install software (such as ntfsprogs) that allows the Linux operating system to recognize the NTFS file system.

        If you use ntfsprogs, run the following commands in sequence to allow the Linux operating system to access the NTFS file system:

        yum -y install ntfs-3g
        mount -t ntfs-3g <Partition name of the data disk> <Mount directory>
        Note

        Replace <Partition name of the data disk> and <Mount directory> with the actual name of the data disk partition and the mount directory of data disk.

        For more information, see How do I move an NTFS disk between a Linux instance and a Windows instance?