Share via


Edit-DPMDiskAllocation

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

Syntax

ConnectedDatasource (Default)

Edit-DPMDiskAllocation
    [-Datasource] <Datasource>
    [-ReplicaSize <Int64>]
    [-ShadowCopySize <Int64>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

DisconnectedClient

Edit-DPMDiskAllocation
    [-Datasource] <Datasource>
    [-ShadowCopySize <Int64>]
    [-ExpectedDataSizePerClientInMB <Int64>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

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

Examples

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

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

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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-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.

Parameter properties

Type:Datasource
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ExpectedDataSizePerClientInMB

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

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DisconnectedClient
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ReplicaSize

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

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ConnectedDatasource
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ShadowCopySize

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

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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