SRM 4.1 - steps in Test of Recovery Plan and DR Mode

Hi all

Whilst running the SRM Recovery Plan, I need to start two different handwritings (doing different things), depending on whether the plan is executed in testing, or fashion DR.

Is it possible according to the operator to input (like "choice Y/N - is this a test?"), or do I have to build two separate Recovery Plans, one for testing, the other for the actual failover?

Kind regards
Radek

If you add a step in order to stimulus package to run a batch file, for example

c:\windows\system32\cmd.exe /c c:\srm_scripts\myscript.bat

And then in the batch file, make sure the variable % VMware_RecoveryMode %.  If it is set to the recovery, it is running in recovery mode, if it is set to be tested is in testmode for example to run a script PowerCLI different depending on whether it is running a true recovery DR or a trial, but what follows in the batch file, where myrecoveryscript.ps1 is the script of PowerCLI is running in recovery mode and mytestscript.ps1 is PowerCLI script to run in test mode :

If % VMware_RecoveryMode % == "recovery" powershell - PSconsolefile "C:\Program Files (x 86) \VMware\Infrastructure\vSphere"-command "c:\srm_scripts\myrecoveryscript.ps1".

If % VMware_RecoveryMode % == 'test' powershell - PSconsolefile "C:\Program Files (x 86) \VMware\Infrastructure\vSphere"-command "c:\srm_scripts\mytestscript.ps1".

Tags: VMware

Similar Questions

  • SRM with virtual disks not replicated RDM Recovery Plan.

    We try to do a test of SRM with a Virtual Machine that has disks Virutal RDM attached, however these volumes are not replicated with RecoverPoint, they exist already on the side of DR, so basically we're already reproducing machine virtual and it's virtual disks, but these 3 RDM are outside it.  The reason for this is because they have massive volumes that had previously been replicated using another product before virtualize us and there is no need to replicate this info again because the volumes are never going to change.


    Then...

    It is done within the SRM, when you look at tab groups protection, we see a warning "not configured VMs: 1" because SRM / RecoverPoint believe that this virtual machine has volumes that are not replicated.

    Is there any way to exclude this or saying SRM to ignore what we will manually add the RDM on the DR side ourselves?  Also on the side of DR, I don't see the VM under hosts and Clusters as I see the replication of other virtual machines, it is because MRS. think he isn't entirely reproduced?  Or is it a manual step where you need to create a virtual machine on the side of the DR and to disable this option in order to see it?  Also, we see what VM listed on the virtual computers tab for this group of special protection, but the other two VMs residing on the sam MON appear and I already tested successfully the two machines.

    Here are the settings in the file for the RDM .vmx

    scsi0:4.filename = "server_3.vmdk".
    scsi0:4.mode = "persistent".
    scsi0:4.ctkEnabled = "FALSE".
    scsi0:4.DeviceType = "scsi-disk" hard
    scsi0:4.present = 'TRUE '.
    scsi0:4.redo = «»

    scsi0:5.filename = "server_4.vmdk".
    scsi0:5.mode = "persistent".
    scsi0:5.ctkEnabled = "FALSE".
    scsi0:5.DeviceType = "scsi-disk" hard
    scsi0:5.present = 'TRUE '.
    scsi0:5.redo = «»
    scsi0:6.filename = "server_5.vmdk".
    scsi0:6.mode = "persistent".
    scsi0:6.ctkEnabled = "FALSE".
    scsi0:6.DeviceType = "scsi-disk" hard
    scsi0:6.present = 'TRUE '.
    scsi0:6.redo = «»

    Hello

    You do not see the DR VM (usually it's called shadow or the space reserved VM), because currently the VM is not protected by SRM. You can't manually create.

    What you can do is run the Wizard "To configure Protection" for your virtual machine. One of the steps, "storage options" or something like this, allows you to select specific disks and mark as detached, allowing you to protect the computer with disks not replicated virtual.

    Michael.

  • Storms RS of recovery Plans and start

    Hi, I work on the stimulus package for a large number of servers. I am aware that the phase of assignment IP address can cause a storm to start on our environment (MRS. 5.5.1) and thus increase the overall reboot for servers recovered time.

    I can introduce a delay between groups of priority or protection groups in order to reduce the effect of storm boot?

    TIA, Derrick

    Are you really the problems in your recovery with SRM currently infrastructure?

    Assuming that you hit the questions then take a look at recommendations for environments on a large scale as a guide to how you can change various settings of recovery to increase the flow rate-> change the settings to run large environments Site Recovery Manager

    I would recommend you first reference to try to see where you hit the questions and then subsequently take a methodical approach to optimize configuration settings appropriate to your environment and of course to validate the effect of the change later.

  • Citing a Recovery Plan without breaking replication

    Hi people,

    Small question just to make sure that I'm heading in the right direction. We have implemented the SRM and the customer wants to test it. They want to avoid having to reconfigure the replication and SRM failback. I was wondering, if we used a Recovery Plan tweaked in Test mode to connect VMs DR Live network down there after the tension Production virtual machines, would be that us allow you to test the recovery plan? They are happy to be scrapped all changes to the virtual machines while they are running in DR that day there (weekend). In theory this would allow us to complete the Test of Recovery Plan, to destroy DR VMs and can back up virtual machines in Production?

    Would this work?

    Thank you

    Mike

    Yep, I get from you. You cannot change the 'bubble test' to be one of VLAN real on the recovering site.

    Like many, I understand, test tip is just there to protect you against accidental conflict of IP/hostname... It is not mandatory and can be changed...

    Of course if you do - you will need to make some efforts to stop conflicts you may have...

    I think you should be able to hard without the routine of failback test - but you have to manual handle side storage... which makes recovery volumes, secondary to the site once again - and ensure replication of the protégés of recovery is restored again. A hard run does not affect your protected site, except turn off the protected site of VMS in order according to the recovery plan.

    I have to say I never tried this - someone from VMware can back me up here?

    Concerning

    Mike Landry

    RTFM education

    http://www.RTFM-ed.co.UK

    Author of the book of MRS: http://www.lulu.com/content/4343147

  • Remove the Dell recovery partition and create a data partition

    Hello world

    Two years ago, I bought a Dell Inspiron N5110. In addition to the existing windows partition, I wanted to add a partition Ubuntu as a partition of data (NTFS). Well, I added the Ubuntu partition, but because of the Dell recovery partition (14.65 GB, used 7,69, formatted to NTFS), I had no primary partition left to create a data partition. I did not had the time to solve this problem so far.

    Here you can see the different partitions. 4, 66GB there is the linux swap partition and the 18.63 is the linux partition. Of course, they are contained in an extended partition that is created during the installation of linux using GParted.

    Basically, what I would do, is to remove the recovery partition. I did not throw a look inside, but I read that as it contains bootstrap information, as well as win7 boot no more if I'm deleting it. The partition is marked as 'active' (in contrast to my main windows partition of C). I guess this is a classic problem, but I couldn't find a tutorial or a satisfactory answer on this forum (I apologize if this is the case). I assume that it is not enough to define steps to activate the recovery partition and assign to the partition c active (i.e. they don't going to critical data recovery to the c partition). Furthermore, I read that repartition your drive could affect the functioning of the emergency recovery partition, is this true?

    Thank you very much in advance for your help.

    Greetings,

    Harald

    Yes, sorry, I had a problem and the image has not been correctly incorporated into my message. Here it comes. Sandra means healthy, active, primary partition means that primary partition. However, you will notice that windows see the ubuntu partition is a stretch.

  • PowerCLI 5.5 R2 and SRM - how to check the status of a Recovery Plan?

    I need to write a script that will examine the current status (apparently called a "RunMode") of a Recovery Plan, is the appropriate status (1 = Test, 3 = cleaning), then get a list of all virtual machines in a suitable specific folder and they will light up (wait 15 seconds between move them on to the next). There are reasons why the Recovery Plan cannot be responsible to do, so why do I need to write a script (the reasons have nothing to do with PowerCLI). And I have problems with the first part, determination of status.

    I have this (I won pretty well most of this pure and simple of the blog of Ken Werneburg. Thank you, Ken!) :

    $DR_vCenter = "xxxxxx".

    $SRM = connect-SrmServer-Server $DR_vCenter

    $SRM_API = $SRM. ExtensionData

    $PlanMoRef = $SRM_API. . Moref Recovery.ListPlans () [2]

    (My plan is #2, others their test plans. I checked this by looking at the name of each plan. And all the good things I want is in this 'moref,"apparently...)

    $HistoryMoRef = $SRM_API. Recovery.GetHistory ($PlanMoRef)

    (it's the history of the races of this plan. Here it is the story of the last race)

    $HistoryMoRef.GetRecoveryResult (1)


    Key: 68835

    Plan: VMware.VimAutomation.Srm.Views.SrmRecoveryPlan

    Name: Recovery_Plan_PHA

    Description:

    StartTime: 15/07/2014 11:03:15

    StopTime: 15/07/2014 11:09:29

    ExecutionTimeInSeconds: 374

    TotalPausedTimeInSeconds: 0

    ResultState: success

    RunMode: CleanupTest

    WarningCount: 0

    ErrorCount: 0

    SO: I understand how to get the history of the plan that I want, and it's more progress. The problem I have is that if the RunMode is a specific value (either "Test" or "Failover", then I need to launch other actions (power of virtual machines.) And I can't seem to do. «$HistoryMoRef.GetRecoveryResult (1).» RunMode"is empty return. I don't know how it is that the value of "CleanupTest".

    How can I query the RunMode, to see if it is a value which I am interested in?

    $HistoryMoRef.GetRecoveryResult (1) | GM


    TypeName: VMware.VimAutomation.Srm.Views.SrmRecoveryResult


    Name MemberType definition

    ----                     ---------- ----------

    Equals method Boolean Equals (System.Object, obj)

    GetHashCode method int GetHashCode()

    Type of the method GetType GetType()

    String the ToString ToString() method

    Description property System.String Description {get; set ;}}

    ErrorCount property System.Int32 ErrorCount {get; set ;}}

    ExecutionTimeInSeconds property System.Int64 ExecutionTimeInSeconds {get; set ;}}

    Key key of System.Int32 property {get; set ;}}

    Property System.String name {get; set ;}}

    Plan of property VMware.VimAutomation.Srm.Views.SrmRecoveryPlan {get; set ;}}

    ResultState property VMware.VimAutomation.Srm.Views.SrmRecoveryResultResultState ResultState {get; set ;}}

    RunMode property VMware.VimAutomation.Srm.Views.SrmRecoveryPlanRecoveryMode RunMode {get; set ;}}

    StartTime property System.DateTime StartTime {get; set ;}}

    StopTime property System.DateTime StopTime {get; set ;}}

    TotalPausedTimeInSeconds property System.Int64 TotalPausedTimeInSeconds {get; set ;}}

    WarningCount property System.Int32 WarningCount {get; set ;}}

    Thank you

    Well, I managed to reproduce the problem and to understand what might happen.

    First the error "you can not call a method on an expression evaluated to null." seems to be linked to the "Write-Output"PG ="$pg" line. When I remove the error to go away (I'm not a person of PowerShell so don't know why this is the case).

    The second error (not not being filled seems to be linked to how they make the connection virtual computers SRM.) Specifically, you will need to establish the connection of VC and then do SRM login without specifying the SRM server, let that be determined by searching the SRM recorded with the VC you are connected to.

    The following code worked in my environment when it is connected to the protected so site full of hope that it will work for you as well:

    SE connect-VIServer-Server $protectedSiteVC - user $user-password $pass

    Connect-SrmServer-user $user-password $pass

    Write-Host "implementation details on Protection groups.

    Get-ProtectionGroup | {ForEach-Object

    $pg = $_

    Get-ProtectedVM - ProtectionGroup $pg} | {ForEach-Object

    #Write - Output 'do for each virtual computer.

    $output = "" | Select VmName, PgName

    $_. Vm.UpdateViewData)

    $output. VmName = $_. Vm.Name

    $output. PgName = $pg. GetInfo(). Name

    $output

    } | Format-Table @{Label = 'Name of the virtual computer'; Expression = {$_.} VmName}}, @{Label = 'Protection Group name'; Expression = {$_.} PgName}

    }

  • Types of SRM recovery plans

    Hi, I use vSphere 5 and have an obligation to SRM of Set - up for a handful of virtual machines (about 10). I think to implement a unique restoration plan, the Group of protection... etc.

    Can anyone in detail why 1 > stimulus package will be useful? that is the test cases in different scenrios or DR.

    I guess a single RP can fit for all purposes, but have heard that it is not advisable and want more details of the types of recovery plans.

    Thank you

    Hello

    For a small enviromnent like what you describe, I don't think more than a PR is necessary.

    As Chris said, nn more often by RPs application is created.

    Much less common, but the RP may be based on certain parts of the infrastructure (by Bay RP, RP for specific server room).

    P.S. good point about real DR / Migration scheduled, but it is more difficult to manage, because you need to make any changes twice to keep both RPS in sync. In addition, you will need to test both of them to make sure that everything works as expected.

    Michael.

  • After execution of the recovery plan, the Test is greyed out

    I missed successfully test on 2 virtual machines running the recovery as part of our POC plan.  I have powered down VMS protected and recovery, initiated a resynchronization on the volume of SnapMirror and intend to continue to use the same recovery plan for additional tests.  However, the Test option for the recovery plan is dimmed (Run option is still available).  What I need to remove the stimulus plan and recreate a whenever I run a Run and not a Test?  It is a chore because I need to re-add the customizations (messages, orders), update priorities and so on.  I use SRM v4.1.1.

    Hello

    You need to re - create groups of Protection that is pushed. Stimulus plans do not need to be re-created, but you will need to reconfigure to include recreated protection groups. All customizations related to virtual machines (priorities, orders, customizations) must be configured again.

    It was a case in the 4.x versions, don't think that changed in 5.0.

    Michael.

  • Recovery plan test failed - a file is not found error

    Hi all

    Finally, I got my SRM environment installed a few days ago and made a small test with 2 VMS successfully recovery plan. Today, we run a new trial with 18 virtual machines of low priority and everything went smoothly until after 15 minutes, the process failed with the error "file not found" turn on/off the virtual machines on the remote site.

    Basically, we have 1 EMC Clariion each site with mirrorview which have been configured after EMC VMware Site Recovery Manager with EMC CLARiiON CX3 and MirrorViewS implementation and MRS. 1.0 Guide. We have detected that the snashot created recovery Clarrion is placed to the right of the active state after the beginning of the trial, but after 15 minutes later he returned to Inactive.

    Other research showed me that the error that gives me the recovery plan test is correct given that the snapshot is no longer active and all files in the virtual machines (VMX and VMDK) that the SRM tries to light are on the snapshot.

    Any of you have seen something like that?

    Thanks in advance.

    Saludos/looks

    Nicolas Solop

    Buenos Aires, Argentina

    -


    Mi empresa

    En mi perfil LinkedIn

    Grupo de Virtualizacion en Español of Linkedin

    -


    Hello

    Our best practices for configuring CLARiiON SnapView, which copies itself on the first point of entry in the catch instant times the volume of production is to distribute between 20-30% of the production LUN for the RLP LUNS box

    Regarding your volume of 300 GB of LUN LUN Pool reserved (and you might need more than one - that is to say if you have a consistent snapshot that includes multiple LUNS it will add ot the space required)-you should provide at least a 30 GB, otherwise a 60 GB LUNS in your region Reserved LUN Pool

    I would try to increase the RLP LUNS for this kind of size and try again

    Concerning

    Alex Tanner

  • SRM API: How to specify if the recovery operation must be planned migration or recovery after disaster

    Is it possible using the SRM API to specify whether we want a planned Migration or a recovery during failover?

    In addition, exactly how do we use the APIs AnswerPrompt and ListPrompts? Examples would be appreciated. Thank you!

    If you want to run the disaster recovery, you must use the recovery option (number 0) failover Mode. The SRM 5.8, we introduce a new Mode of recovery option - migration (planned Migration - number 5). This command is not added to the SRM API documentation, but will be updated soon.

    Example:

    PowerCLI > $RPmode = New-Object VMware.VimAutomation.Srm.Views.SrmRecoveryPlanRecoveryMode

    PowerCLI > $RPmode.Value__ = 5

    PowerCLI > $RPmode.ToString)

    > Migrate

    Orders ListPrompts and AnswerPrompt have nothing to do with the implementation of the plan (planned or disaster recovery Migration).

    -Daniel G.

  • Recovery disk and installing the new OS no work

    Hello Sir I m umer

    I m facing various errors I can't correctly install windows or I 2 copy recory error disk recovery & during the process a few times see the files for disk restoreing hard stop and restart said after show error of Boot/Bcd I make my free partitions and delete the recovery and via recovery dvd disc nothing had happened to

    I did HDD Test by pressing F2 and F2 does not work as before it runs in dos mode now and I also takes memory test is fine

    What should I do?

    I restore my Hp laptop using the recovery disk every thing goes fine, but in the last step it restarts notebook or see the boot/BCD error

    I test my hard drive by pressing F2 work in dos mode past Test Ram Test Passed I have 2 RAM inside one also comes with hp & kingston 2nd company ram I have installed myself.

    F11 also show error bcd...

    I try windows 8 last process will restart after I get out of my 1 ram and then I apply the procedure of recovery even disk error (BCD) I install 1 ram and pull for my 2nd ram I do step by step, slot by slot.

    I trace error, a RAM is not ok, after restoring my laptop I handed that ram and system and then work to slow down or block, or I retest ram hp before trace error the hp test was passed (why?)

    I back the Ram.  in those days the Rams are expensive.

    My problem is solved. HP need some improvements in the quality and also extend the period of warrienty as a minimum of 2 years

    HP need to have free customer services,

  • recovery plan. Mount LUNs for VM

    Hi all

    I'm new to SRM, help me please,

    I have DS4800 and mirror lun with the VMFS and mirror lun with data (sql2008).

    In my recovery plan, I need map LUNs with SQL data and run SQL VM. How can I do this?

    THX!

    Hello

    I did some tests today. Works perfectly.

    I tried physical and virtual RDMs and SRM has done all the work.

    In addition, Windows (2003/2008) acknowledged and turned up the same drive letter.

    Good luck

    Michael.

  • Create the Recovery Plan

    Hello

    I install SRM for the first time. It is with the 1.0 1.0.1 update 1 Patch 3 (build 154949) is installed. I have the software installed and configured. The reproduction of painting works and SRA can communicate with the hardware. My VMs are on the LUN replcated. I have implemented the Protection Group and you can see the dummy VMs on the remote site of the network and the correct resource pool. Everything is good so far...

    Of course, the next step is to implement a Recovery Plan. When I run the wizard, I stop at step 2, there is no group of Protection listed for me to choose. What I'm negliecting to do! I don't see the error messages, which leads me to believe that miss me a step somewhere I followed the Administrator's guide.

    TIA,

    Julian.

    Even if you create a protection group using the vCenter and SRM server on the side of your protection, you create a recovery plan in the vCenter Server where it will be executed.  If you need to connect to the Server vCenter site recovery to create a recovery plan for your production VMs - looks like you might be connected to the protection Server vCenter Server-side.

    When you try to create a plan for relief on your protection server side, SRM believes you want to retrieve the virtual machines that run normally on the remote site.

    -Jon

  • Run Recovery Plan - turn off virtual machines to the protected Site?

    Hello

    Pretty silly question here...  I read that when you run the Recovery Plan SRM will equip all virtual machines protected on the protected site.  Is this the case?

    Thank you

    Dave

    Exactly.  In this case, workloads on the recovering site absolutely remains lit throughout the entire test or recovery.

  • Cannot set up Firefox sync on desktop - no recovery key and will not let me connect to get

    I downloaded Firefox for my new android phone and wanted to sync my office with the mobile app. When I went it said I had an account already set in place, but since I don't remember the information about this I just ended up changing the password so I could identify and then deleted the entire account.

    I have advanced and set up a new sync account, but he never gave me a recovery key. I don't think not that anything like that, but then the failure of the initial synchronization and I got an error message indicating the user name or password is incorrect.

    This happened twice and every time I went back and was over by resetting the password or deleting the whole account. But whenever I have go through the steps of creating another account never gave me a recovery key.

    I looked around and I tried following the steps to get a recovery key, but I don't have the ability to manage my account (perhaps because it was never entirely created and never went through an initial synchronization?) and I get an error message indicating the user name and password is incorrect, whenever I try to go through the steps to reset the recovery key. This is despite the fact that I can connect with the same credentials on the page of Firefox sync - for some reason any he just does not accept the normal browser sync tab.

    I am running Windows 7 Home Premium and 13.0.1 Firefox version. No matter what help you can give me would be most appreciated as this has been driving me crazy for the last hours I'm trying to work through this.

    Hello

    Please see this for more details about the recovery key. You can also try to start over again using these steps (three parts): https://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync

    If you are able to connect to the synchronization site which means the account still exists. In this case, you can try to delete the account, wait a few minutes and then try to configure the synchronization as described in the previous link.

    To check potential temporary disruptions of synchronization: https://services.mozilla.com/status/

Maybe you are looking for

  • Intranet app - authentication error 401 victory

    After patch v.40 most of our customers who use firefox reported a problem to access our intranet web app.I have no solution to these problems and this very irritated. I don't know how to explain it to our customers.OK, I solved the problem on my mach

  • Gmail does not

    I installed Firefox to 15.0.1, Gmail does not load, he arrived at 75% on the progress bar and crashes. Any ideas?Justine

  • Locked out if iTunes on IPad

    Hope some can help you with this - have reset my Apple ID, but can't access iTunes.  He still has my old ID attached and I can't get around it. Very irritating, perhaps I'm missing a step, but its put me in a circle of reset, I do and I still can't g

  • 14-af118AU HP: hp Driver 14-af118AU

    Help me please, I just bought hp 14-af118AU and I have install windows 8 32-bit but I can not find driver in website (usb unknown device grafic and vga controller, sm bus controller) Thank you for all

  • How can I change my printer to scan to the computer?

    I have a HP Office Jet Pro 8600. When I try to analyze screen a tw computers listed. Said owner PC (USB), then the computer is listed with a! on the image. I get very frustrated by this pleas help!