How to Migrate Web Server from Azure to Alibaba Cloud

0
143
Migrate Web Server

Jack Ma’s Chinese multinational, Alibaba Group Holding Limited, is ruling the globe with its services in AI, ecommerce (C2C, B2C & B2B sales services), retail, electronic payment and cloud computing. Started in 1999, Alibaba with market value of US $527 Billion has entered to Forbes’ list of one of the most admired company of the world. As of this day, it holds 9th highest position brand value globally. In this article we will be discussing about How to Migrate Web Server from Azure Cloud to Alibaba Cloud.

Alibaba Cloud Computing

Alibaba Cloud Computing

Established in September 2009, Alibaba Cloud delivers a global cloud services including BigData processing, data storage, relational databases, content delivery network and anti DDOS protection. Tokyo, Sydney, Singapore, Seoul, San Mateo, Paris, New York, London, Hongkong, Frankfurt and Dubai, Alibaba Cloud computing business is currently headquartered in all major cities of the world.

Azure Cloud Computing

Azure Cloud computing is a public cloud providing IAAS, PAAS and SAAS services. Azure was released in February 2010, with name “Windows Azure” and later renamed as “Microsoft Azure” on March of 2014.

Pre-requisites

ECS instances are created by Alibaba Cloud Migration Tool, to perform migration.
• The on-premise server can utilize Internet for un-interfered transmission of data to ECS console of Alibaba Cloud.
• System time of on-premise server is synced with real time, to avoid TimeStamp.
• For Windows OS
◦ Run as an administrator for Alibaba Cloud Migration
• For Linux OS
◦ Run as a root user for Alibaba Cloud Migration

Following are some steps given to migrate web server from Azure to Alibaba cloud

Stage – 1

Firstly, Download Alibaba Cloud Migration tool and unzip the contents.
You will find folders of Linux Server Migration and Windows server Migration.

For Windows server, click go2aliyun_client1.2.8.5_windowsx86_64
go2aliyun_client1.2.8.5

Understand the Meaning of all
• Rsync
This folder holds all necessary files for the migration. Don’t change anything in them except Rsync\etc\rsync_excludes_win.txt • client_data
All transmission data is stored in it
• user_config.json
This is the configuration file for on-premise server
• go2aliyun_client.exe
This is the main executable for Cloud Migration tool

For Linux Server, click go2aliyun_client1.2.8.5_linux_x86_64
go2aliyun_client

Understand the Meaning of all
• client_check
This is the Auxiliary Program
• client_data
This holds records of the transmission of data during data-migration
• user_config.json
This is configuration file for on premise server
• rsync_excludes_linux.txt
This filters files post migration
• go2aliyun_client
This is the main program for cloud migration tool

Stage 2

Use Alibaba Cloud Migration Tool

Step 1
Log-on to the virtual machine, cloud host or server which needs to be migrated

Step 2
Create an Access key, which would be used in file user_config.json. To create access key, follow sub-steps below
◦ Log-on to RAM Console.
◦ Tap Users, available in navigation pane located left side.
◦ On User Management page find your username and click user or, use Manage in Actions column.
◦ Press Create Access Key option, on User Details page.
◦ Save access key by clicking on Save Access Key Information option in the dialog box.

**You cannot view or download access key, once created, for security reasons.
**In case lost, new access key will be created. For one RAM user, different access key is not an issue.
**Its recommended to keep changing access keys for security purpose.

Stage 3

Now edit file user_config.json, as per requirement [Refer “Customize user_config.json”]
• On simpler terms, locate user_config.json and then open with Notepad
• Modify with the desired parameters, and click Save.

Prototype of user_config.json is displayed below.

Prototype of user_config

Understand Meaning of All

Below are the samples for modification of Windows Server Migration

Case1: Windows Server

Case 1.1 – When there is a migration of Windows Server without a disk
{"access_id": "MyAccessKeyID",
"secret_key": "MyAccessKeySecret",
"region_id": "ap-south-1",
"image_name": "IMAGE_WIN08_10",
"system_disk_size": 70,
"platform": "Windows server 2008",
"architecture": "x86_64",
"data_disks": [],
"bandwidth_limit": 0}

Case 1.2 – Let’s say there are three data disks attached to the Windows server of Case 1.
Following are the drive name and their sizes
Drive E with 150 GB
Drive F with 100 GB
Drive G with 50 GB
{"access_id": " MyAccessKeyID",
"secret_key": " MyAccessKeySecret ",
"region_id": "ap-south-1",
"image_name": "IMAGE_WIN08_10",
"system_disk_size": 70,
"platform": "Windows Server 2008",
"architecture": "x86_64",
"data_disks":
[ {
"data_disk_index": 1,
"data_disk_size": 150,
"src_path": "E:"
}, {
"data_disk_index": 2,
"data_disk_size": 100,
"src_path": "F:"
}, {
"data_disk_index": 3,
"data_disk_size": 50,
"src_path": "G:"
} ],
"bandwidth_limit":0}

Case 2 – Linux Server Migration

Case2.1- Without data-disks
{"access_id": "MyAccessKeyID",
"secret_key": "MyAccessKeySecret",
"region_id": "ap-south-1",
"image_name": "IMAGE_CentOS_10",
"system_disk_size": 70,
"platform": "CentOS",
"architecture": "x86_64",
"data_disks": [],
"bandwidth_limit": 0}

Case2.1- With data-disks
/mnt/disk1 with 150 GB
/mnt/disk2 with 100 GB
/mnt/disk3 with 50 GB
{"access_id": " MyAccessKeyID",
"secret_key": " MyAccessKeySecret ",
"region_id": "ap-south-1",
"image_name": "IMAGE_CentOS_10",
"system_disk_size": 70,
"platform": "CentOS",
"architecture": "x86_64”,
"data_disks":
[ {
"data_disk_index": 1,
"data_disk_size": 150,
"src_path": "/mnt/disk1”
}, {
"data_disk_index": 2,
"data_disk_size": 100,
"src_path": "/mnt/disk2"
}, {
"data_disk_index": 3,
"data_disk_size": 50,
"src_path": "/mnt/disk3"
} ],
"bandwidth_limit":0}

Stage 4

As per requirement, filter out the directories or files by configuring rsync.
• For Windows server- configure, rsync_excludes_win.txt
• For Linux server- configure, rsync_excludes_linux.txt

Stage 5

Run Alibaba Cloud Migration Tool:
• For Windows server- Rick click on go2aliyum_client.exe and then press Run as Administrator.
go2aliyum_client_administrator
• For Linux Server-
1. Run: chmod +x goaliyun_client
2. ./go2aliyun_client

Stage 6

Keep patience, while the migration process is on
• Some VPC, VSwitch, Security group might get created, automatically.
• A new instance could be seen created with name “INSTANCE_FOR_GOTOALIYUN
• When “Goto Aliyun is Finished!” Shows up, go-to image page of ECS Console and check the result.
• If, “Goto Aliyun Not Finished!” pops up, go-to log folder to check log files. Then again run go2aliyun_client.

Completion - Azure cloud to Alibaba Cloud

Post-requisites
• After Completion of Azure cloud to Alibaba Cloud, perform test run.
• Make sure all the functionalities are working as same as in previous cloud.
• Assure that Windows licence is active. Run slmgr.vbs/dlv in cmd prompt.
• Redirect all DNS to Alibaba Cloud instance Public IP

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.