If you access a file stored in a General-purpose NAS file system less than twice a month, you can transfer the file to the lower-cost Infrequent Access (IA) storage medium. To do so, you can use the lifecycle management feature of NAS. This topic describes how to manage a lifecycle management policy in the Apsara File Storage NAS console.

Create a lifecycle management policy

  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose File System > File System List.
  3. Find the file system and click Configure policies in the Data lifecycle management column.
  4. On the Life Cycle Management page, click Create Policy.
  5. In the Create Lifecycle Management Policy dialog box, set the parameters, as shown in the following figure.
    Create a lifecycle management policy
    Parameter Description
    Policy Name Specify the policy name. The name must be 3 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.
    File System Select the file system. The lifecycle management feature is available only for Network File System (NFS) file systems that are created after 00:00:00, June 1, 2020.
    Directory Path Specify the path of a directory for which you want to create a lifecycle management policy. The path must start with a forward slash (/). The lifecycle management feature identifies and transfers cold data, but does not change the directory structure of the file system. For example, a directory named /test has only one file named a1 and a lifecycle management policy is created for the directory. If the a1 file is transferred to the IA storage medium, you can still write data to the /test directory and the policy still works on the written data.
    Management Rules Select a rule. If a file in the specified directory is not accessed for the specified number of days, the file is transferred to the IA storage medium. The lifecycle management feature supports the following rules:
    • More than 14 days from the most recent access
    • More than 30 days from the most recent access
    • More than 60 days from the most recent access
    • More than 90 days from the most recent access
  6. Click OK.

View lifecycle management policies

  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose Data Service > Life Cycle Management.
  3. On the Life Cycle Management page, you can view all the lifecycle management policies in the region.

View the IA storage usage of the file system

  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose File System > File System List.
  3. On the File System List page, click the name of the file system or Management in the Operations column. In the Basic Information section of the page that appears, you can view the IA storage usage of the file system.
    Note If a file meets the rule of the lifecycle management policy, the file is automatically transferred to the IA storage medium after about two hours. You can query the IA storage usage on the details page of the file system.

Modify the lifecycle management policy

  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose Data Service > Life Cycle Management.
  3. On the Life Cycle Management page, find the lifecycle management policy and click Modify in the Operations column. You can modify only the Management Rules parameter. Other parameters cannot be modified.
  4. Click OK.

Delete the lifecycle management policy

  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose Data Service > Life Cycle Management.
  3. On the Life Cycle Management page, find the lifecycle management policy, click Delete in the Operations column, and then delete the policy as prompted. The data that is transferred to the IA storage medium remains in the IA storage medium.