All Products
Search
Document Center

Simple Application Server:Upgrade plan configurations

最終更新日:Sep 29, 2024

As your business develops, the following resources of purchased simple application servers may no longer meet your business requirements: computing resources such as vCPUs and memory, storage resources such as the system disk capacity, and network resources such as the traffic quota and Internet bandwidth. You can select suitable plans to upgrade the simple application servers.

Limits

  • You can use only a plan to upgrade a simple application server. You cannot separately upgrade the system disk, memory, or bandwidth of the simple application server.

  • You can upgrade the system disk attached to a simple application server only to the same category when you upgrade a simple application server. For example, you cannot upgrade a plan with standard SSDs to use a plan with Enterprise SSDs (ESSDs) at performance level 0 (PL0).

  • If the current plan that includes standard SSDs or ESSDs is the highest specification, you cannot upgrade the plan.

    Other upgrade methods

  • You can upgrade a simple application server only by using a plan that includes higher specifications than the simple application server. After the simple application server is upgraded, you cannot downgrade the server.

Impacts of upgrades

Item

Description

System disk

If you resize the system disk when you upgrade a simple application server, you must extend the partitions and file systems on the system disk after the upgrade.

Bandwidth and traffic

  • If your simple application server consumes specific amount of Internet traffic before you upgrade the plan, the traffic usage is deducted from the monthly data transfer quota of the new plan.

    Example

    For example, before a simple application server is upgraded, the server has a data transfer quota of 400 GB and transferred 100 GB of data over the Internet in the current month. After the server is upgraded, the new plan provides a data transfer quota of 600 GB. The 100 GB of used data transfer is counted against the new quota and the balance of the data transfer quota of the server is 500 GB.

  • Specific upgrade plans do not include monthly data transfer quotas and cannot be used to offset the fees incurred by data transfers. However, if you upgrade this plan to a plan that includes a monthly data transfer quota, you are charged additional fees based on the actual data usage. For more information, see Billable items.

Business

A simple application server must be restarted to compete the upgrade. To minimize the impact of the upgrade, perform the upgrade during off-peak hours.

Others

The public and private IP addresses, operating systems, firewalls, snapshots, custom images, and expiration time of the simple application servers that you want to upgrade remain unchanged after the upgrade.

Billing

When you upgrade a simple application server, the system calculates the price difference between the source and destination plans. You must pay the price difference. The price difference that is displayed on the Upgrade/Downgrade page of the Simple Application Server console takes precedence.

Example:

For example, you purchase Plan A of USD 3.5 per month for one year at a 15 percent discount. After six months, the current specification cannot meet your requirements. You want to upgrade Plan A to Plan B of USD 4.5 per month, which provides a 12 percent discount for a half-year order. In this case, you must pay for a price difference. The price difference = (Price of Plan B - Price of Plan A) × (100% - Discount of Plan B) × Number of subscription months, or (4.5 - 3.5) × (100% - 12%) × 6 = USD 5.28.

Preparations

We recommend that you create snapshots for the disks of your simple application server to back up data before you upgrade the server. For more information, see the Create a snapshot section of the "Manage snapshots" topic.

Warning

If the upgrade fails, data may be lost. To prevent data loss, create snapshots for the disks to back up data before the upgrade. The snapshot creation requires a period of time. Wait until the snapshots are created.

Procedure

Step 1: Upgrade the plan

  1. Log on to the Simple Application Server console.

  2. On the card of a server on the Servers page, choose More > Upgrade.

    Note

    If the Upgrade button is dimmed, the plan already includes disks with the highest specifications and cannot be upgraded. For more information, see the Q2: Why is the upgrade button dimmed? section of this topic.

    image

  3. In the Precautions message, read the precautions for the server upgrade and click Go to the Upgrade page.

  4. In the Instance Plan section, select a new plan based on your business requirements.

    You can view the configuration fee in the lower-right corner of the page.

  5. In the Terms of Service section, select I have read and agree to General Terms and End User License.

    Read the General Terms and End User License and make sure that you fully understand the terms before you agree to them.

  6. Click Buy Now. On the Purchase page, check the order information and follow the on-screen instructions to complete the payment.

    Go back to the Simple Application Server console and wait for the server to restart. When the status of the server changes to Running, the server is upgraded.

(Conditionally required) Step 2: Extend the partition and file system on the system disk

If you extend the size of the system disk when you upgrade the simple application server, you must extend the partition and file system on the system disk to complete the extension of the system disk. Otherwise, skip this step.

Extend the partition and file system on the system disk of a Linux server

In this example, the original capacity of the system disk is 40 GB. After the server is upgraded, the new capacity of the system disk is 50 GB.

Note

For each simple application server, the default device name of the system disk is /dev/vda.

  1. Connect to the Linux simple application server that has been upgraded.

    For more information, see Connect to a Linux server.

  2. View information about the disks and partitions of the server.

    1. Run the following command to view the information about the disks of the server:

      sudo fdisk -lu

      Data disks are not involved in the upgrade of simple application servers. The following figure shows only information about the /dev/vda system disk on the Linux server. adad566Description of the information shown in the preceding figure:

      • Section ①: shows the new capacity of the system disk /dev/vda after the server is upgraded.

      • Section ②: The Device column indicates the partition name of the system disk. The System column indicates the partition format of the system disk. In this example, Linux indicates that the partition format is Master Boot Record (MBR). By default, the partition name of the system disk of each simple application server is /dev/vda1 and uses the MBR format.

    2. Run the following command to view information about the partitions:

      df -Th

      For each simple application server, the default file system type of the system disk partition /dev/vda1 is Ext4. The command output shown in the following figure indicates that the file system size of the system disk partition remains 40 GB that is the same as the file system size before the upgrade. To complete the extension of the system disk, extend the partition and the file system.adad56

  3. Extend the partition.

    1. Run the following command to install the growpart utility.

      The commands that are used to install the growpart utility vary based on the operating system of your simple application server.

      Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, or CentOS 7 or later

      sudo yum install -y cloud-utils-growpart

      Debian 9 or later or Ubuntu 14 or later

      1. Run the following command to update the software repository:

        sudo apt-get update
      2. Run the following command to install cloud-guest-utils:

        sudo apt-get install -y cloud-guest-utils
    2. Run the following command to extend the partition.

      Note

      Use a space to separate /dev/vda and 1 in the command. A value of 1 indicates the partition number.

      sudo growpart /dev/vda 1

      The following figure shows the sample command output. adad6If an error occurs when the command is run, manually troubleshoot the issue. For more information, see the FAQ section of the "Extend the partitions and file systems of disks on a Linux instance" topic.

  4. Extend the file system.

    The default file system type of the system disk partition /dev/vda1 is Ext4. This section describes how to extend an Ext4 file system.

    1. Run one of the following commands to extend the file system based on the file system type:

      • Ext4

        sudo resize2fs /dev/vda1
      • eXtensible File System (XFS)

        sudo xfs_growfs /dev/vda1
    2. Run the following command to check whether the file system is extended:

      df -Th

      If the file system is 50 GB in size as shown in the following figure, the file system is extended. adad566After you extend the file system, check whether the actual size of the system disk is the same as the size that you expect.

      • If the actual size of the system disk is the same as the expected value and programs on the server run as expected, the upgrade of the simple application server is complete.

      • If the actual size of the system disk is not the same as the expected value, use the snapshot to roll back the system disk. For more information, see the Roll back a disk based on a snapshot section in the "Manage snapshots" topic.

Extend the file system on the system disk of a Windows server

In this example, a simple application server that runs a Windows Server 2012 R2 64-bit operating system is used. The original capacity of the system disk (Disk C) is 40 GB. After the server is upgraded, the new capacity of the system disk (Disk C) is 60 GB.

  1. Connect to the Windows simple application server that is upgraded.

    For more information, see Connect to a Windows server.

  2. In the lower-left corner of the Windows desktop, right-click the 开始 icon and click Disk Management.

    磁盘管理

    In the Disk Management dialog box, you can view the amount of unallocated space on the system disk after the server is upgraded.未分配

  3. Right-click the blank space in the Disk 0 section and select Extend Volume...

    扩展卷

  4. In the Extend Volume Wizard dialog box, use the default settings to extend the volume.

    The new space is automatically added to the original volume, as shown in the following figure.扩容完成

    After you extend the system disk, check whether the actual size of the system disk is increased to the expected value.

    • If the actual size of the system disk is increased to the expected value, the upgrade of the simple application server is complete.

    • If the actual size of the system disk is not the same as the expected value, use the snapshot to roll back the system disk. For more information, see Roll back a disk based on a snapshot.

FAQ

Q1: Can I separately upgrade resources such as the system disk and bandwidth of a simple application server?

A1: No. A simple application server is sold as a plan. You can upgrade the server to an appropriate plan. You cannot separately upgrade the computing resources (vCPUs and memory), storage resources (system disk capacity), or network resources (traffic quota and Internet bandwidth) of the server. However, you can separately resize the data disk attached to the server. For more information, see Extend a data disk.

Q2: Why is the Upgrade button dimmed?

A2: If the current plan that includes standard SSDs or ESSDs is the highest specification plan, you cannot upgrade the plan.

Other upgrade methods

References

  • If the storage space of the system disk is insufficient, you can upgrade the disk specifications or manually attach a data disk to increase the storage capacity. For more information, see Attach a data disk.

  • You can resize a data disk if the available space of the data disk on your simple application server is insufficient to meet your business requirements. For more information, see Extend a data disk.