3PAR Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Remote copy script
PostPosted: Sun Jan 22, 2012 5:58 pm 

Joined: Sun Nov 13, 2011 3:54 am
Posts: 11
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Remote copy script
PostPosted: Sun Apr 01, 2012 8:01 am 

Joined: Sun Nov 13, 2011 3:54 am
Posts: 11
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Remote copy script
PostPosted: Sun Apr 01, 2012 10:23 am 
Site Admin
User avatar

Joined: Tue Aug 18, 2009 10:35 pm
Posts: 1172
Location: Dallas, Texas
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Remote copy script
PostPosted: Thu Mar 21, 2013 10:58 am 

Joined: Sun Jul 29, 2012 9:30 am
Posts: 576
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | DVGFX2 by: Matt