Share via


Set-DPMDatasourceDiskAllocation

Changes disk allocation for protected data.

Syntax

Default (Default)

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

Manual

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

MigrateDatasourceDataFromDPMToVolume

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

ExpectedDataSizePerClientInMB

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

ManualDiskStorage

Set-DPMDatasourceDiskAllocation
    [-Datasource] <Datasource>
    [-ProtectionGroup] <ProtectionGroup>
    [-TargetStorage] <Volume>
    [-ReplicaArea <Int64>]
    [-ExpectedDataSizePerClientInMB <Int64>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Custom

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

MigrateDatasourceDataFromDPMToDisk

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

AutoGrowOption

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

Description

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

  • Specify the amount of disk space to allocate to each data source in a protection group.
  • Specify the custom replica and shadow copy volumes to use for each data source in a protection group.
  • Specify the target volume for each data source in a protection group which uses volume-based storage.
  • Specify destination disk or custom volumes for migration of data.

Examples

1: Migrate a datasource from one volume to another

 PS C:\>$pg = Get-DPMProtectionGroup
	PS C:\>$mpg = Get-DPMModifiableProtectionGroup $pg[0]
 PS C:\>$ds = Get-DPMDatasource $mpg
 PS C:\>$vols = Get-DPMDiskStorage -Volumes
 PS C:\>Set-DPMDatasourceDiskAllocation -ProtectionGroup $mpg -Datasource $ds[0] -TargetStorage $vols[0] -MigrateDatasourceDataFromDPM
 PS C:\>Set-ProtectionGroup $mpg

Migrating a datasource involves modifying the PG the datasource is in. The first command gets the protection group object from DPM. The second command converts it into a modifiable protection group, $mpg. The third command gets the datasources that are a part of the modifiable protection group. Next, $vols stores all the available volumes. If $ds[0] needs to migrated to $vols[0], the next command instructs DPM to modify the PG to change the volume allocated to the datasource The last command then saves all the above actions performed on the Protection Group.

Parameters

-AutoGrow

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

Parameter properties

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

Parameter sets

AutoGrowOption
Position:2
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-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

-CustomRequirements

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

Parameter properties

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

Parameter sets

Custom
Position:Named
Mandatory:True
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

Default
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
Manual
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
MigrateDatasourceDataFromDPMToVolume
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
ManualDiskStorage
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
Custom
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
MigrateDatasourceDataFromDPMToDisk
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-DestinationDiskPool

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

Parameter properties

Type:

Disk[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

MigrateDatasourceDataFromDPMToDisk
Position:4
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DestinationReplicaVolume

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

Parameter properties

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

Parameter sets

MigrateDatasourceDataFromDPMToVolume
Position:4
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DestinationShadowCopyVolume

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

Parameter properties

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

Parameter sets

MigrateDatasourceDataFromDPMToVolume
Position:5
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ExpectedDataSizePerClientInMB

Specifies the 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

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

-FormatVolumes

Indicates that DPM formats the allocated volumes.

Parameter properties

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

Parameter sets

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

-Manual

Indicates that you can apply DPM settings manually.

Parameter properties

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

Parameter sets

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

-MigrateDatasourceDataFromDPM

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

Parameter properties

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

Parameter sets

MigrateDatasourceDataFromDPMToVolume
Position:3
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
MigrateDatasourceDataFromDPMToDisk
Position:3
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Parameter properties

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

Parameter sets

Default
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Manual
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Custom
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProductionServerJournalSize

Specifies the journal size of the protected server.

Parameter properties

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

Parameter sets

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

-ProtectionGroup

Specifies a protection group on which this cmdlet operates. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Parameter properties

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

Parameter sets

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

-ReplicaArea

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

Parameter properties

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

Parameter sets

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

-ReplicaVolume

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

Parameter properties

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

Parameter sets

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

-ShadowCopyArea

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

Parameter properties

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

Parameter sets

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

-ShadowCopyVolume

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

Parameter properties

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

Parameter sets

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

-TargetStorage

Specifies a volume in the DPM storage pool that will be used to store the replica virtual hard disk (VHD) for the current data source.

Parameter properties

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

Parameter sets

ManualDiskStorage
Position:3
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-USNJournalSize

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

Parameter properties

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

Parameter sets

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

Outputs

Datasource