Updated on 2023-05-29 GMT+08:00

Migrating Application Servers to HUAWEI CLOUD

You can migrate SAP application servers to HUAWEI CLOUD using either of the following methods:

Method 1: Using SMS is recommended. If VMs are at the source end, you can use Method 2: Importing Images.

Method 1: Using SMS

If you use SMS for migration, the systems at the source end and target end are basically the same. For details about the changes, see What Are the Differences Between Target ECSs and Source Servers After the Migration?.

The following uses an SAP HANA database server as an example to describe the migration procedure.

  1. Back up the source-end data and software.
  2. Obtain the AK/SK of the account to which the target server belongs.

  3. Install the migration Agent on the source server. For details, see How Can I Install the Migration Agent on Source Servers?. Enter the AK/SK obtained in 2 when they are required by SMS-Agent.
  4. After the migration Agent is started successfully, it automatically collects information about the source server and sends collected information to SMS. SMS automatically checks whether the source server information is valid and whether the source server can be migrated. After the migration Agent uploads source server information to SMS, you can log in to the HUAWEI CLOUD management console at any time to view information about the source server using the HUAWEI CLOUD account of the target server. For details, see Viewing Check Results.
  5. Start the migration task. For details, see Creating and Starting a Migration Task.

    • Ensure that source servers are on during the migration.
    • When you migrate the database, stop the database before the last time synchronization and then migrate it offline.

  6. After the migration task is complete, log in to the target server using the source server login mode. Check whether the basic functions are normal, including the network and storage.
  7. Modify the basic OS settings of the target server to adapt to HUAWEI CLOUD.

    1. Modify the DNS and NTP configurations. For details, see How Can I Configure the NTP and DNS Servers for an ECS?.
    2. (Optional) Install and configure Cloud-Init. For details, see Installing Cloud-Init and Configuring Cloud-Init.

      For more about Cloud-Init, see Cloud-init.

    3. (Optional) Install the HUAWEI CLOUD one-click password reset plug-in. For details, see (Optional) Installing the One-Click Password Reset Plug-in.
    4. Modify the host name and the hosts file as required. For details, see Changing Host Name.
    5. Install Data Provider.

      Data Provider is the SAP metric collector on HUAWEI CLOUD. For details about how to install and configure Data Provider, see Data Provider for SAP User Guide.

    6. Restart the server and check whether other OS errors occur.

  8. Check whether the SAP HANA database can start properly.

    1. Switch to user {$SID}ADM and run the HDB start command to start the database.
    2. Run the sapcontrol -nr 00 -function GetProcessList command to query the status of all SAP HANA processes. The command output shows that all SAP HANA processes are in the GREEN state.

    3. Use SAP HANA Studio to connect to the SAP HANA database and check whether the connection is successful and whether all processes are in the normal state.

  9. (Optional) After a migration task is complete, you can use SMS to synchronize the incremental data from the source servers to the target servers as needed. For details about how to perform the incremental synchronization, see Synchronizing Data After a Migration Task Is Complete.

    After the incremental synchronization, the status of the target server becomes consistent with the source server. Perform 6 to 8 after the synchronization is complete.

  10. Connect the application with the database to test whether the system is functional.

Method 2: Importing Images

If your source servers can be converted into image files, and the type and OS of the image files are listed in Formats and OSs Supported for External Image Files, you can create the source server image files as private images on HUAWEI CLOUD, and use the images to quickly deploy new servers on HUAWEI CLOUD.

  1. Export the source server as images of formats supported by HUAWEI CLOUD. You can use the recommended tool to convert the image format. For details, see Converting the Image Format Using qemu-img.
  2. Upload the external image file to the OBS bucket. For details, see Uploading an External Image File.
  3. Select the uploaded image file on the management console and register the image file as a private image. For details, see Creating a Linux System Disk Image from an External Image File and Creating a Windows System Disk Image from an External Image File.
  4. Use the created image to provision new servers in the planned environment based on the design.