Start a Conversation

Unsolved

This post is more than 5 years old

533

November 16th, 2012 06:00

DPM2012 SAN based recovery with EMC VNX SAN

Hi team, I found there is a post regarding the

integration between DPM and EMC SAN storage, but it's

for DPM 2007 . And my test to run this script got

errors when I ran it on my DPM 2012 management shell.

I am wondering if anyone can provide a version for

DPM 2012,or any document that I can refer to for

manual configuration with DPM2012 GUI to acheive the

SAN based recovery. Thanks! -KF


link to the document

[http://www.emc.com/collateral/hardware/white | http://www.emc.com/collateral/hardware/white]-

papers/h4260-clariion-stor-sol-ms-dpm-wp.pdf

==============begin of the script

======================


if(!$args[0])
{
if(!$DSName)
{
$DSName = read-host "DatasourceName:"
}
}
else
{
if(("-?","-help") -contains $args[0])
{
write-host Usage::
write-host CreateShadowCopy.ps1 DatasourceName

ProtectionGroupName
write-host Help::
write-host Creates a shadow copy for the given

Datasource
write-host
exit 0
}
else
{
write-host "Usage -? for Help"
exit 1
}
}
if(!$PGName)
{
$PGName = read-host "ProtectionGroupName:"
}
$dpmname = &"hostname"
connect-dpmserver $dpmname
$pg = get-protectiongroup -dpmservername $dpmname
if (!$pg)
{
write-error "Cannot get the protectionGroup"
disconnect-dpmserver $dpmname
exit 1
}
$mypg = $pg | where {$_.FriendlyName -eq $PGName}
if (!$mypg)
{
write-error "Cannot get the requested

protectionGroup"
disconnect-dpmserver $dpmname
exit 1
}
$ds = get-datasource -protectiongroup $mypg
if (!$ds)
{
write-error "Cannot get the datasources for the PG"
disconnect-dpmserver $dpmname
exit 1
}
$myds = $ds | where {$_.Name -eq $DSName}
if (!$myds)
{
write-error "Cannot get the required Datasource"
disconnect-dpmserver $dpmname
exit 1
}
$j = new-recoverypoint -datasource $myds -

DiskRecoveryPointOption
WithoutSynchronize -Disk
if (!$j)
{
write-error "Cannot get the required Datasource"
disconnect-dpmserver $dpmname
exit 1
}
$jobtype = $j.jobtype
while (! $j.hascompleted )
{
write-host "Waiting for $jobtype job to complete...";

start-sleep 5
}
if($j.Status -ne "Succeeded")
{
write-error "Job $jobtype failed..."
}
Write-host "$jobtype job completed..."
disconnect-dpmserver $dpmname
exit

===============end of the script=================

No Responses!
No Events found!

Top