Managing storage quotas - Amazon FSx for Windows File Server

Managing storage quotas

You can configure user storage quotas on your file systems to limit how much data storage that users can consume. After you set quotas, you can track quota status to monitor usage and see when users surpass their quotas.

You can also enforce quotas by stopping users who reach their quotas from writing to the storage space. When you enforce quotas, a user that exceeds their quota receives an "insufficient disk space" error message.

You can set these thresholds for quota settings:

  • Warning – used to track whether a user or group is approaching their quota limit, relevant for tracking only.

  • Limit – the storage quota limit for a user or group.

You can configure default quotas that are applied to new users who access a file system and quotas that apply to specific users or groups. You can also view a report of how much storage each user or group is consuming and whether they're surpassing their quotas.

Storage consumption at a user level is tracked based on file ownership. Storage consumption is calculated using logical file size, not the actual physical storage space that files occupy. User storage quotas are tracked at the time when data is written to a file.

Updating quotas for multiple users requires either running the update command once for each user, or organizing the users into a group and updating the quota for that group.

You can manage user storage quotas on your file system using the Amazon FSx CLI for remote management on PowerShell. To learn how to use this CLI, see Using the Amazon FSx CLI for PowerShell.

Following are commands that you can use to manage user storage quotas.

User storage quotas command Description

Enable-FSxUserQuotas

Starts tracking or enforcing user storage quotas, or both.

Disable-FSxUserQuotas

Stops tracking and enforcement for user storage quotas.

Get-FSxUserQuotaSettings

Retrieves the current user-storage quota settings for the file system.

Get-FSxUserQuotaEntries

Retrieves the current user-storage quota entries for individual users and groups on the file system.

Set-FSxUserQuotas

Set the user storage quota for an individual user or group. Quota values are specified in bytes.

The online help for each command provides a reference of all command options. To access this help, run the command with -?, for example Enable-FSxUserQuotas -?.