All Products
Search
Document Center

:Starts the newly created disk when you restart an ECS instance of the CentOS 8 operating system

Last Updated:May 29, 2023

Problem description

When the CentOS 8 instance is restarted, the new disk is started.

Cause

When you use an XFS file system on an ECS instance of the CentOS 8 operating system, you may need to use a snapshot of the system disk to mount the disk to the instance. In this case, the new disk partition (UUID) is the same as the system disk partition UUID. When the system is restarted, the newly created disk (instead of the current system disk of the host) may restart.

Solution

Note

Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.

  • If you modify the configuration and data of an instance (including but not limited to ECS and RDS), we recommend that you create snapshots or enable RDS log backup.

  • If you have authorized or submitted sensitive information such as the logon account and password in the Alibaba Cloud Management Console, we recommend that you modify such information in a timely manner.

You must change the UUID of the partition before mounting to avoid exceptions after restart. Log on to the CentOS 8 system and run the following command to change the UUID of the partition:

xfs_admin -U `uuidgen` /dev/vdb1
Note

Description /Dev/vdb1 is the partition path for creating a new disk. The partition path is subject to the actual environment.

Application scope

  • Elastic Compute Service