tencent cloud

Cloud File Storage

Releases Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Strengths
Storage Classes and Performance
Use Cases
Recommended Regions
Use Limits
Service Regions and Service Providers
Purchase Guide
Billing Overview
Pricing Overview
General Series Billing
Turbo Series Billing
High-Throughput CFS Billing
Billing Mode
IA ‍Storage Billing
Storage Resource Units
Resource Purchase
Viewing Bills
Arrears Reminder
Getting Started
Creating File Systems and Mount Targets
Using CFS File Systems on Linux Clients
Using CFS File Systems on Windows Clients
Using CFS Turbo on Linux Clients
Using the CFS Client Assistant to Mount File Systems
Operation Guide
Access Management
Managing File Systems
Permission Management
Using Tags
Snapshot Management
Guide for Cross-AZ and Cross-Network Access
Automatically Mounting File Systems
Data Migration Service
User Permission Management
User Quotas
Data Encryption
Data Lifecycle Management
Upgrading Standard File Systems
Practical Tutorial
Selecting Kernels for NFS Clients
Managing Turbo CFS Directories
Terminating Compute Instances
Using CFS on TKE
Using CFS on SCF
Using CFS Turbo on TKE
Using CFS Turbo on TKE Serverless Cluster
Selecting a Network for Turbo CFS
Copying Data
CFS Storage Performance Testing
API Documentation
History
Introduction
API Category
Snapshot APIs
File system APIs
Lifecycle APIs
Other APIs
Data Flow APIs
Making API Requests
Permission Group APIs
Service APIs
Scaling APIs
Data Migration APIs
Data Types
Error Codes
Troubleshooting
Client Use Bottleneck due to Large Number of Small Files or Parallel Requests
FAQs
CFS Service Level Agreement
Contact Us
Glossary

‍Operation ‍Guide

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-01-22 22:15:47

Setting a lifecycle policy

Step 1. Create a lifecycle policy

1. Go to the Lifecycle Policies page and click Create.

Note:
This feature is available only to a Turbo file system. If you need it, submit a ticket.
2. Specify the lifecycle policy by ‍transition period ‍or file size according to your business needs, and click Next.
Note:
You can set a file less than or equal to a value in the range of 1–64 MB as a small file.

Step 2. Apply the lifecycle policy

Apply the lifecycle policy to a path on the Turbo file system and click Submit.



Note:
You can no longer apply a policy to a directory if a policy has already been applied to its parent directory or subdirectory.
If you want to ‍apply the policy to files under /test/, you ‍can set the target path to test, /test, or /test/. The system will automatically convert them to /test/.

Viewing lifecycle policies

Step 1. View a lifecycle policy

1. Go to the Lifecycle Policies page.

2. Click a policy ID to view the policy.




Step 2. View the ‍active lifecycle policies of a file system

1. Go to the file system list page, and click the ID of the target file system.



2. On the lifecycle policies tab page, view the active policies.




Modifying or deleting a lifecycle policy

1. On the details page of a lifecycle policy, click Edit in the upper-right corner.



2. Modify or delete the policy and click Confirm.




Viewing the storage of transitioned data

Go to the file system list page to view the storage of transitioned data.


Viewing the transitioning status of a file

To view the transitioning status of a file, use the following command:
lfs hsm_state /path/to/file
Note:
If "archived" is returned, the file has been transitioned to IA storage and has not been released from the file system.
If "released" is returned, the file has been transitioned to IA storage and has been released from the file system.
By default, a file is automatically released 1 hour after being archived. This frees up space on the file system.

Loading data

You can load files using the following commands:
For a single file:
sudo lfs hsm_restore /path/to/file
For all files in a directory:
nohup find /path/to/preload -type f -print0 | xargs -0 -n 1 sudo lfs hsm_restore &

Releasing data

After you have loaded data, you can release it using the following commands:
For a single file:
sudo lfs hsm_release /path/to/file
For all files in a directory:
nohup find /path/to/release -type f -print0 | xargs -0 -n 1 sudo lfs hsm_release &
Note:
The hsm_release operation cannot be performed on a file that has not been transitioned.


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백