Get-DatasourceDiskAllocation

Get-DatasourceDiskAllocation

Retrieves the amount of disk space that is allocated to the protected data.

Syntax

Get-DatasourceDiskAllocation [-Datasource] <Datasource> [-Async <SwitchParameter>] [-CalculateShrinkThresholds <SwitchParameter>] [-CalculateSize <SwitchParameter>] [-PrimaryDpmServer <SwitchParameter>] [-Tag <Object>] [<CommonParameters>]

Detailed Description

The Get-DatasourceDiskAllocation cmdlet retrieves the amount of disk space that is allocated to the protected data.

This cmdlet returns all the properties of the data source. Use the Get-Member cmdlet to see the properties returned. Refer to PowerShell documentation on how to use the Get-Member cmdlet.

Parameters

-Datasource

A Windows file system share or volume, Microsoft SQL Server database, Microsoft Exchange storage group, Microsoft SharePoint farm, Microsoft Virtual Machine, DPM database, or system state that is a member of a protection group.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-Async

Allows the user to indicate that the cmdlet should run asynchronously. This is useful with cmdlets that take a long time to complete. The control returns to the user immediately after the operation starts. The progress of the operation is communicated to the user periodically. This is useful when building a GUI using cmdlets. It is not used when working with the DPM Management Shell.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CalculateShrinkThresholds

Indicates that the thresholds to which the recovery point volume can shrink to must be calculated.

This parameter sets the properties ShadowCopySizeAfterMaxShrink and ShadowCopySizeAfterMinShrink. When you use this parameter, the Get-DiskAllocation cmdlet will return two values. If you want to shrink the recovery point volume, you must provide a value in this range to the ShadowCopyArea parameter in the Set-DiskAllocation cmdlet. However, if shrink is not possible, the cmdlet will throw an exception with the appropriate error code.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CalculateSize

Calculates the space allocated on a disk.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-PrimaryDpmServer

Indicates that the recovery is to a DPM server.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-Tag

Helps distinguish the replies to each asynchronous call made by a cmdlet. This is useful when building a GUI using cmdlets.
It is not used when working with the DPM Management Shell.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Notes

  • For more information, type "Get-Help Get-DatasourceProtectionOption -detailed".
    For technical information, type "Get-Help Get-DatasourceProtectionOption -full".

    Additionally, any updated information about the cmdlet will be available at http://go.microsoft.com/fwlink/?LinkId=95130.

Examples

EXAMPLE 1

 
          $pg = Get-ProtectionGroup -DPMServerName "TestingServer" 
          $ds = Get-Datasource -ProtectionGroup $pg 
          Get-DatasourceDiskAllocation -Datasource $ds[1] -CalculateSize 
        

The command returns the amount of disk space allocated to the data source.