SCDPM2019 - The VHD containing the replica or one of it's snapshots could not be mounted or unmounted. (ID 40002)

Josh Wilkinson 6 Reputation points
2022-06-14T13:49:12.52+00:00

Hi, I'm not sure if this is the correct place to raise/ask this but this issue has apparently been fixed in DPM2016. When can we expect this to be fixed in DPM2019 considering reports of the issue date back as far as 2017??? This is becoming a real issue for us with this appearing on 3 DPM servers. The workaround of rebooting the DPM server and then rerunning the jobs is just not practical on a production backup system.

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
{count} vote

1 answer

Sort by: Most helpful
  1. Brandon Chapman 186 Reputation points
    2025-09-30T17:09:19.2166667+00:00

    There is a second workaround for this issue, which works in DPM 2025, 2022, 2019, etc.:

    https://free.blessedness.top/en-us/powershell/module/dataprotectionmanager/copy-dpmdatasourcereplica?view=systemcenter-ps-2025

    Run the command the specific replica that is causing this error, then it will crash the DPM console if you have it open and force your PowerShell window to close. This is okay for purposes of this workaround.

    If you run that command from Windows Terminal, then the terminal will error with a generic "code 2." Again, for this workaround, this is okay.

    In either case, simply reopen PowerShell/Terminal and run the command a second time, again specifying the replica in question and it will eventually get copied.

    Once the copy succeeds, run your Consistency Check again and it should succeed without going "inconsistent" with the ID 40002 error.

    It's a bit of a jank workaround, but it sure beats having to restart the whole server every time you get a single ID 40002 error for a single replica.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.