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. A data source is a volume on a disk, a share, a folder, or a file, that belongs to a data protection group.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-ExpectedDataSizePerClientInMB<Int64>
Specifies a new value, in MB, for the expected size of data to be protected per 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.
Notes
- For more information, type "
Get-Help Edit-DPMDiskAllocation -detailed
".
Examples
Example 1: Modify the size of the replica and recovery point volumes
This example modifies the replica volume size to 5 GB and recovery point volume size to 3 GB.
The first command uses the Get-ProtectionGroup cmdlet to retrieve the protection group object, and stores the result in the $PGroup variable.
The second command uses the Get-Datasource cmdlet to retrieve all data source objects for the protection group stored in $PSGroup, and then stores the objects in the $DSource variable.
The last command uses the Edit-DPMDiskAllocation cmdlet to modify the size of the replica volume and the shadow copy volume for the second data source object stored in the $DSource array.
PS C:\> $PGroup = Get-ProtectionGroup -DPMServerName "Contoso-DPMServer"
PS C:\> $DSource = Get-Datasource -ProtectionGroup $PGroup
PS C:\> Edit-DPMDiskAllocation -Datasource $DSource[1] -ReplicaSize 5368709120 -ShadowCopySize 3221225472