Troubleshooting application protection of guest virtual machines

If Data Protection for Microsoft Hyper-V is configured for application protection of virtual machines (VMs) that host application data and you encounter a problem during VM backup operations, try to reproduce the problem in your environment.

Snapshots created during application protection backups that were interrupted cannot be deleted

If Data Protection for Microsoft Hyper-V is configured for application protection of VMs that host application data, you can run an application protection backup of a VM by issuing the dsmc backup vm vmname command. However, if you cancel the backup operation by pressing the Ctrl + C keys, the snapshot that is created by the backup operation is not removed automatically. Furthermore, the snapshot cannot be removed by using the Hyper-V Manager.

To resolve this problem, you must remove the snapshot manually by running the Get-VMSnapshot cmdlet with the -SnapshotType Recovery parameter, and then run the Remove-VMSnapshot cmdlet to remove the snapshot. For more information, see Snapshot management with Windows PowerShell.

Message ANS4063W is generated during an application protection backup of a Microsoft Exchange Server database

If you did not generate the credentials file on the guest VM and you back up the guest VM from the data mover, message ANS4063W is generated.
ANS4063W IBM Spectrum Protect application protection cannot copy 
the application metafile 'APPPROTECTIONDBINFO.XML ' from the following VM: 
'<name_name>'. 
Individual database restore from this backup is not supported.
Check health of application writers and databases.
To resolve this issue, complete the following steps:
  1. In the guest VM, generate the credentials file in the guest by running the following command at a PowerShell command prompt and enter the domain user name (domain name\user name) and password when prompted:
    Get-Credential | Export-Clixml -Path `
      "C:\program files\Tivoli\TSM\baclient\dsmcreds.xml"

    The domain user must have Exchange restore permission.

  2. Verify the credentials by running the following commands in the guest VM from an Exchange Management Shell:
    $cred = Import-CliXml -Path `
      "C:\program files\Tivoli\TSM\baclient\dsmcreds.xml"
    $Session = New-PSSession -Credential $cred -ConfigurationName `
      Microsoft.Exchange -ConnectionUri `
      http://<Exchange_server_name>/PowerShell?serializationLevel=Full `
      -Authentication Kerberos
    Import-PSSession -Session $Session
    Get-MailboxDatabase -Server <Exchange_server_name>
  3. On the data mover on the Hyper-V host or cluster, back up the guest VM by using Data Protection for Microsoft Hyper-V.

    For instructions, see Running an ad hoc backup of a virtual machine.