How to restore a MABS with the DPMSync

li_shouheng 40 Reputation points
2024-08-23T07:11:00.51+00:00

Got some error when im trying to recover a MABS to another computer.what happened is as follow.

  1. first i backuped the dpmdb of the MABS to Azure,and we can call this server "M04"
  2. secondly i clothed the M04 and move it out of the domain
  3. i made a new VM,named it M04,and join it in the domain
  4. i setup the MABS program on it
  5. i add a remote DPM and restore the dpmdb to this machine
  6. (Q1)i use the DpmSync -RestoreDb with the mdf file of dpmdb(i have also tried the .bak file)
  7. (Q2)i tried to use the Dpmsync -Sync,but got a error

Q1: after i use RestoreDb ,i gor a error:only user processes can be killed,but in fact,the mdf file is already restored.

Q2:this is what the problem actually happened.the error was

ハンドルされていない例外: System.Runtime.InteropServices.COMException: リモート プロシージャ コールに失敗しました。 (HRESULT からの例外:0x800706BE) 場所 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 場所 Microsoft.Internal.EnterpriseStorage.Dls.Engine.CProxyUtils.HandleErrors(Int32 hr, tagSAFEARRAY* exceptionResult) 場所 Microsoft.Internal.EnterpriseStorage.Dls.Engine.RestoreDbSyncServicesProxy.RestoreDbSynchronize(Boolean reallocateReplica, Boolean* isExternalVolumeMissing) 場所 Microsoft.Internal.EnterpriseStorage.Dls.RestoreDbSync.RestoreDbSync.SyncFunction(Boolean reallocateReplica, Boolean& isExternalVolumeMissing) 場所 Microsoft.Internal.EnterpriseStorage.Dls.RestoreDbSync.RestoreDbSync.Main(String[] args)

and after this the MABS cant start anymore.

PS: i tried to use the DPMDB file which is made when a install the MABS in the new machine to Restore and Sync ,the Restore got the same problem,but the sync was successed.

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,255 questions
{count} votes

Accepted answer
  1. Amardeep Saini 1,175 Reputation points Microsoft Employee
    2024-08-26T09:51:51.34+00:00

    @li_shouheng Thank you for the information.

    Please find below the steps to perform when you are using empty disk on MABS server.

    • Install the MABS Server on new server and registered it using the same passphrase.
    • Use the below mentioned command to restore the DB.

    dpmsync -restoredb -dbloc c:\temp\dpmdb_dpm03.bak -instancename DPMSQLDB -dpmdbname dpmdb

    • If the above command gives you can error then I would advise to directly restore the DPMDB from SSMS after disabling the DPM services.
    • Once the DPM DB is restore then run below mentioned command to allocate new replica for the data sources protected on MABS Server as the disk is empty.

    DPMsync -reallocatereplica

    Please find below the steps to perform when you attached the disk on new MABS server from old server.

    • Install the MABS Server on new server and registered it using the same passphrase.
    • Use the below mentioned command to restore the DB.

    dpmsync -restoredb -dbloc c:\temp\dpmdb_dpm03.bak -instancename DPMSQLDB -dpmdbname dpmdb

    • If the above command gives you can error, then I would advise to directly restore the DPMDB from SSMS after disabling the DPM services.
    • Once the DPM DB is restore then run below mentioned command to sync disk, db and application on new MABS Server.

    DPMsync -sync


1 additional answer

Sort by: Most helpful
  1. li_shouheng 40 Reputation points
    2024-08-27T06:37:35.28+00:00

    I found that this problem about DpmSync -Sync is about the MABS program itself.

    So that if you want to backup and restore the MABS itself, you should install the Update Rollup1-Refresh before you begin to use the MABS to protect your file or machine. If both the old MABS and the new MBAS are installed the Update Rollup1-Refresh, you can follow the steps below to restore your MABS.

    The complete processes to recover the MABS Sevrer

    1. you need to backup the db file of the DPMDB, both the .bak file and the .mdf file is ok.
    2. move the old MABS out of the domain
    3. join the new MABS(the same computer name with the old one) in the domain
    4. restore the db on the new MABS. you can use both the"DpmSync -restoreDb -dbloc"command and the SSMS(the command always end with a error, but in fact, the db has already been restored correctly, if you care about it, you can use the SSMS)

    if you are using the disk from the old MABS and attched it on the new MABS

    • use the "DpmSync -Sync"command.

    if you are using a new empty disk

    • use the "DpmSync -Sync"command.
    • add the new disk to the disk pool in MABS
    • use the "DpmSync -reallocatereplica"commandThe complete processes to recover the MABS Sevrer

    It was really coast me so much time to find out what was wrong with my operations. Hope this QA can help someone who is confusing by the same problems.

    PS: I think the doc about MABS really need some update..... And if a seriously Bug like this had been fixed in a UR, i think it should be mentioned somewhere more clearly.....

    Thanks my friend @Amardeep Saini responsed my question so quicky, it made me feel so reassuring

    0 comments No comments

Your answer

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