Get-DPMDiskStorage

Retrieves list of disks and volumes on a DPM server.

Syntax

Get-DPMDiskStorage [[-DPMServerName] <String>] [-All] [-OutputAsStorageResource] [-Volumes]
 [<CommonParameters>]

Description

The Get-DPMDiskStorage cmdlet gets the disks or volumes that can be added to the storage pool on a given System Center 2016 - 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 and a set of ReFS volumes where the server stores replica VHDs.

Examples

Example 1: Return a list of all disks on a DPM server

PS C:\>Get-DPMDiskStorage -DPMServerName "TestingServer" -All

This command returns all disks that are locally attached to the DPM server named TestingServer. This includes the disks with system and boot partitions.

Example 2: Return a list of disks that are usable by DPM

PS C:\>Get-DPMDiskStorage -DPMServerName "TestingServer"

This command returns the disks that are locally attached to the DPM server named TestingServer and can be used by the DPM server. This excludes the disks with system and boot partitions, as well as virtual disks

Example 3: Return a list of all volumes on a DPM server

PS C:\>Get-DPMDiskStorage -DPMServerName "TestingServer" -Volumes -All

This command returns all the basic volumes that are present on the DPM server named TestingServer. This excludes the system and reserved volumes, as well as dynamic volumes.

Example 4: Return a list of volumes in the DPM storage pool

PS C:\>Get-DPMDiskStorage -DPMServerName "TestingServer" -Volumes

This command returns the volumes that are added to storage pool on the DPM server named TestingServer.

Parameters

-All

Indicates that cmdlet will return all local disks or volumes and not filter out any disk or volume that is not in DPM storage pool. If this switch is not specified, the cmdlet will either return the disks that can be added to storage pool, or the volumes that are already added to storage pool based on the Volumes switch.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DPMServerName

Specifies the name of a DPM server for which this cmdlet gets disks or volumes.

Type:String
Aliases:ComputerName, CN
Required:False
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OutputAsStorageResource

Indicates that the output should be of type StorageResource class instead of Disk or VolumeStorage class. This switch parameter is used by the DPM UI.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Volumes

Indicates that the cmdlet retrieves only volumes. If this paramter is not specified, the cmdlet only gets disks.

Type:SwitchParameter
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False