大网数据广告活动
Windows排障命令

vssadmin resize shadowstorage

· 52CE 我爱测

A description of the vssadmin resize shadowstorage command, which resizes the maximum amount of storage space that can be used for shadow copy storage.

Resizes the maximum amount of storage space that can be used for shadow copy storage.

The minimum amount of storage space that can be used for shadow copy storage can be specified by using the MinDiffAreaFileSize registry value. For more information, see MinDiffAreaFileSize.

Warning: Resizing the storage association may cause shadow copies to disappear.

Syntax

vssadmin resize shadowstorage /for=<ForVolumeSpec> /on=<OnVolumeSpec> [/maxsize=<MaxSizeSpec>]

Parameters

Parameter Description
/for=<ForVolumeSpec> Specifies the volume for which the maximum amount of storage space is to be resized.
/on=<OnVolumeSpec> Specifies the storage volume.
[/maxsize=<MaxSizeSpec>] Specifies the maximum amount of space that can be used for storing shadow copies. If no value is specified for /maxsize, there's no limit placed on the amount of storage space that can be used.The MaxSizeSpec value must be 1 MB or greater and must be expressed in one of the following units: KB, MB, GB, TB, PB, or EB. If no unit is specified, MaxSizeSpec uses bytes by default.

Examples

To resize shadow copy of volume C on volume D, with a maximum size of 900MB, type:

vssadmin resize shadowstorage /For=C: /On=D: /MaxSize=900MB

To resize shadow copy of volume C on volume D, with no maximum size, type:

vssadmin resize shadowstorage /For=C: /On=D: /MaxSize=UNBOUNDED

To resize shadow copy of volume C by 20%, type:

vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=20%

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 03/05/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。