Share via


Add-DPMDiskStorage

Adds a specified disk to the storage pool on a DPM server.

Syntax

DPMDisk

Add-DPMDiskStorage
    [-DPMDisk] <Disk[]>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Volumes

Add-DPMDiskStorage
    [-Volumes] <Volume[]>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Volume

Add-DPMDiskStorage
    [-Volume] <Volume>
    [[-Subdirectory] <String>]
    [[-FriendlyName] <String>]
    [[-DatasourceType] <VolumeTag[]>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Add-DPMDiskStorage cmdlet adds a disk or a volume to the storage pool on a System Center - Data Protection Manager (DPM) server. A storage pool on a DPM server consists of a set of disks where the server stores replicas, shadow copies, and transfer logs for protected data sources and a set of Resilient File System (ReFS) volumes in which the server stores replica virtual hard disks (VHDs).

To get a list of all disks on a DPM server, use the Get-DPMDiskStorage cmdlet. To get a list of all volumes on a DPM server, use the Get-DPMDiskStorage cmdlet with the -All and -Volumes parameters specified.

Examples

Example 1: Add disk to DPM storage pool

PS C:\>$disks = Get-DPMDiskStorage -DPMServerName "TestingServer"
PS C:\> Add-DPMDiskStorage -DPMDisk $disks

The first command uses Get-DPMDiskStorage to get a list of disks attached to the DPM server named TestingServer and stores the list in the $disks variable.

Example 2: Add volumes to DPM storage pool

PS C:\>$volumes = Get-DPMDiskStorage -DPMServerName "TestingServer" -Volumes -All
PS C:\> Add-DPMDiskStorage -Volumes $volumes

The first command uses the Get-DPMDiskStorage cmdlet to get a list of volumes available in the DPM server named TestingServer. It stores them in the $volumes variable.

The second command adds all volumes in $volumes to the DPM storage pool.

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

-DatasourceType

Specifies an array of data source types that can be backed up on this disk storage. The data source type list can be any combination of the following values:

  • FileSystem
  • Client
  • SQL
  • SharePoint
  • Exchange
  • SystemProtection
  • HyperV
  • VMware
  • Other
  • All

Parameter properties

Type:

VolumeTag[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-DPMDisk

Specifies an array of disks that this cmdlet adds to the DPM storage pool.

Parameter properties

Type:

Disk[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DPMDisk
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-FriendlyName

Specifies a friendly name for the volume that this cmdlet adds to the DPM storage pool.

Parameter properties

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

Parameter sets

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

-Subdirectory

Specifies an empty directory inside the volume that this cmdlet adds to the DPM storage pool. The subdirectory cannot be updated after the volume is added to the DPM storage pool.

Parameter properties

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

Parameter sets

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

-Volume

Specifies a volume to be added to a DPM storage pool. If the Subdirectory parameter is not specified, DPM formats the volume with the ReFS 3.0 file system before adding it to storage pool. If the Subdirectory parameter is specified, the specified volume must be a ReFS 3.0 volume. In that case, DPM does not format the volume and only uses the subdirectory to store backup data.

Parameter properties

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

Parameter sets

Volume
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Volumes

Specifies an array of volumes to be added to the DPM storage pool. DPM formats each of these volumes with the ReFS 3.0 file system before adding them to the storage pool.

Parameter properties

Type:

Volume[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Volumes
Position:1
Mandatory:True
Value from pipeline:True
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.