Easy DPM 2010 Fix: Disk based recovery points are not deleted as per retention goals - The Official System Center Data Protection Manager Team Blog - Site Home - TechNet Blogs

Easy DPM 2010 Fix: Disk based recovery points are not deleted as per retention goals

Easy DPM 2010 Fix: Disk based recovery points are not deleted as per retention goals

  • Comments 3
  • Likes

toolsignWhen using System Center Data Protection Manager 2007 or 2010 (DPM) to backup your production servers, you might encounter a situation where the recovery point volumes for your protected data source keep running out of space and the number of days that DPM has recovery points for exceeds the desired retention range.  If you run vssadmin list shadows, or run diskshadow.exe followed by list shadows all command, you can see that there are more shadow copies than there should be based on the desired retention goal.  Also, if you manually run the DPM Power Shell pruneshadowcopies2010.ps1 script, no recovery points are removed, but there are no errors.

So what’s going on here?  Most likely this is happening because the NetBIOS name of the DPM server is longer than 15 characters.

Resolution

To resolve the problem perform the following to truncate the name to the 15 character limit.

1) Using notepad, open C:\Program Files\Microsoft DPM\DPM\bin\pruneshadowcopiesDpm2010.ps1 (For DPM2010) or pruneshadowcopies.ps1 (For DPM 2007).

2) Locate the following entry:

$dpmservername = &"hostname"

3) Replace the &"hostname" with the truncated 15 character NetBIOS name of the DPM server.  For example, if the DPM Server’s host name is "Long-DPM-server-name" then modify the entry as follows:

$dpmservername = "Long-DPM-server"

4) Save the modified script.

5) Either run the script manually, or wait for it to run at midnight - then verify the shadow copies are being pruned as expected.

Michael Jacquet | Senior Support Escalation Engineer

The App-V Team blog: http://blogs.technet.com/appv/
The WSUS Support Team blog: http://blogs.technet.com/sus/
The SCMDM Support Team blog: http://blogs.technet.com/mdm/
The ConfigMgr Support Team blog: http://blogs.technet.com/configurationmgr/
The SCOM 2007 Support Team blog: http://blogs.technet.com/operationsmgr/
The SCVMM Team blog: http://blogs.technet.com/scvmm/
The MED-V Team blog: http://blogs.technet.com/medv/
The DPM Team blog: http://blogs.technet.com/dpm/
The OOB Support Team blog: http://blogs.technet.com/oob/
The Opalis Team blog: http://blogs.technet.com/opalis
The Service Manager Team blog: http: http://blogs.technet.com/b/servicemanager
The AVIcode Team blog: http: http://blogs.technet.com/b/avicode
The System Center Essentials Team blog: http: http://blogs.technet.com/b/systemcenteressentials
The Server App-V Team blog: http: http://blogs.technet.com/b/serverappv

clip_image001 clip_image002

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • DPM2010 don't support  SQL 2008 R2,need ms HELP

  • Also works for DPM 2012 with the same problem

  • Hi,

    I'm experiencing the same issue with DPM 2012 SP1. For almost every protection group member I have more than 5000 recovery points since May 2014.

    I ran the script manually, but it quit after roughly 12 hours with the error message below.

    What can I do?

    Thanks for any advice
    John

    P.S. I'm not happy with the DPM, since it's not reliable, very slow and consumes way too much disk space.


    PS C:\Program Files\Microsoft System Center 2012\DPM\DPM\bin> .\pruneshadowcopiesDpm2010.ps1
    WARNING: Connecting to DPM server: DPM
    WARNING: Connecting to DPM server: dpm.domain.com
    get-datasource : DPM Management Shell is not connected to any DPM server or the previous connection was lost. (ID: 929)
    Use the Connect-DPMServer command to connect to a DPM server. If you are already connected to a DPM server and still see
    running and review the application event log for any errors.
    At C:\Program Files\Microsoft System Center 2012\DPM\DPM\bin\pruneshadowcopiesDpm2010.ps1:214 char:15
    + $dslist = get-datasource $pg
    + ~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (:) [Get-DPMDatasource], DlsException
    + FullyQualifiedErrorId : ConnectiontoDPMServerDoesNotExist,Microsoft.Internal.EnterpriseStorage.Dls.UI.Cmdlet.Commo
    WARNING: Connecting to DPM server: dpm.domain.com
    get-datasource : DPM Management Shell is not connected to any DPM server or the previous connection was lost. (ID: 929)