vssadmin resize shadowstoragevssadmin resize shadowstorage

适用于: Windows 10,Windows 8.1,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012,Windows Server 2008 R2,Windows Server 2008Applies to: Windows 10, Windows 8.1, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, Windows Server 2008

调整可用于卷影副本存储的最大存储空间量。Resizes the maximum amount of storage space that can be used for shadow copy storage.

可以使用 MinDiffAreaFileSize 注册表值指定可用于卷影副本存储的最小存储空间量。The minimum amount of storage space that can be used for shadow copy storage can be specified by using the MinDiffAreaFileSize registry value. 有关详细信息,请参阅 MinDiffAreaFileSizeFor more information, see MinDiffAreaFileSize.

警告

调整存储关联的大小可能会导致卷影副本消失。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>/for=<ForVolumeSpec> 指定要调整其最大存储空间量的卷。Specifies the volume for which the maximum amount of storage space is to be resized.
/on =<OnVolumeSpec>/on=<OnVolumeSpec> 指定存储卷。Specifies the storage volume.
[/maxsize = <MaxSizeSpec> ][/maxsize=<MaxSizeSpec>] 指定可用于存储卷影副本的最大空间量。Specifies the maximum amount of space that can be used for storing shadow copies. 如果没有为 /maxsize指定任何值,则可以使用的存储空间量没有限制。If no value is specified for /maxsize, there's no limit placed on the amount of storage space that can be used.

MaxSizeSpec值必须为 1 MB 或更大,且必须以下列单位之一表示: KB、MB、GB、TB、PB 或 EB。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. 如果未指定单位,则默认情况下 MaxSizeSpec 使用字节。If no unit is specified, MaxSizeSpec uses bytes by default.

示例Examples

若要调整卷 D 上卷 C 的卷影副本大小,最大大小为大约900MB,请键入: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

若要调整卷 D 上卷 C 的卷影副本大小,无最大大小,请键入:To resize shadow copy of volume C on volume D, with no maximum size, type:

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

若要将卷 C 的卷影副本的大小调整为20%,请键入:To resize shadow copy of volume C by 20%, type:

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

其他参考Additional References