This topic describes how to migrate data from a local network-attached storage (NAS) file system to Apsara File Storage 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 server room. The server uses the network file system (NFS) protocol and is installed with a firewall. While the server is unavailable for public networks, it provides an internal IP address: 10.0.0.254.

Based on the considerations of data security and cost saving, the enterprise needs to migrate data from the NAS server to Apsara File Storage NAS.

Procedure

Based on the background information, you can migrate data as follows:
  1. Create an Apsara File Storage NAS file system in the China (Hangzhou) region and mount the file system onto an Elastic Compute Service (ECS) instance that is located in a VPC.
  2. Connect the local NAS server to the VPC by using a dedicated leased line. Modify the firewall settings of the NAS server and enable access to the NAS server from all IP addresses in the VPC.
  3. Proceed as follows by using Data Transport to migrate data from the local NAS server to Apsara File Storage NAS:

Step 1: Create a file system in the Apsara File Storage NAS console

  1. In the China (Hangzhou) region, create an Apsara File Storage NAS file system of the NFS protocol type. For more information, see Mount a file system on a Linux ECS instance.
  2. Mount the file system onto an ECS instance that is located in the VPC. For more information, see Mount a file system on a Windows ECS instance.
  3. Modify the security group of the VPC to enable read/write access to the NAS file system from all IP addresses in the VPC. For more information, see Manage a permission group.

Step 2: Connect 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 by using a dedicated leased line with a maximum bandwidth of 1 Gbit/s. For more information, see Connect an on-premises data center to a VPC through a physical connection.
  2. Modify the firewall settings of the NAS server to enable access to the NAS server from all IP addresses in the VPC.

Step 3: Create a migration job

  1. Create a Resource Access Management (RAM) user in the Alibaba Cloud console and grant the RAM user the permission to create migration jobs. For more information, see Create and grant permissions to a RAM user.
  2. Log on to the Data Transport console with the new RAM user account.
  3. Create a source data address based on the local NAS server information. For more information about configuration parameters, see Create a source data address. The configuration details are shown in the following figure.
    Create a source data address
  4. Create a destination data address based on the information of the Apsara File Storage NAS file system. The following figure shows the configuration details.
    Create a destination data address
  5. Create a full migration job to migrate data from the local NAS server to Apsara File Storage NAS. For more information about configuration parameters, see Create a migration job. The following figure shows the configuration details.
    Create a migration job
    The following figure shows the parameters that you can specify in the Performance step.Performance optimization
  6. A migration job requires about one day to complete. To ensure that all data is migrated, you need to view the migration report and compare data at both the source data address and the destination data address.
    Note For more information about how to troubleshoot migration issues, see Common causes of a migration failure and solutions.