Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Command line replica recovery

64 views
Skip to first unread message

Tim Simmons

unread,
Jul 17, 2007, 4:22:02 PM7/17/07
to
Folks,
In the DPM operations guide, under the "Recorvering DPM Replicas" section it
says,
"When using tape backups, use command-line restore with the RestoreToReplica
option."

I am testing this portion DPM and would like to know, does anyone know the
commandlet this refers to? I've been checking around and can't seem to find
it.
We backed up the DPM replicas and the DPm database to tape and destroyed the
DPM server. The DPM database restore seemed to go find and we've reallocated
the replica's, but I just can't find the commandlet this refers to. Thanks

Balaji Hariharan[MSFT]

unread,
Jul 18, 2007, 8:24:32 AM7/18/07
to
Tim,
Can you add the link here?

--
Thanks
//Balaji Hariharan[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.


"Tim Simmons" <TimSi...@discussions.microsoft.com> wrote in message
news:B839A275-F57A-49E8...@microsoft.com...

Balaji Hariharan[MSFT]

unread,
Jul 18, 2007, 8:48:11 AM7/18/07
to
To clarify: Please add the link of the help content where you located this.

--
Thanks
//Balaji Hariharan[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.


"Balaji Hariharan[MSFT]" <balaji.h...@online.microsoft.com> wrote in
message news:emeTcaT...@TK2MSFTNGP04.phx.gbl...

Tim Simmons

unread,
Jul 18, 2007, 9:42:00 AM7/18/07
to
Sure. I found the operations guide here:
https://connect.microsoft.com/Downloads/DownloadDetails.aspx?SiteID=205&DownloadID=6599&wa=wsignin1.0&wa=wsignin1.0

The section is question is under chapter 10.

Krishna Ganesula

unread,
Jul 18, 2007, 11:14:05 AM7/18/07
to
To directly recover from tape to DPM replica run the New-RecoveryOption
cmdlet with the following options
-RecoverToReplicaFromTape 1
-RecoveryLocation DPMReplicaVolume

For eg: To recover to a filesystem replica the command to create recovery
options would be
$rop = New-RecoveryOption -Filesystem -RecoverToReplicaFromTape 1
-RecoveryLocation DPMReplicaVolume -DPMLibrary <libraryobject> -TargetServer
<dpmservername> -OverWriteType OverWrite -RecoveryType Recover

Rest of the cmdlets for recovery are same as for a normal recovery to the
Production Server.

Note: You can recover your replica from tape only when the replica is
'Manual replica creation Pending' state.

Thanks,
Krishna Ganesula[MSFT]

Tim Simmons

unread,
Jul 18, 2007, 12:02:08 PM7/18/07
to
Thanks for the info. I have one last question, though. How do I determine the
library object? I've tried giving it the name of the library, it didn't like
that. I tried get-dpmlibrary and it doesn't seem to give me any usefull
information. I suppose I just don't understand what a library object is, and
how to tell this new-recoveryoption cmdlet which one to use?

Krishna Ganesula

unread,
Jul 18, 2007, 12:16:02 PM7/18/07
to
Get-DPMLibrary returns the list of all the libraries attached to the DPM
Server.
$lblist = @(Get-DPMLibrary <dpmservername>)
$lblist - This commands displays the entire list of library objects
To use a particular library object specify the index in the list
$lblist[0],$lblist[1],.....,$lblist[n-1].

Balaji Hariharan[MSFT]

unread,
Jul 18, 2007, 12:19:34 PM7/18/07
to
If you have a tape library connected to your DPM server, then use the
Start-DPMLibraryRescan, and then followed by Get-DPMLibrary to get the
Library object.

--
Thanks
//Balaji Hariharan[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.


"Tim Simmons" <TimSi...@discussions.microsoft.com> wrote in message

news:C9C57C63-1E37-446E...@microsoft.com...

Tim Simmons

unread,
Jul 18, 2007, 2:20:03 PM7/18/07
to

Tim Simmons

unread,
Jul 18, 2007, 2:52:00 PM7/18/07
to
Alright, I got that part. Still having an issue though, perhaps with options
or syntax. When I do:
new-recoveryoption -Filesystem -RecoverToReplicaFromTape 1 -RecoveryLocation
DPMReplicaVolume -DPMLibrary $liblist[0] -Targetserver dpmtest2
-overwritetype overwrite -Recoverytype recover

I get this error:

New-RecoveryOption : Parameter set cannot be resolved using the specified
named
parameters.
At line:1 char:19
+ new-recoveryoption <<<< -Filesystem -RecoverToReplicaFromTape 1
-RecoveryLoc
ation DPMReplicaVolume -DPMLibrary $liblist[0] -Targetserver dpmtest2
-overwrit
etype overwrite -Recoverytype recover

I figured it might be the way that $liblist[0] was expanding, so I wrapped
it in quotes as such:

new-recoveryoption -Filesystem -RecoverToReplicaFromTape 1 -RecoveryLocation
DPMReplicaVolume -DPMLibrary "$liblist[0]" -Targetserver dpmtest2
-overwritetype overwrite -Recoverytype recover


And now I get this:


New-RecoveryOption : Cannot bind parameter 'DPMLibrary'. Cannot convert
value "
Id = 5cbe3eef-45d0-449f-b286-3e5890ee56ef
IsBarcodeSupportedField = False
IsEnabled = True
IsOffline = False
IsDoorOpen = False
MachineName = dpmtest2.INSIGHT
NeedsFastInventory = False
NumberOfChangers = 0
NumberOfIEPortSlots = 0
ProductId =
ScsiBus = -1
ScsiLun = -1
ScsiPort = -1
ScsiTargetId = -1
SerialNumber =
Type = StandAloneDriveTapeLibrary
UserFriendlyName = Firestreamer Tape Drive
VendorId =
Id = d8b361c8-67d2-4abf-96ef-bc65ac6f8b70
IsBarcodeSupportedField = False
IsEnabled = False
IsOffline = True
IsDoorOpen = False
MachineName = dpmtest2.INSIGHT
NeedsFastInventory = False
NumberOfChangers = 0
NumberOfIEPortSlots = 0
ProductId =
ScsiBus = -1
ScsiLun = -1
ScsiPort = -1
ScsiTargetId = -1
SerialNumber =
Type = StandAloneDriveTapeLibrary
UserFriendlyName = Firestreamer Tape Drive
VendorId =
Id = 0e424ec7-ac7c-4add-89f3-fdc4b82535ff
IsBarcodeSupportedField = False
IsEnabled = True
IsOffline = True
IsDoorOpen = False
MachineName = dpmtest2.INSIGHT
NeedsFastInventory = False
NumberOfChangers = 0
NumberOfIEPortSlots = 0
ProductId =
ScsiBus = -1
ScsiLun = -1
ScsiPort = -1
ScsiTargetId = -1
SerialNumber =
Type = StandAloneDriveTapeLibrary
UserFriendlyName = Firestreamer Tape Drive
VendorId =
[0]" to type
"Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.LibraryMa
nagement.Library". Error: "Invalid cast from 'System.String' to
'Microsoft.Inte
rnal.EnterpriseStorage.Dls.UI.ObjectModel.LibraryManagement.Library'."
At line:1 char:106
+ new-recoveryoption -Filesystem -RecoverToReplicaFromTape 1 -RecoveryLocation
DPMReplicaVolume -DPMLibrary <<<< "$liblist[0]" -Targetserver dpmtest2
-overwr
itetype overwrite -Recoverytype recover


Any thoughts?

Krishna Ganesula

unread,
Jul 19, 2007, 3:46:03 AM7/19/07
to
My bad. We actually didn't have a -Recoverytype option in Beta2. This has
been added post Beta2.
Please remove this option and rerun the first command. The failure for the
second command is expected as we cannot provide a string in "" instead of the
library object.

Tim Simmons

unread,
Jul 19, 2007, 10:08:01 AM7/19/07
to
Well, guess that makes sense. Almost there, but still an issue. I do this:

new-recoveryoption -Filesystem -RecoverToReplicaFromTape 1 -RecoveryLocation
DPMReplicaVolume -DPMLibrary $liblist[0] -Targetserver dpmtest2
-overwritetype overwrite


And I get this back:

DsmProperties :
Microsoft.Internal.EnterpriseStorage.Dls.XsdClasses.
MTA.DsmPropertiesType
AlternateLocation :
LibraryId : 5cbe3eef-45d0-449f-b286-3e5890ee56ef
SourceServer :
TargetServer : dpmtest2
RecoverToReplicaFromTape : True


I've waited about an hour now for anything to actually happen with the tape
or the replica volume, nothing budges. Any thoughts?

Krishna Ganesula [MSFT]

unread,
Jul 19, 2007, 11:34:00 AM7/19/07
to
You need to run the Recover-RecoverableItem cmdlet to actually trigger any
recovery. This particular cmdlet is only to set the recovery option.
The general sequence for a complete recovery is
$rp = Get-Recoverypoint <datasourceobject>
$rop = New-Recoveryoption <params>
Recover-RecoverableItem $rp $rop

If you have any issues in running this sequence please mail me at
kris...@microsoft.com.

Tim Simmons

unread,
Jul 19, 2007, 1:00:02 PM7/19/07
to
Okay, are you serious?! This seems a little excessive (not to mention very
frustrating) just to pull stuff off of a tape and put it into the replica
group. Most of us aren't PS geniuses and there is NO documentation on this I
can find. If I was recovering from a disaster I'd have just shot myself by
now. Is it going to be this involved in the RTM? If so, will the
documentation atleast be better? Doesn't this seem a little odd to anyone
that in order to recover from a disaster when you aren't using a secondary
DPM server (Which would take forever, btw, to recover from at T1 speeds if
you're protecting any real sizeable data, like most people would be I'd
think) you have to jump through all these hoops? Anyway, enough ranting on my
end.

How do I get the <datasourceobject> refered to in "$rp = Get-Recoverypoint
<datasourceobject>"

I've tried get-datasource cmdlet and it spewed out 217K worth of data (I
diverted it to a text file and checked it's size). I'm protecting 1 volume on
a server and the DPM database itself. All I need to do now is restore this
one volume from tape back to the replica so I can start restoring files to
the protected server. I sent that data to a variable and tried to use it that
way, the results so far have been null. Please assist. Thanks.

Prashant Kumar [MSFT]

unread,
Jul 19, 2007, 1:36:51 PM7/19/07
to
Hi Tim,
Thanks for the feedback. Our documentation is catching up on the product
functionality fast and we will be documenting this feature adequately along
with the required help for command-line. Additionally, I'll take your
feedback on the fact that not all users are command-line savvy. Recognizing
this, we will be posting sample scripts from time to time (watch out for
these on http://blogs.technet.com/dpm). I will suggest a script to automate
the recovery to a replica from tape to the relevant folks in the team.

For the particular issue that you are facing, I request you to contact us
over e-mail. You can mail us at
krisgane AT microsoft DOT com, prkumar AT microsoft DOT com

We can close on this offline and post the resolution to the newsgroup for
helping out everyone.

Thanks!
Prashant

--
--
Prashant Kumar [MSFT]
**This posting is provided "AS IS" with no warranties, and confers no


rights.
"Tim Simmons" <TimSi...@discussions.microsoft.com> wrote in message

news:8227468C-89AC-4ABB...@microsoft.com...

0 new messages