Help Center/ Cloud Operations Center/ User Guide/ Batch Resource Operations/ Batch Reinstalling Instance OSs on COC
Updated on 2026-07-09 GMT+08:00

Batch Reinstalling Instance OSs on COC

In routine cloud environment management, O&M personnel typically need to reinstall the OSs on multiple cloud instances to rectify system faults or update system versions. However, the traditional OS reinstallation requires manual operations on each instance. This is time-consuming and error-prone. To address this challenge, COC delivers the batch reinstallation function. With this function, O&M personnel can reinstall OSs on one or multiple instances individually or in batches. It speeds up OS reinstallation for multi-instance scenarios, reduces human mistakes, and boosts productivity.

An OS will be reinstalled using the same image as when the instance was created. No additional costs will be incurred.

Precautions

  • Reinstalling an OS does not affect data on data disks, but all partition data on the system disk and all snapshots created for the system disk will be deleted. Therefore, back up your data by referring to Creating a Server Backup.
  • The cloud server will be automatically restarted after the OS reinstallation, and custom settings (such as the DNS and hostname) will be reset.
  • If any instance is running, you need to stop the instance before performing this operation.
  • If all instances are stopped, you can submit the execution task.
  • If any service ticket (for example, an instance restart service ticket) is being executed on the selected instance, the current operation cannot be performed. Wait until the existing service ticket is complete and try again.

Billing

An OS will be reinstalled using the same image as when the instance was created. No additional costs will be incurred.

Constraints

Currently, only ECSs, FlexusL instances, and BMSs support batch OS reinstallation.

Batch Reinstalling OSs on Instances

COC supports unified operations on ECSs , FlexusL instances, and Bare Metal Server (BMS) instances. It allows you to reinstall an OS on one instance or multiple instances in batches.

  1. Log in to COC.
  2. In the navigation pane, choose Resource O&M > Batch Resource Operations.
  3. Access the Elastic Cloud Server (ECS) tab page, click Reinstall OSs. The page for reinstalling ECS OSs is displayed.
  4. Click Add and select the target instances.

    Table 1 Parameters for selecting an instance

    Parameter

    Description

    Example Value

    Selection Method

    Select an instance selection method.

    • Manual Selection: Manually select one or more instances based on settings of Enterprise Project, View Type, Resource Type, Region, and Target Instance.
    • Select All: Automatically select all instances based on settings of Enterprise Project, View Type, Resource Type, Region, and Target Instance.

    Manual Selection

    Enterprise Project

    Select an enterprise project from the drop-down list. You can choose All.

    All

    View Type

    Select a view type.

    • CloudCMDB resources: Select an instance by resource type.
    • CloudCMDB application groups: Select an instance by application group.

    CloudCMDB resources

    Resource Type

    The preset value is used and cannot be changed.

    ECS

    Region

    Select a region from the drop-down list.

    CN-Hong Kong

    Target Instance

    Set filter criteria in the filter box and select the displayed instances manually or automatically.

    -

  5. Set Batch Policy, Suspension Policy, Stop ECS, Timeout Interval, and Login Mode.

    Table 2 Parameter description

    Parameter

    Description

    Batch Policy

    Select Automatic, Manual, or No Batch.

    • Automatic: The selected instances on which you want to perform operations are automatically divided into multiple batches based on the default rule.
    • Manual: You can manually create multiple batches and add instances to each batch as required.
    • No Batch: All instances on which you want to perform operations are in the same batch.

    Suspension Policy

    You can set a target execution success rate. If the number of failed servers reaches the threshold derived from this success rate, the service ticket is flagged as abnormal and execution stops immediately.

    The success rate ranges from 0 to 100 with precision to one decimal point.

    Stop ECS

    Select Stop now under Stop ECS. When the service ticket starts to be executed, the instances that are not stopped will be stopped automatically.

    Timeout Interval

    Maximum time threshold for the target instance to complete the restart process after the system executes the restart command.

    The value ranges from 1 to 1800, in seconds.

    Login Mode

    A collection of identity information used to verify the user identity and log in to the target system after the OS is reinstalled.

    • Password: You can use the current ECS password or enter a new one.
    • Key pair: You can select a key pair in the Key Pair Service module.
    • Reset password: Before logging in to the ECS, reset the password.

  6. Click OK to go to the confirmation page. Click OK to start the execution.

    The service ticket details page is displayed.

  1. Log in to COC.
  2. In the navigation pane, choose Resource O&M > Batch Resource Operations.
  3. Click the FlexusL tab and click Reinstall OSs. The instance OS installation page is displayed.
  4. Click Add and select the target instances.

    Table 3 Parameters for selecting an instance

    Parameter

    Description

    Example Value

    Selection Method

    Manual selection is supported.

    Manually select an instance based on settings of Enterprise Project, View Type, Resource Type, Region, and Target Instance.

    Manual Selection

    Enterprise Project

    Select an enterprise project from the drop-down list. You can choose All.

    All

    View Type

    Select a view type.

    • CloudCMDB resources: Select an instance by resource type.
    • CloudCMDB application groups: Select an instance by application group.

    CloudCMDB resources

    Resource Type

    The preset value is used and cannot be changed.

    FlexusL

    Region

    Select a region from the drop-down list.

    CN-Hong Kong

    Target Instance

    Set filter criteria in the filter box and select the displayed instances.

    -

  5. Set Batch Policy, Suspension Policy, Stop ECS, Timeout Interval, and Login Mode.

    Table 4 Parameter description

    Parameter

    Description

    Batch Policy

    Select Automatic, Manual, or No Batch.

    • Automatic: The selected instances on which you want to perform operations are automatically divided into multiple batches based on the default rule.
    • Manual: You can manually create multiple batches and add instances to each batch as required.
    • No Batch: All instances on which you want to perform operations are in the same batch.

    Suspension Policy

    You can set a target execution success rate. If the number of failed servers reaches the threshold derived from this success rate, the service ticket is flagged as abnormal and execution stops immediately.

    The success rate ranges from 0 to 100 with precision to one decimal point.

    Stop ECS

    Select Stop now under Stop ECS. When the service ticket starts to be executed, the instances that are not stopped will be stopped automatically.

    Timeout Interval

    Maximum time threshold for the target instance to complete the restart process after the system executes the restart command.

    The value ranges from 1 to 1800, in seconds.

    Login Mode

    A collection of identity information used to verify the user identity and log in to the target system after the OS is reinstalled.

    • Password: You can use the current ECS password or enter a new one.
    • Key pair: You can select a key pair in the Key Pair Service module.
    • Reset password: Before logging in to the ECS, reset the password.

  6. Click OK to go to the confirmation page. Click OK to start the execution.

    The service ticket details page is displayed.

  1. Log in to COC.
  2. In the navigation pane, choose Resource O&M > Batch Resource Operations.
  3. Click the Bare Metal Server (BMS) tab and click > Reinstall OSs. The page for reinstalling BMS OSs is displayed.
  4. Click Add and select the target instances.

    Table 5 Parameters for selecting an instance

    Parameter

    Description

    Example Value

    Selection Method

    Manual selection is supported.

    Manually select an instance based on settings of Enterprise Project, View Type, Resource Type, Region, and Target Instance.

    Manual Selection

    Enterprise Project

    Select an enterprise project from the drop-down list. You can choose All.

    All

    View Type

    Select a view type.

    • CloudCMDB resources: Select an instance by resource type.
    • CloudCMDB application groups: Select an instance by application group.

    CloudCMDB resources

    Resource Type

    The preset value is used and cannot be changed.

    BMS

    Region

    Select a region from the drop-down list.

    CN-Hong Kong

    Target Instance

    Set filter criteria in the filter box and select the displayed instances manually or automatically.

    -

  5. Set Batch Policy, Suspension Policy, Timeout Interval, and Login Mode.

    Table 6 Parameter description

    Parameter

    Description

    Batch Policy

    Select Automatic, Manual, or No Batch.

    • Automatic: The selected instances on which you want to perform operations are automatically divided into multiple batches based on the default rule.
    • Manual: You can manually create multiple batches and add instances to each batch as required.
    • No Batch: All instances on which you want to perform operations are in the same batch.

    Suspension Policy

    You can set a target execution success rate. If the number of failed servers reaches the threshold derived from this success rate, the service ticket is flagged as abnormal and execution stops immediately.

    The success rate ranges from 0 to 100 with precision to one decimal point.

    Timeout Interval

    Maximum time threshold for the target instance to complete the restart process after the system executes the restart command.

    The value ranges from 1 to 1800, in seconds.

    Login Mode

    A collection of identity information used to verify the user identity and log in to the target system after the OS is reinstalled.

    • Password: You can use the current ECS password or enter a new one.
    • Key pair: You can select a key pair in the Key Pair Service module.

  6. Click OK to go to the confirmation page. Click OK to start the execution.

    The service ticket details page is displayed.

Viewing the Execution Records of Service Tickets for Batch OS Reinstallation

After a batch OS reinstallation operation is performed, a resource operation service ticket record is generated to record the batch resource operation result. If you want to monitor and record the execution objects and results of a batch resource operation, you can use the resource operation ticket function.

  1. Log in to COC.
  2. In the navigation pane on the left, choose Task Management > Execution Records. The task execution records page is displayed.
  3. Click Resource Operation Service Tickets.
  4. Click the ID of the service ticket you want to view. The service ticket details page is displayed.

    On the service ticket details page, you can view the service ticket execution status, such as the start time, end time, status, and execution duration.

  5. You can also perform the operations listed in the following table based on the service ticket status.

    Table 7 Operation description

    Service Ticket Status

    Operation

    Executing

    If you want to pause the next batch when the current batch is executed, click Pause in the upper right corner.

    Click Forcibly End in the upper right corner to end the resource operation service ticket.

    Paused

    Click Continue in the upper right corner to continue the resource operation service ticket.

    Click Forcibly End in the upper right corner to end the resource operation service ticket.

    Abnormal

    Click the Abnormal tab in the Execution Information area. Locate an abnormal batch and click Retry in the Operation column.

    Select an abnormal batch and click Batch Retry above the instance to re-execute all abnormal tasks in this batch.

    Click the Abnormal tab in the Execution Information area. Locate an abnormal batch and click Cancel in the Operation column.

    Select an abnormal batch and click Batch Cancel above the instance to cancel all abnormal tasks in this batch.