Set-FileTreeQuota

SYNOPSIS

Modifies an existing file tree quota.

SYNTAX

Set-FileTreeQuota [-Cluster] <Cluster> [-Id] <string> [-Description <string>]
 [-HardLimit <long>] [-SoftLimit <long>] [-UserQuotasEnforced <boolean>] [-GracePeriod <int>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Modifies an existing file tree quota.

EXAMPLES

Example 1

PS C:\> Set-FileTreeQuota -Cluster $cluster -Id uuid1 -Description "New Description"

Where $cluster is a PowerStore cluster instance and uuid1 is the ID of the file tree quota to modify. Sets the description on the file tree quota to ‘New Description’.

Example 2

PS C:\> Set-FileTreeQuota -Cluster $cluster -Id uuid1 -SoftLimit 100000 -HardLimit 500000

Where $cluster is a PowerStore cluster instance and uuid1 is the ID of the file tree quota to modify. Sets the soft limit to 100000 bytes and the hard limit to 500000 bytes on the quota, rounding up to the filesystem block size.

Example 3

PS C:\> Set-FileTreeQuota -Cluster $cluster -Id uuid1 -UserQuotasEnforced 1

Where $cluster is a PowerStore cluster instance and uuid1 is the ID of the file tree quota to modify. Configures the quota to be enabled for all users.

PARAMETERS

-Cluster

The PowerStore cluster.

Type: Cluster
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Id

The UUID of the file tree quota to modify.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Description

File tree quota description.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-HardLimit

Hard limit of the tree quota, in bytes. No hard limit when set to 0. This value can be used to compute amount of space that is consumed without limiting the space. Value is always rounded up to match the physical block size of the filesystem. Must be higher than soft limit, and cannot be set to a nonzero value while soft limit is still set to zero.

Type: Long
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SoftLimit

Soft limit of the tree quota, in bytes. No soft limit when set to 0. Value is always rounded up to match the physical block size of the filesystem.

Type: Long
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UserQuotasEnforced

Whether the quota must be enabled for all users, and whether user quota limits, if any, are enforced. Values are:

  • true - Start tracking usage for all users on the quota tree, and enforce user quota limits.
  • false - Stop tracking usage for all users on the quota tree, and do not enforce user quota limits.
Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-GracePeriod

Grace period of soft limit (seconds). This will override the default grace period set at filesystem level.

  • -1 - Infinite grace period (Windows policy).
  • 0 - Use default grace period of 1 week.
  • Positive - Grace period after which the soft limit is treated as a hard limit (seconds).
Type: Integer
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

Dell.PowerStore.Management.Model.FileTreeQuota

NOTES