Remove-DPMDatasourceReplica

Remove-DPMDatasourceReplica

Removes an inactive replica.

構文

Parameter Set: Disk
Remove-DPMDatasourceReplica [-Datasource] <Datasource> -Disk [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Online
Remove-DPMDatasourceReplica [-Datasource] <Datasource> -Online [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Tape
Remove-DPMDatasourceReplica [-Datasource] <Datasource> -Tape [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-DPMDatasourceReplica cmdlet removes an inactive replica from disk or tape.

パラメーター

-Datasource<Datasource>

Specifies a Windows file system share or volume, Microsoft SQL Server database, Microsoft Exchange storage group, Microsoft SharePoint farm, virtual machine, System Center 2012 – Data Protection Manager (DPM) database, or system state that is a member of a protection group.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

-Disk

Indicates that the cmdlet removes the replica from disk.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

false

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

false

-Online

Indicates that the data source uses online protection.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

false

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

false

-PassThru

Indicates that the cmdlet generates output. By default, this cmdlet does not generate output. You can use the PassThru parameter in order to use the cmdlet in a pipeline.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-Tape

Indicates that the cmdlet removes the replica from tape.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

false

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

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)。

入力

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

出力

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

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

    For technical information, type "Get-Help Remove-DPMDatasourceReplica -full".

Example 1: Remove a data source replica

This example removes a data source replica from disk.

The first command gets the protection group from the DPM server named DPMServer02 and stores the protection group in the $Pg variable.

The second command gets the data source from the protection group in the $Pg variable stores the data source in the $Ds variable.

The last command removes the replica of the data source in the $Ds variable from disk.

PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "DPMServer02"
PS C:\> $Ds = Get-Datasource -ProtectionGroup $Pg
PS C:\> Remove-DPMDatasourceReplica -Datasource $Ds -Disk

関連トピック

Get-DPMDatasource