Поделиться через


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 disks that this cmdlet adds to a storage pool.

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

Examples

Example 1: Add a disk to a DPM server

The first command uses the Get-DPMDisk cmdlet to the disks on the server named Contoso-DPMServer. This command stores the disks in the $DpmDisk variable.

The second command adds the disks in $DpmDisk to the server storage pool.

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

Get-DPMDisk

Remove-DPMDisk