Remove-DPMDisk
Remove-DPMDisk
Removes a disk from a storage pool.
Syntax
Parameter Set: Default
Remove-DPMDisk [-DPMDisk] <Disk[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
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.
Parameters
-DPMDisk<Disk[]>
Specifies an array of disks that this cmdlet removes from 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: Remove a disk from a storage pool
The first command uses the Get-DPMDisk cmdlet to retrieve the disks on a server, and stores them in the $DpmDisk variable.
The second command uses the Remove-DPMDisk cmdlet to remove the disks in $DpmDisk from the server storage pool.
PS C:\> $DpmDisk = Get-DPMDisk -DPMServerName "Contoso-DPMServer"
PS C:\> Remove-DPMDisk -DPMDisk $DpmDisk