This topic describes how to migrate data from a local Network Attached Storage (NAS) file system to Alibaba Cloud NAS for long-term storage.

Background information

Assume that a Hangzhou pharmaceutical enterprise stores data, such as product documents and experimental data on its local NAS file server. The data includes 10,000,000 files, which is about 10 TB. The NAS server is located in a local s server room. The SMB protocol is used on the server that is enabled with a firewall. As no Internet connection exists, the private IP address of the server is 10.0.0.254.

Based on the considerations of data security and cost, the company needs to migrate data from the NAS server to Alibaba Cloud NAS.

Procedure

Based on the needs and background information, you can migrate data as follows:
  1. Create a NAS file system in the China (Hangzhou) region and mount the file system on an ECS instance that is located in a VPC.
  2. Connect the NAS server to a VPC by using a dedicated data circuit. Modify the firewall settings of the NAS server and enable access to the NAS server by all IP addresses in the VPC.
  3. Use Data Online Migration to migrate data from the NAS server to Alibaba Cloud NAS.

Step 1: Create a file system in Alibaba Cloud NAS

  1. In the China (Hangzhou) region, create a NAS file system whose protocol type is Network File System (NFS). For more information, see Mount a file system on a Linux ECS instance.
  2. Mount the file system on an ECS instance that is locate in the VPC For more information, see Mount an NFS file system.
  3. Modify the security group of the VPC to enable access to the NAS file system from all IP addresses in the VPC. For more information, see Manage permission groups.

Step 2: Attach the NAS server to the VPC

  1. Connect the NAS server to the VPC where the ECS instance hosting the NAS file system is located. The connection is established using a dedicated data circuit with a maximum bandwidth of 1 Gbit/s. For more information, see Created a dedicated physical connection.
  2. Modify the firewall settings of the NAS server to enable access to the NAS server by all IP addresses in the VPC.

Step 3: Create a migration job

  1. Create a RAM user in Alibaba Cloud and grant the RAM user the permission to create a migration job. For more information, see Create and authorize a RAM user.
  2. Log on to the Data Transport console by using the RAM user account. Use the information of the local NAS server to create the source data address. For more information about options, see Create a source data address. The configuration details are shown in the following figure.
  3. Use the information of the Alibaba Cloud NAS file system to create the destination data address. The configuration details are shown in the following figure.
  4. Create a full migration job to migrate data from the NAS server to Alibaba Cloud NAS. For more information about options, see Create a migration job.
    The options that you can specify in the Performance step are shown in the following figure.
  5. A migration job requires about two days to complete. To ensure that all data is migrated, you need to view a migration report and compare data at both the source data address and the destination data address.
    Note If a migration job fails, see Common causes of a migration failure and solutions.