locked
Expired tapes not freeing up "disk space" RRS feed

  • Question

  • How come expired tapes in DPM are not deleting the actual files on the tape/disk? It used to work fine with DPM 2007?  I look at the files on the drive and they are very old.
    Wednesday, December 8, 2010 1:53 PM

Answers

  • Hi,

     

    OK - it's making more sense now.  So, DPM should expire the tapes automatically when the last recovery point expires. At that time, the tape should be able to be overwritten, meaning if the firestreamer file was 400GB in size when the tape expired, and the tape was then reused by DPM, the file size should decrease as a result of the 1st RP being written and then grow again as new RP's are written to tape.

    You should not have to run the supplied script, but it will expire all RP's and free the tape if you absolutly need the tape to be reused before the RP's expire naturally.


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, December 13, 2010 4:56 PM

All replies

  • Hi,

    Recovery points on disk and recovery points on tape expire independently.  Disk space is only freed when disk based recovery points expire, however when they expire depends on both retention range and the successful completion of scheduled recovery points.  It's not calendar based, but the number of days containing at least one good recovery point.  For each day a disk based recovery point is missed adds to the retention period.  If you have a 14 day retention period set, but you missed recovery points on 2 days, the first recovery point will not expire until 17th day, so it will look like pruning is not working.   Disk space is freed after a nightly maintenance job runs at midnight, or you can manually run the DPM power shell script called pruneshadowcopies2010.ps1. 

    Tape based recovery points expire automatically based on retention period and the date / time of the recovery point on the tape.  If you view tape contents, the expired date / time for each RP will be listed.  Only after all RP's on that tape are expired will the tape show expired in the GUI and be available for re-use, however, until the tape is reused and overwritten, the expired RP's on the tape can still be restore, so the data on tape is never really "deleted".

     

    Based on the above, can you re-phrase your question or explain what problem you are experiencing ?

     


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, December 10, 2010 9:55 PM
  • Thank you for the explanation. Your middle paragraph makes sense since the tapes are listed as deleted but the files still exisit on the "tape". However what happens is that we run out of room since those files are 2 months past the retention period and have expired over a 2 months ago leaving us to manulally delete the files in order to free up space.
    Monday, December 13, 2010 12:49 PM
  • Hi,

    How are you namually deletiong the files ?

    I guess I'm still having problems determining if you are talking about the disk based recovery points or tape based recovery points are not expiring.  If tape, you can free a tape using powershell commands.

    You can use the following power shell script to expire all RP on a given tape, then mark it free.  When it prompts for slot, type slot-#  where # is the slot number as seen in the DPM console containing the tape you wish to free.

       http://blogs.technet.com/dpm/archive/2007/09/04/cli-script-force-mark-tape-as-free.aspx

    If you have a standalone tape drive - get the script from this post:

        http://social.technet.microsoft.com/Forums/en-US/dpmtapebackuprecovery/thread/ab431377-665e-44e3-956d-e74a71000d77


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, December 13, 2010 2:51 PM
  • Sorry, it’s a removable disk drive but we are using Firestreamer so it appears as a a tape in DPM. I can try the script out, just didn’t know it has to be a manual process.

    Monday, December 13, 2010 4:00 PM
  • Hi,

     

    OK - it's making more sense now.  So, DPM should expire the tapes automatically when the last recovery point expires. At that time, the tape should be able to be overwritten, meaning if the firestreamer file was 400GB in size when the tape expired, and the tape was then reused by DPM, the file size should decrease as a result of the 1st RP being written and then grow again as new RP's are written to tape.

    You should not have to run the supplied script, but it will expire all RP's and free the tape if you absolutly need the tape to be reused before the RP's expire naturally.


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, December 13, 2010 4:56 PM