- Documentation
Elastic File Storage
Elastic File Storage (EFS)
User Guide
Managing directory quotas
User Guide
Managing directory quotas
Managing directory quotas
The directory quota feature tracks and limits file count and storage usage within a specified EFS directory. This topic introduces how to create and view statistical and restricted directory quotas.
The directory quota feature offers two types of quotas: statistical and restricted. The details are as follows:
You have mounted the file system and specified the directory path. For more information, see Mounting file systems. Statistical directory quota
Creating a statistical directory quota
- In the top menu bar, select the region of the file system you want to manage.
- In the left navigation pane, select File System.
- On the File System page, click the file system you want to manage.
- In the left navigation pane, select Directory quota.
- On the Directory quota page, click Create directory quota.
- In the Create directory quota dialog, enter the Directory path. The requirements are as follows:
- The directory path must start with a forward slash (/).
- The directory path can only contain letters, numbers, underscores (_), hyphens (-), or periods (.).
- Enter an absolute path for the directory path. For example, if the mount target is /localdir and the target directory path is /localdir/aaa, set the directory path to /aaa.
- Set Restricted type to Statistical.
Viewing data statistics results
- In the top menu bar, select the region of the file system you want to manage.
- In the left navigation pane, select File System.
- On the File System page, click the file system you want to manage.
- In the left navigation pane, select Directory quota.
- On the Directory quota page, view information such as Restricted type, Used capacity, and No. of files used.
Restricted directory quota
Creating a restricted directory quota
- In the top menu bar, select the region of the file system you want to manage.
- In the left navigation pane, select File System.
- On the File System page, click the file system you want to manage.
- In the left navigation pane, select Directory quota.
- On the Directory quota page, click Create directory quota.
- In the Create directory quota dialog, set the following parameters.
Viewing directory limitations and data statistics results
- In the top menu bar, select the region of the file system you want to manage.
- In the left navigation pane, select File System.
- On the File System page, click the file system you want to manage.
- In the left navigation pane, select Directory quota.
- On the Directory quota page, view information such as Restricted type, Used capacity, and No. of files used.
Failed to create a directory quota
The directory you have created does not exist on EFS, or it already has a directory quota.
Make sure that the directory exists and that no directory quota has been created for it.
The 'Disk quota exceeded' error occurs when writing data
The storage usage or file count within the directory has exceeded the quota limit.
- Clean up data to free up space or increase the quota limit.
- After cleanup, do a test write in the directory to refresh the quota cache asynchronously.
- Once it's successful, restart the service.
Last updated: 2025.10.27 17:45:23