Updated on 2025-01-08 GMT+08:00

Batch Reinstalling OSs of FlexusL Instances

Scenarios

Huawei Cloud Operations Center (COC) allows you to reinstall the OSs of multiple FlexusL instances in batches on the COC console.

Notes

  • After the OSs are reinstalled, the IP addresses of the cloud servers remain unchanged.
  • Reinstalling the OSs clears the data in all partitions, including the system partition, of the system disk. Back up data before reinstalling the OSs.
  • Reinstalling the OSs does not affect data disks.
  • Do not perform any operations on a cloud server immediately after its OS is reinstalled. Wait for several minutes until the system successfully injects the password, or the injection may fail, and the server cannot be logged in to.
  • The servers will automatically restart after the OSs are reinstalled, and only custom settings (such as the DNS) will be reset.

Billing

OS reinstallation is free because the original image will be used.

Preparations

Before reinstalling OSs, make the following preparations:

  1. Prepare the COC FullAccess permissions.
    • If you are using a Huawei Cloud account, it has the COC FullAccess permissions by default. You can skip this step.
    • If you are an IAM user, a message is displayed, indicating that you do not have the required permissions. The account administrator needs to grant you the COC FullAccess permissions by doing the following:
      1. Grant a user group the COC FullAccess permissions. For details, see Creating a User Group and Assigning Permissions.
      2. Add the IAM user to the group. For details, see Adding Users to a User Group.
  2. Apply for the COC open beta testing (OBT).

    COC is in the OBT phase. After you are granted the COC FullAccess permissions, apply for the COC OBT.

  3. Synchronize FlexusL instance resources on the COC console.

    If you log in to the COC console for the first time, manually synchronize FlexusL instance resources. For details, see Synchronizing Resources.

    Figure 1 Synchronizing FlexusL instance resources

Procedure

  1. Log in to the FlexusL console, enable Batch operation, and click Batch Reinstalling OSs.

    If a message is displayed indicating that you do not have the required permissions or need to apply for the OBT, perform the operations described in Preparations first.

  2. On the displayed page, configure parameters required for batch OS reinstallation.
    Figure 2 Batch reinstalling OSs

    Parameter

    Description

    Target Instance

    • Selection Mode: Manual selection (only this option supported)
    • Enterprise Project: All
    • Resource Type: fixed to FlexusL, indicating that OSs are batch reinstalled for FlexusL instances
    • Region: Select the region where FlexusL instances are located. The instances must be in the same region. Batch OS reinstallation is not available for FlexusL instances in different regions.
    • Target Instance: Select the FlexusL instances whose OSs are to be reinstalled.

      If some FlexusL instances are missing in the list, synchronize resources first.

    Batch Policy

    Select a batch policy based on your requirements.

    • Automatic: The selected FlexusL instances are automatically divided into multiple batches based on the preset rule.
    • Manual: You can manually create multiple batches and add FlexusL instances to each batch as required.
    • No batch: All selected FlexusL instances will be executed in the same batch.
    NOTE:
    • If you select Automatic or Manual and multiple batches of OS reinstallation tasks are generated, the process will be suspended after each batch of tasks is executed. You need to manually continue the next batch. For details, see Related Operations.
    • If there are services running on your FlexusL instances, the No batch policy may affect your services. You are advised to select the automatic or manual batch policy.

    Suspension Policy

    Determine the policy for suspending a task. You can set the success rate of OS reinstallation. When the success rate is lower than the specified value, the task status becomes abnormal and the task is suspended. The value is from 0 to 100 and can be accurate to one decimal place.

    Success rate = (Number of FlexusL instances whose OSs are successfully reinstalled/Total number of FlexusL instances) x 100%

    Stop ECS

    This option is displayed when there are FlexusL instances in Running state. Select Stop now.

    Login Mode

    • Password: Set a unified password for logging in to FlexusL instances whose OSs are to be installed.
    • Reset password: Reset the password by performing Resetting the Password for a FlexusL Instance when logging in to the FlexusL instances for the first time.
    NOTE:

    Currently, FlexusL instances do not support password pairs.

  3. Click Submit. Confirm the information and click OK to start the OS reinstallation.

    After the OS is reinstalled, the cloud server will automatically restart. When the server status is Running, the OS reinstallation is complete.

    After the request is submitted, the system generates a service ticket and you will be automatically redirected to the page in Figure 3. You can also view the service ticket details later.

Related Operations

If you select Automatic or Manual and multiple batches of OS reinstallation tasks are generated, the process will be suspended after each batch of tasks is executed. Perform the following operations to manually continue the next batch of tasks:

  1. Log in to the COC console.
  2. Choose Task Management > Execution Records. On the Resource Operation Tickets tab, click the target service ticket ID.

  3. In the service ticket details on the displayed page, click Continue.
    Figure 3 Service ticket details