Background
DPM 2012 R2 4.2.1594.0
As usual, last week we had a set of tapes reported as being required onsite by DPM (as their useful offsite period has expired). They were shipped into us and we inserted the tapes. Usually the tapes are either no longer marked as Offsite Ready but are not
marked expired.
DPM PruneShadowCopies has never appeared to run at all and I have been unable to troubleshoot this properly. Instead, I have three scripts that I customised (based on an original script that I found online but I can't recall where) and each script iterates
through one of my three PGs, identifies RPs that are over the allotted period (e.g. 25 days for one group) and then force expire the RPs on tape.
I do this manually every week and it’s been working well for some years now.
Only recently did I notice that one of these scripts was actually expiring disk backups too and much earlier than their allotted limit of 25 days. Before correcting the script I decided to try running PruneShadowCopies again and it now seemed to work but
for only one of the PGs (but this was the most significant PG that backs up all VMs). It seemed to expire the tape RPs and lave the correct number of disk based RPs in place .
I now run PruneShadowCopies (8/05/2017 pruneshadowcopiesDpm2010.ps1) first each week, then my two other script to expire the tape backups for the remaining two PGs.
Issue
In this case, the VM PG tapes still had the Offsite Ready green tick despite the expiration date on each RP in the tape being listed as Jul 12th - over a week earlier. I left them for a few days more. They still did not show expired after running pruneshadowcopies2010.
The VM PG that pruneshadowcopies runs against is backing up the bulk of VMs from Hyper-V to disk for 25 days and tape for 13 weeks. There is a single express backup @ 18:00 Everyday.
Right now, these tapes have no status next to them - neither “Expired” nor “Offsite Ready”. The date of each RP on the tape is July 12th and the backup date is April 12th. I cannot "Mark tape as free": "the selected tapes cannot be marked
as free becuase they belong to protection groups."
I run “wilson-duetape.ps1”. This script lists the tapes that are offsite and the three tapes in the library that are Offsite Ready. It does not list anything to do with the tapes I'm having an issue with - the output ignores these tapes as if they're not
in DPM at all.
I suspect that, if I run my old force script, it will force expire the data on the tapes successfully by rooting out the disk based backups that are responsible (but I don’t want to lose these disk based RPs when I don’t know which ones it will be).
Possibly Related
I have two Hyper-V VMs running Linux in this PG. Since a recent update, these Linux VMs no longer create Recovery Points when up and running. As such, they probably don't meet the 25 days limit specified. I have temporarily deleted their membership in the
PG and their inactive disk based backups but still those tapes are not expired.
Question
I realise that DPM is probably doing exactly what it is supposed to and that I am missing something but that is because I don't know how to identify the issue. Can someone assist me in identifying what exactly on the disks or PG is preventing these tapes
from expiring in DPM?