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

Background information

Assume that an entertainment enterprise in Hangzhou needs to store data, such as media files and documents, on its local NAS file server. The data includes 5,000,000 files, which is about 20 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.

For the maintenance and development of online applications, the enterprise needs to migrate data from the NAS server to OSS.

Migration solution

Based on the background information, you can migrate data as follows:
  1. Create an OSS bucket in the China (Hangzhou) region and change the default storage location to the data address of this bucket.
  2. Connect the NAS server to an Alibaba Cloud 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. Use Data Transport to migrate data from the local NAS server to OSS.

Step 1: Create a bucket and modify 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 and only enable access to the bucket from enterprise employees. For more information about configurations, see Use bucket policies to authorize other users to access OSS resources.
  3. Inform internal employees of changing the default storage location to the bucket.

Step 2: Connect the NAS server to the VPC

  1. Connect the NAS server to the VPC by using a dedicated leased line 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 from all IP addresses in the VPC.

Step 3: Migrate data from NAS to OSS by using Data Transport

  1. Create a Resource Access Management (RAM) user in the Alibaba Cloud console and grant the RAM user the permission to create migration jobs. Additionally, obtain the AccessKey pair of the RAM user. For more information, see Create and grant permissions to a RAM user.
  2. Create a NAS data address. For more information about configuration 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 configuration 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 the required parameters in the Performance step. For more information about configuration parameters, see Migrate data from NAS to OSS.

    The following figure shows the parameters that you can specify in the Performance step.

    Create a migration job
    Notice In this example, the entertainment enterprise has no bandwidth needs for other applications during data migration. Therefore, no flow limit is set. In actual practice, you can set an appropriate flow limit based on the usage of the bandwidth.
  5. A migration job requires about two days 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.
  6. After the data is migrated, you can perform subsequent data storage and management on OSS.