A fileset is a small file system within a file system that has its own inode space and management capabilities. You can use a fileset to apply data policies and set quotas.
Prerequisites
You have created a CPFS for Lingjun file system. For more information, see Create a file system.
Limitations
Limitation | Description |
File system | Filesets are supported only on CPFS for Lingjun 2.7.0 and later. |
Number of filesets per file system | The default quota is 500. To request a higher quota, up to 3,000, submit a ticket. |
Number of files or directories per fileset | 10 billion |
Fileset |
|
Fileset path |
|
Fileset deletion | You can delete a fileset only from the console or by using an API. After deletion, the system gradually releases the disk space. Deleted data is unrecoverable. Proceed with caution. |
Create a fileset
Log on to the NAS console.
In the left-side navigation pane, choose File System > File System List.
In the upper-left corner of the page, select the resource group and region of the target file system.
On the File System List page, click the name of the file system.
On the file system details page, click the Fileset tab.
On the Fileset tab, click Create Fileset.
In the Create Fileset dialog box, enter the fileset path and name, and then click OK.
Parameter
Description
Fileset Path
The absolute path of the fileset within the file system. The path must meet the following requirements:
Starts and ends with a forward slash (/).
Must not already exist.
If the path contains multiple directory levels, the parent directory must already exist.
The path cannot be renamed and cannot be a symbolic link.
The maximum path depth is 8 levels.
The maximum total path length is 990 characters.
Each directory name can be up to 255 characters long and can contain uppercase and lowercase letters, digits, underscores (_), periods (.), and hyphens (-).
Fileset Name
The name of the fileset. The name must meet the following requirements:
The name must be 2 to 128 characters long.
The name must start with a letter or a Chinese character and cannot start with
http://orhttps://.The name can contain digits, colons (:), underscores (_), and hyphens (-).
(Optional) Deletion Protection
Specifies whether to enable deletion protection. When enabled, the fileset cannot be deleted from the console or by using an API. You must disable this protection before you can delete the fileset.
Delete a fileset
You can delete a fileset only from the console or by using an API. After deletion, the system gradually releases the disk space. Deleted data is unrecoverable. Proceed with caution.
If deletion protection is enabled, you must first disable it to delete the fileset.
On the Fileset tab, find the target fileset and click Delete in the Actions column.
Confirm the fileset details and click Confirm Deletion.
Edit a fileset
You can modify a fileset's name and change its deletion protection setting.
On the Fileset tab, find the target fileset and click Edit in the Actions column.
In the dialog box, modify the fileset name or change the deletion protection setting.
Monitor fileset capacity
You can monitor fileset capacity only in the Cloud Monitor console or by using Cloud Monitor APIs.