Updated on 2024-10-14 GMT+08:00

Changing a Storage Type

Scenarios

To improve storage performance of your RDS DB instance, you can change its storage type as needed.

Constraints

Table 1 Constraints

Phase

Constraints

Before the change

  • To change a storage type, contact customer service.
  • The storage type of an instance can be changed only when the instance is in the Available state.
  • Changing the storage type may affect storage performance, so the storage type should be changed during off-peak hours.
  • If the storage type of a read replica is different from that of its associated DB instance, the data synchronization may be affected. To change the storage type of a DB instance, change that of its read replica (if any) first to ensure that the storage type of the read replica is the same as that of the DB instance.

During the change

Changing a storage type takes several minutes or even hours, depending on the throughput, storage space, original storage type, and new storage type.

After the change

In rare cases, a storage type may fail to be changed due to a backend issue. If this happens, try again later.

The storage type can only be upgraded, not downgraded. For details, see Table 2.

Table 2 Storage types

Instance Type

Original Storage Type

Target Storage Type

  • Primary/Standby
  • HA read replica

Cloud SSD

Extreme SSD

Billing

Table 3 Billing

Billing Mode

Operation

Impact on Fees

Yearly/Monthly

Storage type change

The new storage type takes effect in the original usage period.

  • Price difference payment: If the new storage type is more expensive than the old one, you need to pay for the price difference based on the remaining period.
  • Price difference refund: If the new storage type is cheaper than the old one, Huawei Cloud will refund the price difference to you based on the remaining period.

The following prices are for reference only. The actual prices are subject to the price displayed on the console.

Suppose you purchased a one-month RDS for MySQL 8.0 primary/standby instance (instance class: general-purpose, 2 vCPUs | 4 GB; storage: cloud SSD, 40 GB) in CN-Hong Kong on August 1, 2024. The instance price was $88.69 USD per month.

On August 15, 2024, you changed the storage type to extreme SSD. The instance price became $103.67 USD per month.

Price difference = Price of the new storage type x Remaining period – Price of the original storage type x Remaining period

The remaining period is the remaining days of each calendar month divided by the maximum number of days in each calendar month.

In this example, the remaining period and price difference are calculated as follows: Remaining period = 15 (Remaining days in August)/30 (Maximum number of days in August) = 0.5. Price difference = $103.67 USD x 0.5 - $88.69 USD x 0.5 = $7.49 USD

Pay-per-use

Storage type change

The new storage type is billed by hour. For details, move your pointer over the price on the Price Calculator page to view the storage price.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, locate the target DB instance and choose More > Change Instance Class in the Operation column.

    Alternatively, click the instance name to go to the Overview page. Under Instance Class, click Configure.

  5. On the displayed page, select a new storage type and click Next.

    Figure 1 Changing a storage type

  6. Confirm the new storage type.

    • To modify your settings, click Previous.
    • For pay-per-use DB instances, click Submit.
    • For yearly/monthly DB instances, click Pay Now. The change starts only after the payment is successful.

  7. Check the result.

    Return to the Instances page. After a few minutes, click the instance name and check the new storage type on the displayed Overview page.