Updated on 2024-11-27 GMT+08:00

Reinstalling the OS

Scenarios

If the OS of an ECS fails to start or requires optimization, reinstall the OS.

Notes

  • After the OS is reinstalled, the IP and MAC addresses of the ECS remain unchanged.
  • Reinstalling the OS clears the data in all partitions of the EVS system disk, including the system partition. Therefore, back up data before reinstalling the OS.
  • Reinstalling the OS does not affect data disks.
  • Do not perform any operations on the ECS immediately after its OS is reinstalled. Wait for several minutes until the system successfully injects the password. Otherwise, the injection may fail, and the ECS cannot be logged in to.

Constraints

  • The EVS disk quotas must be greater than 0.
  • If the target ECS is created using a private image, ensure that the private image is available.
  • H2 ECSs do not support OS reinstallation.

Prerequisites

  • The target ECS has a system disk attached.

Procedure

  1. Log in to the management console.
  2. Under Computing, choose Elastic Cloud Server.
  3. Locate the row containing the target ECS and choose More > Manage Image/Disk > Reinstall OS in the Operation column.

    Before reinstalling the OS, stop the ECS first or select Automatically stop the ECSs and reinstall their OSs in the Reinstall OS dialog box.

  4. Select the login mode.
  5. Click OK.
  6. In the ECS OS Reinstallation dialog box, confirm the settings, and click OK.
    After the request is submitted, the status Reinstalling is displayed. When this status disappears, the reinstallation is complete.

    During the reinstallation process, a temporary ECS is created. After the reinstallation is complete, this ECS will be automatically deleted. Do not perform any operation on the temporary ECS during the reinstallation process.

Follow-up Procedure

If the reinstallation fails, perform steps 2 to 6 again to retry the OS installation.

If the second reinstallation attempt is unsuccessful, contact the administrator for manual recovery.