Page 1 of 1

Remote copy script

Posted: Sun Jan 22, 2012 5:58 pm
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

Re: Remote copy script

Posted: Sun Apr 01, 2012 8:01 am
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.

Re: Remote copy script

Posted: Sun Apr 01, 2012 10:23 am
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?

Re: Remote copy script

Posted: Thu Mar 21, 2013 10:58 am
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