Set-DPMDatasourceDiskAllocation

Set-DPMDatasourceDiskAllocation

Changes disk allocation for protected data.

Syntax

Parameter Set: Default
Set-DPMDatasourceDiskAllocation [-Datasource] <Datasource> [-ProtectionGroup] <ProtectionGroup> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AutoGrowOption
Set-DPMDatasourceDiskAllocation [-ProtectionGroup] <ProtectionGroup> [-AutoGrow] <Boolean> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Custom
Set-DPMDatasourceDiskAllocation [-Datasource] <Datasource> [-ProtectionGroup] <ProtectionGroup> -CustomRequirements [-FormatVolumes] [-PassThru] [-ReplicaVolume <DpmServerVolume> ] [-ShadowCopyVolume <DpmServerVolume> ] [-USNJournalSize <Int64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ExpectedDataSizePerClientInMB
Set-DPMDatasourceDiskAllocation -ExpectedDataSizePerClientInMB <Int64> -ProtectionGroup <ProtectionGroup> [-Datasource <Datasource> ] [-ShadowCopyArea <Int64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Manual
Set-DPMDatasourceDiskAllocation [-Datasource] <Datasource> [-ProtectionGroup] <ProtectionGroup> -Manual [-PassThru] [-ProductionServerJournalSize <Int64> ] [-ReplicaArea <Int64> ] [-ShadowCopyArea <Int64> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: MigrateDatasourceDataFromDPMToDisk
Set-DPMDatasourceDiskAllocation [-Datasource] <Datasource> [-ProtectionGroup] <ProtectionGroup> [-MigrateDatasourceDataFromDPM] [-DestinationDiskPool] <Disk[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: MigrateDatasourceDataFromDPMToVolume
Set-DPMDatasourceDiskAllocation [-Datasource] <Datasource> [-ProtectionGroup] <ProtectionGroup> [-MigrateDatasourceDataFromDPM] [-DestinationReplicaVolume] <DpmServerVolume> [-DestinationShadowCopyVolume] <DpmServerVolume> [-FormatVolumes] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-DPMDatasourceDiskAllocation cmdlet changes disk allocation for protected data. By default, System Center 2012 – Data Protection Manager (DPM) allocates disk space and volumes for the data source. The cmdlet gives you these options for changing disk allocation:

-- Specify the amount of disk space to allot to each data source in a protection group.

-- Specify the volumes to use for each data source in a protection group.

Parameters

-AutoGrow<Boolean>

Indicates whether DPM increases the size of the replica or recovery point volume automatically when it runs out of user space.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-CustomRequirements

Indicates that you can specify replica and shadow copy volumes manually.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Datasource<Datasource>

Specifies a share or volume in a Windows file system, Microsoft SQL Server database, Microsoft Exchange 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

-DestinationDiskPool<Disk[]>

Specifies the set of disks on which DPM allocates volumes to migrate a data source. This parameter is migration specific.

Aliases

none

Required?

true

Position?

4

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DestinationReplicaVolume<DpmServerVolume>

Specifies the destination volume that the user allocates to migrate replicas of a data source. This parameter is migration specific.

Aliases

none

Required?

true

Position?

4

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DestinationShadowCopyVolume<DpmServerVolume>

Specifies the destination volume that the user allocates to migrate shadow copies of a data source. This parameter is migration specific.

Aliases

none

Required?

true

Position?

5

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ExpectedDataSizePerClientInMB<Int64>

Specifies the expected size of data that the user will back up from each client computer (in megabytes).

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-FormatVolumes

Indicates that DPM formats the allocated volumes.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Manual

Indicates that you can apply DPM settings manually.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-MigrateDatasourceDataFromDPM

Indicates that DPM migrates the data source from the current volumes to a new set of volumes.

Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PassThru

Indicates that cmdlets can be part of a pipeline. Use this parameter with other DPM cmdlets to return a related object in cases where the cmdlet does not create default output.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ProductionServerJournalSize<Int64>

Specifies the journal size of the protected server.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ProtectionGroup<ProtectionGroup>

Specifies a protection group object.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-ReplicaArea<Int64>

Specifies the disk allocation for the replica area of the current data source.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ReplicaVolume<DpmServerVolume>

Specifies a replica volume object. A replica volume is a volume on the DPM server that contains the replica of a protected data source.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ShadowCopyArea<Int64>

Specifies the disk allocation for the shadow copy area of the current data source.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ShadowCopyVolume<DpmServerVolume>

Specifies an object for a shadow copy volume. This object represents the volume that contains the shadow copy.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-USNJournalSize<Int64>

Specifies the journal size for the update sequence number (USN).

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.

  • Datasource

Notes

  • For more information, type Get-Help Set-DPMDatasourceDiskAllocation -detailed.

Examples

Example 1: Specify disk allocation for a data source

This example specifies the disk allocation for a data source.

The first command gets all protection groups from the DPM server named TestingServer and stores these groups in the variable named $Pg. You cannot edit these protection groups.

The second command gets the protection groups from the $Pg array in editable mode. It stores the editable protection group in the variable named $Mpg.

The third command gets the list of protected and unprotected data from the $Mpg array and stores them in the variable named $Ds.

The fourth command gets the current disk allocation for the second data source in $Ds.

The fifth command sets the disk allocation for the second data source in $Ds from the protection groups in $Mpg.

The sixth command saves the second data source in $Ds to the editable protection group in $Mpg.

PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "TestingServer"
PS C:\> $Mpg = Get-ModifiableProtectionGroup $Pg
PS C:\> $Ds = Get-Datasource -ProtectionGroup $Mpg
PS C:\> Get-DatasourceDiskAllocation -Datasource $Ds[1]
PS C:\> Set-DPMDatasourceDiskAllocation -Datasource $Ds[1] -ProtectionGroup $Mpg
PS C:\> Set-ProtectionGroup $Mpg

Set-DPMDatasourceDefaultDiskAllocation