This topic describes how to migrate data from an internal Network Attached Storage (NAS) file system of an entertainment company in Hangzhou to Alibaba Cloud Object Storage Service (OSS) for long-term storage.

Background information

An entertainment company in Hangzhou stores data, such as media files and documents, on its internal NAS file server. The data includes 5,000,000 files, which are about 20 TB in size. The NAS server is located in the data center of the company. The server uses the Server Message Block (SMB) protocol and has a firewall installed. The server cannot be accessed over the Internet but provides an internal IP address of 10.0.0.254.

To meet the requirements for subsequent maintenance and online application development, the company needs to migrate data from the NAS server to OSS for long-term storage.

Migration scheme

Based on the user requirements and background information, the following migration scheme is formulated:
  1. Create an OSS bucket in the China (Hangzhou) region and change the default storage location to the endpoint of this bucket.
  2. Use a dedicated leased line to connect the on-premises NAS server to an Alibaba Cloud virtual private cloud (VPC). Modify the firewall settings of the NAS server and enable access to the NAS server from all the IP addresses in the VPC.
  3. Use Data Online Migration to migrate data from the NAS server to OSS.

Step 1: Create a bucket and change the storage location

  1. In the China (Hangzhou) region, create a bucket to store data. For more information, see Create buckets.
  2. Set the bucket policy to allow the employees of the company to access the bucket. For more information about the configurations, see Add bucket policies.
  3. Inform the internal employees to change the default storage location to the bucket.

Step 2: Connect the NAS server to an Alibaba Cloud VPC

  1. Use a dedicated leased line that provides a transmission rate of 1 Gbit/s to connect the NAS server to an Alibaba Cloud VPC. For more information, see Create a dedicated physical connection.
  2. Modify the firewall settings of the NAS server to enable access to the NAS server from all the IP addresses in the VPC.

Step 3: Use Data Online Migration to migrate data from the NAS server to OSS

  1. Create a Resource Access Management (RAM) user in the Alibaba Cloud Management Console, grant the RAM user the permissions to create migration jobs, and obtain the AccessKey pair of the RAM user. For more information, see Create and authorize a RAM user.
  2. Create a NAS data address. For more information about the parameters, see Migrate data from NAS to OSS.

    The following figure shows the configuration details.

    Create a NAS data address
  3. Create an OSS data address. For more information about the parameters, see Migrate data from NAS to OSS.

    The following figure shows the configuration details.

    Create an OSS data address
  4. Create a full migration job and configure performance optimization. For more information about the parameters, see Migrate data from NAS to OSS.
    Notice In this example, the entertainment company has no bandwidth needs for other applications during data migration. Therefore, no flow limit is set. In actual practice, you can set appropriate flow limits based on the usage of the bandwidth.

    The following figure shows how to configure performance optimization.

    Create a migration job
  5. A migration job requires about two days to complete. After the migration job is completed, you must verify that all data is migrated. To do so, view the migration report and compare the data at the source data address with the data at the destination data address.
    Note If a file fails to be migrated, troubleshoot the failure. For more information, see Common causes of a migration failure and solutions.
    After the data is migrated, you can store and manage data on OSS.