Add-DPMDisk

Add-DPMDisk

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

Syntax

Parameter Set: Default
Add-DPMDisk [-DPMDisk] <Disk[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Add-DPMDisk cmdlet adds a disk to a storage pool on a System Center 2012 – 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.

To get a list of all disks on a DPM server, use the Get-DPMDisk cmdlet.

Parameters

-DPMDisk<Disk[]>

Specifies an array of one or more disks.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

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.

  • Disk

Notes

  • For more information, type "Get-Help Add-DPMDisk -detailed".

Examples

Example 1: Add a disk to a DPM server

This example adds a disk to a DPM server.

The first command uses the Get-DPMDisk cmdlet to retrieve a list of disks on a server, and stores the result in the $DPMDisk variable.

The second command uses the Add-DPMDisk cmdlet to add the disks in the variable $DPMDisk to the server storage pool.

PS C:\> $DPMDisk = Get-DPMDisk -DPMServerName "Contoso-DPMServer"
PS C:\> Add-DPMDisk -DPMDisk $DPMDisk

Get-DPMDisk

Remove-DPMDisk