Remote copy script

Post Reply
psshyju
Posts: 11
Joined: Sun Nov 13, 2011 3:54 am

Remote copy script

Post by psshyju »

Hi Team,

We are in process of settin up the RCIP async long replcation.Since I am very good in scripting Could you please anyone share me any sample script for scheduling the replication task of remote copy group.If I am not mistaken schueduling of the replication task is not possible from the IMC.Also needs to know if I have the script is there any way I can schedule this task from "taks from all connected system".

Thanks in advance.

Cheers,

Shyju
psshyju
Posts: 11
Joined: Sun Nov 13, 2011 3:54 am

Re: Remote copy script

Post by psshyju »

Guys,

Remote copy sync schdule option was built in with IMC 4.2.1.I have setup rcip with 1 hr and 30 min schedule sync replication option and all are working well.

cheers

Shyju.
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: Remote copy script

Post by Richard Siemers »

Just a note on setting up scheduled tasks on 3PAR... you have to use a local account on the 3PAR to do it. If you have your 3PAR integrated with Active Directory or LDAP authentication, the tasks you schedule with these external accounts will fail to run.

As for the commands themselves to execute the remote copy sync, it should be by the book.

What condition are the remote luns to be synced in? For example, are they to me (re)mounted by a host after the sync completes, or do they just wait for the next sync?
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
hdtvguy
Posts: 576
Joined: Sun Jul 29, 2012 9:30 am

Re: Remote copy script

Post by hdtvguy »

It is pretty straight forward to kick off a remote copy, we are going to be using external scheduling program that will just call the below script, you just pass it the Remote Copy Group name.


@ECHO OFF
@setlocal
:: Set the hostname of the 3par storage system here
set TPDSYSNAME=arrayname
:: Set the location of the pwfile you created with "setpassword -saveonly -file"
set TPDPWFILE=arrayid.pwfile
:: Force all commands to execute without confirmation
set TPDFORCE=1
:: Add the path of the 3PAR cli bin folder to your existing path
set PATH=c:\Program Files (x86)\3par\inform_cli_3.1.2\bin;%PATH%

set ERRORLEVEL=

set RCGROUP_NAME=%1


echo Starting to sync Remote Copy Group - %RCGROUP_NAME%
call syncrcopy %RCGROUP_NAME%

if %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER

echo Synchronization of Remote Copy Group %RCGROUP_NAME% has started successfully
GOTO FINISH


:ERROR_HANDLER
echo.
echo Error occured starting synchronization of remote copy group - %RCGROUP_NAME%
echo.
exit %ERRORLEVEL%

:FINISH
Post Reply