Start-DPMDatasourceConsistencyCheck

Performs a consistency check on a DPM data source.

Syntax

Start-DPMDatasourceConsistencyCheck
     [-Datasource] <Datasource>
     [-HeavyWeight]
     [-JobStateChangedEventHandler <JobStateChangedEventHandler>]
     [-ForcedFullCC]
     [[-AdhocJobsContext] <AdhocJobsContext>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]
Start-DPMDatasourceConsistencyCheck
     [-ProtectionGroup] <ProtectionGroup>
     [[-AdhocJobsContext] <AdhocJobsContext>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

The Start-DPMDatasourceConsistencyCheck cmdlet performs a consistency check on a System Center - Data Protection Manager (DPM) data source. You can run consistency checks on a specific data source or on all data sources in a protection group that are in an inconsistent state.

Examples

Example 1: Start a consistency check on a data source

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName TestingServer
PS C:\> $PObject = Get-DPMDatasource $PGroup[0]
PS C:\> Start-DPMDatasourceConsistencyCheck -Datasource $PObject

The first command gets the protection groups from the server named TestingServer by using the Get-DPMProtectionGroup cmdlet. The command stores them in the $PGroup variable.

The second command gets the data source for the first protection group in $PGroup, and then stores the data source in the $Ds variable.

The third command runs a consistency check on the data source that is stored in $Ds.

Parameters

-AdhocJobsContext

Specifies the context details of the ad hoc job. Do not use this parameter from the Windows PowerShell command line.

Type:AdhocJobsContext
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Datasource

Specifies a data source object for which this cmdlet starts a consistency check. A data source can be a file system share or volume for the Windows operating system, Microsoft SQL Server database, Microsoft Exchange Server storage group, Microsoft SharePoint farm, Microsoft Virtual Machine, DPM database, or system state that is a member of a protection group.

Type:Datasource
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ForcedFullCC

Indicates that this cmdlet performs a heavyweight consistency check on all databases in the farm, not just on the databases in an inconsistent state. This option is specific to SharePoint.

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

-HeavyWeight

Indicates that the cmdlet performs a heavyweight consistency check. A heavyweight consistency check creates a checksum for the contents of each file. This parameter affects only file servers. The cmdlet always performs heavyweight consistency checks on application servers.

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

-JobStateChangedEventHandler

Specifies an event handler for Job.StateChanged events. Use this parameter to build a graphical user interface based on cmdlets. Do not use this parameter in the DPM Management Shell.

Type:JobStateChangedEventHandler
Aliases:Handler
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProtectionGroup

Specifies a protection group which contains data sources on which this cmdlet runs a check. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Type:ProtectionGroup
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False