Поделиться через


Edit-DPMDiskAllocation

Edit-DPMDiskAllocation

Modifies disk allocation for a protected data source on a DPM server.

Syntax

Parameter Set: ConnectedDatasource
Edit-DPMDiskAllocation [-Datasource] <Datasource> [-ReplicaSize <Int64]> ] [-ShadowCopySize <Int64]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: DisconnectedClient
Edit-DPMDiskAllocation [-Datasource] <Datasource> [-ExpectedDataSizePerClientInMB <Int64]> ] [-ShadowCopySize <Int64]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Edit-DPMDiskAllocation cmdlet modifies disk allocation on a System Center 2012 – Data Protection Manager (DPM) server for a protected data source.

Parameters

-Datasource<Datasource>

Specifies a data source object for which this cmdlet modifies disk allocation. A data source can be a file system share or volume for the Windows operating system, Microsoft SQL Server database, Microsoft Exchange Server storage group, Microsoft SharePoint farm, Microsoft Virtual Machine, DPM database, or system state that is a member of a protection group.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-ExpectedDataSizePerClientInMB<Int64]>

Specifies the new expected size, in megabytes, of data that DPM backs up from each client computer.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ReplicaSize<Int64]>

Specifies the new size of a replica volume, in bytes.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ShadowCopySize<Int64]>

Specifies the new size of a recovery point volume, in bytes.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

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.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Modify the size of the replica and recovery point volumes

The first command uses the Get-DPMProtectionGroup cmdlet to get the protection group for the server named Contoso-DPMServer. The command stores the group in the $PGroup variable.

The second command uses the Get-DPMDatasource cmdlet to get all data source objects for the protection group stored in $PSGroup. The command stores the objects in the $PObjects variable.

The last command modifies the size of the replica volume and the shadow copy volume for the second data source object stored in the $PObjects array.

PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "Contoso-DPMServer"
PS C:\> $PObjects = Get-DPMDatasource -ProtectionGroup $PGroup
PS C:\> Edit-DPMDiskAllocation -Datasource $PObjects[1] -ReplicaSize 5368709120 -ShadowCopySize 3221225472

Get-DPMDatasource

Get-DPMProtectionGroup