Set-DedupVolume

Set-DedupVolume

Changes data deduplication settings on one or more volumes.

语法

Parameter Set: Query (cdxml)
Set-DedupVolume [-Volume] <String[]> [-ChunkRedundancyThreshold <UInt32> ] [-CimSession <CimSession[]> ] [-ExcludeFileType <String[]> ] [-ExcludeFileTypeDefault <String[]> ] [-ExcludeFolder <String[]> ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [-InputOutputScale <System.UInt32> ] [-MinimumFileAgeDays <UInt32> ] [-MinimumFileSize <UInt32> ] [-NoCompress <Boolean> ] [-NoCompressionFileType <String[]> ] [-OptimizeInUseFiles] [-OptimizePartialFiles] [-PassThru] [-ThrottleLimit <Int32> ] [-Verify <Boolean> ] [ <CommonParameters>] [ <WorkflowParameters>]

Parameter Set: InputObject (cdxml)
Set-DedupVolume [-ChunkRedundancyThreshold <UInt32> ] [-CimSession <CimSession[]> ] [-ExcludeFileType <String[]> ] [-ExcludeFileTypeDefault <String[]> ] [-ExcludeFolder <String[]> ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [-InputOutputScale <System.UInt32> ] [-MinimumFileAgeDays <UInt32> ] [-MinimumFileSize <UInt32> ] [-NoCompress <Boolean> ] [-NoCompressionFileType <String[]> ] [-OptimizeInUseFiles] [-OptimizePartialFiles] [-PassThru] [-ThrottleLimit <Int32> ] [-Verify <Boolean> ] [ <CommonParameters>] [ <WorkflowParameters>]

详细说明

The Set-DedupVolume cmdlet changes data deduplication settings on one or more volumes.

参数

-ChunkRedundancyThreshold<UInt32>

Specifies the number of identical chunks of data that the deduplication engine encounters before the server creates a redundant copy of the data chunk. This increases the reliability of the server by adding redundancy to the most referenced chunks of data.

Deduplication detects corruptions and the deduplication scrubbing job restores the corrupted chunks from a redundant copy, if it is available. The default value is 100. The minimum value that you can set is 20. A low value for the ChunkRedundancyThreshold parameter reduces the effectiveness of data deduplication by creating more redundant copies of a chunk, and consumes more memory and disk space.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-CimSession<CimSession[]>

在远程会话中或远程计算机上运行该 cmdlet。输入计算机名或会话对象,如 New-cimsessionGet-cimsession cmdlet 的输出。默认为本地计算机上的当前会话。

别名

Session

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-ExcludeFileType<String[]>

Specifies an array of extension types that the deduplication engine excludes from data deduplication and optimization. Specify comma-separated values that are not preceded with a period (.). When you change this setting, you override the existing values.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-ExcludeFileTypeDefault<String[]>

Specifies an array of extension types, as strings, that the server does not optimize.

The Enable-DedupVolume cmdlet modifies this behavior, depending on the value of the UsageType parameter. If you use the current parameter to modify this behavior, and then run Enable-DedupVolume again, that cmdlet overrides your changes.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-ExcludeFolder<String[]>

Specifies an array of names of root folders under which all files are skipped during data deduplication. Full paths are accepted, however mount points are ignored since the mount point can change after configuration. When you change this setting, you override the existing values.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-InformationAction<System.Management.Automation.ActionPreference>

Deduplication detects corruptions and the deduplication scrubbing job restores the corrupted chunks from a redundant copy, if it is available. The default value is 100. The minimum value that you can set is 20. A low value for the ChunkRedundancyThreshold parameter reduces the effectiveness of data deduplication by creating more redundant copies of a chunk, and consumes more memory and disk space.

别名

infa

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-InformationVariable<System.String>

Deduplication detects corruptions and the deduplication scrubbing job restores the corrupted chunks from a redundant copy, if it is available. The default value is 100. The minimum value that you can set is 20. A low value for the ChunkRedundancyThreshold parameter reduces the effectiveness of data deduplication by creating more redundant copies of a chunk, and consumes more memory and disk space.

别名

iv

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-InputOutputScale<System.UInt32>

Specifies the level of input/output parallelization during optimization for this volume. 此参数的可接受值是: integers from 0 to 36. The default value of 0 sets the system to automatically select an InputOutputScale value based on the size of the volume to deduplicate. 

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-MinimumFileAgeDays<UInt32>

Specifies a number of days. The deduplication engine optimizes files that users have not accessed in the number of days that you specify. If the last access time is not available, then the deduplication engine uses the last modified time.

别名

MinimumFileAge

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-MinimumFileSize<UInt32>

Specifies the minimum size threshold, in bytes, for files that are optimized. The deduplication engine does not optimize files that do not meet the minimum threshold.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-NoCompress<Boolean>

Indicates whether or not the server compresses data after deduplication. Compression uses more processor cycles but provides additional space savings.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-NoCompressionFileType<String[]>

Specifies an array of file types that the deduplication engine excludes from compression. These file types are deduplicated but not compressed, typically because the file format is already compressed. Specify comma-separated values that are not preceded with a period (.). When you change this setting, you override the existing values.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-OptimizeInUseFiles

Indicates that the server attempts to optimize currently open files. After specifying this parameter, the server may wait up to 15 minutes before it attempts to optimize open files.

Enable-DedupVolume modifies this behavior, depending on the value of the UsageType parameter. If you use the current parameter to modify this behavior, and then run Enable-DedupVolume again, that cmdlet overrides your changes.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-OptimizePartialFiles

Indicates that the server optimizes all files, including portions of files that are old enough, according to the value of the MinimumFileAgeDays parameter.

Enable-DedupVolume modifies this behavior, depending on the value of the UsageType parameter. If you use the current parameter to modify this behavior, and then run Enable-DedupVolume again, that cmdlet overrides your changes.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-PassThru

返回一个对象,该对象表示所使用的项。默认情况下,此 cmdlet 不生成任何输出。

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-ThrottleLimit<Int32>

指定为运行该 cmdlet 而可以建立的最大并发操作数。如果省略此参数或输入值为 0,Windows PowerShell® 则根据计算机上运行的 CIM cmdlet 数来计算最佳节流限制。节流限制仅应用于当前 cmdlet,不应用于会话或计算机。

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-Verify<Boolean>

Indicates whether the deduplication engine performs a byte-for-byte verification for each duplicate chunk that optimization creates, rather than relying on a cryptographically strong hash. We do not recommend that you use this parameter. Setting this parameter to $True can degrade optimization performance.

别名

none

是否必需?

false

在哪里?

named

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-Volume<String[]>

Specifies an array of system volumes. Specify one or more volume IDs, drive letters, or volume GUID paths. For drive letters, use the format D:. For volume GUID paths, use the format \\?\Volume{{GUID}}\. Separate multiple volumes with a comma.

别名

Path,Name

是否必需?

true

在哪里?

1

默认值

none

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

<WorkflowParameters>

输入

输入类型是可以传送到 cmdlet 的对象的类型。

  • System.String[]

  • Microsoft.Management.Infrastructure.CimInstance#

    Microsoft.Management.Infrastructure.CimInstance 对象是显示 Windows Management Instrumentation (WMI) 对象的包装类。井号 (#) 后面的路径提供基础 WMI 对象的命名空间和类名。

输出

输出类型是 cmdlet 发出的对象的类型。

  • Microsoft.Management.Infrastructure.CimInstance

    Microsoft.Management.Infrastructure.CimInstance 对象是显示 Windows Management Instrumentation (WMI) 对象的包装类。井号 (#) 后面的路径提供基础 WMI 对象的命名空间和类名。

  • Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Deduplication/MSFT_DedupVolume

示例

Example 1: Set the exclude folders on a volume

This command sets the root folders under which all files are skipped during data deduplication. The ExcludeFolder parameter specifies that the data deduplication engine processes the files in all of the folders on volume F: except for files in the Temp folder and the SQL folder. If you exclude folders that contain previously optimized files, this command does not unoptimize those files. You have to manually unoptimze any previously optimized files specified by ExcludeFolder.

Note if the ExcludeFolder already contains optimized files, those optimized files are not automatically unoptimized by this command. Any previously optimized files under the ExcludeFolder will need to be manually unoptimized.

PS C:\> Set-DedupVolume –Volume "F:" -ExcludeFolder "F:\temp","F:\SQL"

Example 2: Set the minimum file age on a volume

This command sets the number of days since users have accessed a file before the deduplication engine optimizes the file. The MinimumFileAgeDays parameter specifies that the data deduplication engine processes the files in all of the folders on volume E: that were not accessed in the last 10 days.

PS C:\> Set-DedupVolume -Volume "E:" –MinimumFileAgeDays 10

Example 3: Set the chunk redundancy threshold on a volume

This command sets the number of identical chunks of data that the deduplication engine encounters during deduplication before the server creates a redundant copy of the data chunk. The MinimumFileAgeDays parameter specifies that the data deduplication engine processes the files in all of the folders on volume D: that were not accessed in the last 15 days. The ChunkRedundancyThreshold parameter specifies that if the data deduplication engine discovers 50 chunks of identical data, it makes one redundant copy as a safeguard.

PS C:\> Set-DedupVolume –Volume "D:" -MinimumFileAgeDays 15 –ChunkRedundancyThreshold 50

相关主题

Disable-DedupVolume

Enable-DedupVolume

Get-DedupVolume