HPE Storage Users Group https://3parug.com/ |
|
Remote copy script https://3parug.com/viewtopic.php?f=17&t=116 |
Page 1 of 1 |
Author: | psshyju [ Sun Jan 22, 2012 5:58 pm ] |
Post subject: | Remote copy script |
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 |
Author: | psshyju [ Sun Apr 01, 2012 8:01 am ] |
Post subject: | Re: Remote copy script |
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. |
Author: | Richard Siemers [ Sun Apr 01, 2012 10:23 am ] |
Post subject: | Re: Remote copy script |
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? |
Author: | hdtvguy [ Thu Mar 21, 2013 10:58 am ] |
Post subject: | Re: Remote copy script |
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 |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |