All Products
Search
Document Center

Apsara File Storage NAS:Manage lifecycle policies

Last Updated:Apr 15, 2024

If the data that you store in a General-purpose NAS file system has not been accessed for more than 14 days, the data is deemed as cold data. In this case, you can enable the lifecycle management feature to dump the cold data to the Infrequent Access (IA) storage class to reduce costs. This topic describes how to manage lifecycle policies in the Apsara File Storage NAS (NAS) console.

Create a lifecycle policy

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select a region.

  4. Find the file system and click Configure policies in the Data Lifecycle column.

  5. On the Lifecycle Policies page, click Create Policy.

  6. In the Create Lifecycle Policy dialog box, configure the parameters described in the following table.

    创建策略

    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 ID

    Select the file system for which you want to create a lifecycle policy.

    Path

    Specify the directory paths for which you want to create a lifecycle policy. You can specify a maximum of 10 paths.

    • Enter Paths: The path must start with a forward slash (/). You can enter letters, digits, spaces, and the following special characters: . / + - = * @ % ( ).

    • Select Paths: Click Select Paths. In the dialog box that appears, select files or directory paths, and then click OK.

    Note

    You can use a lifecycle policy to identify and dump cold data. However, you cannot use the policy to change the directory structure of the file system. For example, a directory named /test has only one file named a1 and a lifecycle policy is created for the directory. If file a1 is dumped to the IA storage class, you can still access file a1 in the /test directory and you can write data to the directory. In this case, the policy applies to the data that is stored in the directory.

    Management Rule

    Select a rule for lifecycle management. If a file in the specified directory is not accessed for the specified number of days, the file is dumped to the IA storage class. You can select one of 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

    Note

    The lifecycle policy dumps only infrequently-accessed files whose size ranges from 64 KiB to 4.88 TiB. Data that is not within this range is not dumped to the IA storage class.

  7. Click OK.

    Note

    If the lifecycle management feature is enabled, a file that meets a specified lifecycle policy is dumped to the IA storage class in 2 to 24 hours. The time that is required to dump the file to the IA storage class varies based on the storage usage of the file system and the size of the file. Subsequent file dumps are performed at a specific time every week. You can view the storage usage of the IA storage class on the details page of the file system. You can also view the files that are dumped to the IA storage class in the NAS console. For more information, see View the files stored in the IA storage class.

View lifecycle policies

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose Lifecycle Management > Lifecycle Policies .

  3. In the top navigation bar, select a region.

  4. On the Lifecycle Policies page, view all lifecycle policies in the region where the file system resides.

View the usage of the IA storage class

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select a region.

  4. On the File System List page, click the name of the file system or click Manage in the Actions column. In the Basic Information section of the page that appears, you can view the usage of the IA storage class.

Related operations

Operation

Description

Modify a lifecycle policy

On the Lifecycle Policies page, find the lifecycle policy that you want to modify, and click Modify in the Actions column.

You can modify only the Management Rule parameter. Other parameters cannot be modified. After you modify the parameter, files will be dumped based on the new rule in the next scan cycle.

Delete a lifecycle policy

On the Lifecycle Policies page, find the lifecycle policy that you want to delete, and click Delete in the Actions column. In the message that appears, click OK.

Important

When you delete a lifecycle policy, data in the IA storage class is not deleted. To prevent fees that are incurred by the data in the IA storage class, we recommend that you retrieve the data before you delete the policy. For more information, see Create a data retrieval task.

FAQ