PowerShell DPM Recovery

We are trying to script recovery of the production VMs and crashing DPM when it runs.

The error we get is:

Type:     Disk recovery

Status:  Failed

Description:        The job encountered an internal fatal error. (ID 902)

                More information

End time:             11/7/2013 8:16:38 AM

Start time:           11/7/2013 8:15:33 AM

Time elapsed:    00:01:04

Data transferred:             0 MB (0 bytes)

Source details:  \Backup Using Child Partition Snapshot\CFB-PRODUCTION

Target details:   E:\Recovery Location\Production\CFB-PRODUCTION_11-6-2013_17.5.29\C-Vol\  on CFB-DPM.cfboard.mn

Cluster node      -

The script is:

#-------------------------------------------------------------------------------

#Set Dafault Variables

$DPM_SERVER = "CFB-DPM"                                                       #Set location of the DPM server

$TARGET_SERVER = "CFB-DPM.CFBOARD.MN"                                    #Set the server to which the file(s) will be restored

$RECOVERY_LOCATION = "E:\Recovery Location\Production" #Set the path to which the file(s) will be restored $ALTERNATE_LOCATION = "E:\Recovery Location\Production" #Set the path to which the file(s) will be restored

$pg = get-protectiongroup dpmservername $DPM_SERVER                          #Get the Protection Groups from the DPM server

$ds = get-datasource protectiongroup $pg[2]                                  #Set the specific Protection Group from which you  wish to restore

$rp = get-recoverypoint datasource $ds[0] | Sort -Property RepresentedPointInTime -Descending | Select-Object -First 1

                                                                              #Set the restore point from which you wish to restore

$RecoveryObject = get-recoverableitem recoverableitem $rp[0] -BrowseType child           #Set the recoverable item you wish to restore

$RecoveryOption = New-DPMRecoveryOption -Targetserver $TARGET_SERVER -RecoveryLocation AlternateHyperVServer -HyperVDatasource -RecoveryType Recover -TargetLocation $RECOVERY_LOCATION

#Recover the item

Recover-RecoverableItem $RecoveryObject -RecoveryOption $RecoveryOption

#-------------------------------------------------------------------------------

The script submits the process to the DPM. We can see the recovery process running in All jobs in progress. After anywhere between 10 seconds and 2 minutes, the process crashes DPM and reruns the error.

I have searched and cannot find any useful info on error. (ID 902). Technet article http://technet.microsoft.com/en-us/library/hh858747.aspx is no help and says At this time, no additional information is available for this error. and to Contact Microsoft Customer Support.

We can manually recover the item via the console interface but want to automate the process.

Any help would be appreciated.


  • Edited by Gary Bauer Tuesday, November 12, 2013 9:10 PM
November 12th, 2013 9:01pm

Hi Gary,

Did you ever get a solution to this problem?

I have the same error.

We are using System Center 2012 Data Protection Manager Service Pack 1 version 4.1.3453.0

Thanks.

Mike.

Free Windows Admin Tool Kit Click here and download it now
January 21st, 2015 12:15am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics