All Products
Search
Document Center

Apsara File Storage NAS:Manage lifecycle policies

Last Updated:Jun 28, 2024

You can create a lifecycle policy based on the time when files were last accessed. Apsara File Storage NAS (NAS) periodically dumps files or directories in a General-purpose NAS file system to a specified storage class. This saves storage costs.

Prerequisites

You understand the limits and precautions of using the lifecycle management feature. For more information, see Lifecycle management overview.

Billing

  • Billing of the Infrequent Access (IA) storage class

    • Storage usage fees: You are charged for the storage usage of the IA storage class based on the size and storage duration of the files that are dumped to the IA storage class.

    • Read and write traffic fees: You are charged based on the cumulative amount of read and write traffic that is generated when you access data in the IA storage class on an hourly basis. NAS does not distinguish the traffic generated over an internal network and the traffic generated over the Internet.

  • Billing of the Archive storage class

    • Storage usage fees: You are charged for the storage usage of the Archive storage class based on the size and storage duration of the files that are dumped to the Archive storage class.

    • Storage usage fees of the Archive data that is stored for less than the minimum storage duration: If you delete a file that is stored for less than 60 days (1,440 hours) in the Archive storage class or reduce the file size, you are charged for the remaining storage duration (1440 - actual storage duration) based on the original file size.

    • Read and write traffic fees: You are charged based on the cumulative amount of read and write traffic that is generated when you access data in the Archive storage class on an hourly basis. NAS does not distinguish the traffic generated over an internal network and the traffic generated over the Internet.

Create a lifecycle policy

  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, click Create Policy.

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

    Parameter

    Description

    Policy Name

    Enter a name for the lifecycle policy. 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 Fuzzy Search from the drop-down list and then select the file system for which you want to create a lifecycle policy, or select Exact Search from the drop-down list and then enter the file system ID.

    Directory Paths

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

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

    • Select Directory Paths: Click Select Directory Paths, select file or directory paths, and then click the image icon.

    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.

    Tiered Storage Class

    Configure the storage class of the dumped directories or files based on the time when files were last accessed.

    • IA storage class: suitable for business scenarios where the average access frequency is once or twice per month. Valid values: 14, 30, 60, and 90.

    • Archive storage class: suitable for business scenarios where data is stored for a long period of time, such as data auditing and data archiving. Valid values: 14, 30, 60, 90, and 180.

    If a specified directory or file is not accessed for the specified number of days, the file is dumped to the IA or Archive storage class.

    Important
    • The Archive storage class is available only in the following regions: China (Chengdu), China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Shenzhen), China (Guangzhou), China (Hong Kong), Philippines (Manila), Thailand (Bangkok), Malaysia (Kuala Lumpur), India (Mumbai), South Korea (Seoul), US (Silicon Valley), SAU (Riyadh - Partner Region), Indonesia (Jakarta), Japan (Tokyo), UK (London), Singapore, US (Virginia), and Germany (Frankfurt).

    • You can select one or both of the storage classes. If you select both storage classes, the number of days specified for the management rule of the Archive storage class must be greater than the number of days specified for the management rule of the IA storage class. NAS starts a data migration task 2 hours after the lifecycle policy is created.

    • 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 or Archive storage class.

  6. Click OK.

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.

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 or Archive storage class is not deleted. To prevent fees that are incurred by the data in the IA or Archive storage class, we recommend that you retrieve the data before you delete the policy. For more information, see Create a data retrieval task.

FAQ