Remove-DPMDisk

Remove-DPMDisk

Removes a disk from a storage pool.

構文

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

詳細説明

The Remove-DPMDisk cmdlet removes a disk from a storage pool. A storage pool in System Center 2012 – Data Protection Manager (DPM) consists of a set of disks where the DPM 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.

パラメーター

-DPMDisk<Disk[]>

Specifies an array of disks that make up a storage pool.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Disk

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

Example 1: Remove a disk from a storage pool

This example removes disks from a storage pool.

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 Remove-DPMDisk cmdlet to remove the disks in the variable $DPMDisk from the server storage pool.

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

関連トピック

Add-DPMDisk

Get-DPMDisk