Tuesday, October 6, 2009

Migrate protection data

There are some cases you might need to migrate your protection data to a new disk. DPM Sp1is shipped with a Powershell script that allows you to migrate your protection data to new storage.
For this you need to follow these steps:

First get a list of disks attached to your DPM server; pay attention to the order the disks are listed 

Start the DPM Management Shell

PS> get-dpmdisk –dpmservername DPM01

Name          Status            NtDiskId Total Capaci Unallocated  Type
                                                   ty        Space
----          ------            -------- ------------ ------------ ----
COMPAQ MSA... Healthy               3       732 GB       582 GB Basic          #0
COMPAQ MSA... Healthy               4       732 GB       582 GB Basic          #1
VMware Vir... Healthy               1        50 GB        28 GB Basic               #2
VMware Vir... Healthy                2         5 GB         0 GB Basic                 #3

Read the disk order in to a variable ($disk)

PS > $disk = Get-DPMDisk -DPMServername dpm01

Now you can use the script MigrateDatasourceDataFromDPM.ps1. First find the disk number of the source disk, these numbers are not displayed when you use the get-dpmdisk command. Do not get fooled by the NTdiskID, you do not need those. You just need to count the disks listed starting with 0 (see red numbers in example). Now find the number for the destination disk using the same trick.

In the example below we like to migrate the data from disk 2 to disk 1

PS > ./MigrateDatasourceDataFromDPM.ps1 -DPMServerName dpm01 -Source $disk[2] -Destination $disk[1]

More options and examples can be found on Technet

1 comment: