Skip to main content

alphaWorks  >  Forums  >  Scripting Tools for SAN Volume Controller  >  developerWorks

FlashCopy automation script - SVC    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 16 - Pages: 2 [ 1 2 | Next ] - Last Post: Apr 1, 2009 6:03 PM Last Post By: tagit Threads: [ Previous | Next ]

Posts: 3
Registered: Sep 01, 2006 07:35:16 AM
FlashCopy automation script - SVC
Posted: Sep 01, 2006 07:51:10 AM
Click to report abuse...   Click to reply to this thread Reply
Hi Everyone,

Does anyone have a FlashCopy script. I want to automate this process:
1. Suspend the ESX Server guest - This could be an external script
2. Start the FlashCopy script. We want to start at 12:00am (midnite)
3. Create another FlashCopy version. There will be source, target1 and target2.

Any ideas or can anyone post your script.

Thanks in advance.
Teio
ajeffco

Posts: 4
Registered: Feb 08, 2007 04:43:09 PM
Re: FlashCopy automation script - SVC
Posted: Feb 08, 2007 04:45:11 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
We use a shell script that executes an rsh to a windows server, putting their database into "online dump" mode, then executes flash copies to two targets based on AM/PM rules, then if the flash is successful, then it put the application into normal mode. I'll sanitize the script a little, then post it up, and you can use it if you want.

Al

Posts: 3
Registered: Sep 01, 2006 07:35:16 AM
Re: FlashCopy automation script - SVC
Posted: Mar 03, 2007 07:14:22 AM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
That will be great ajeffco, Would like to see your scripts. Thanks Teio

Posts: 1
Registered: Mar 05, 2007 05:02:17 PM
Re: FlashCopy automation script - SVC
Posted: Mar 05, 2007 05:05:45 PM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
I would also appreciate a copy of the scripts. LJS
bootsie

Posts: 1
Registered: Apr 04, 2007 03:09:10 PM
Re: FlashCopy automation script - SVC
Posted: Apr 04, 2007 03:10:56 PM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
Hi,

I too like to have a copy of this script.

Posts: 1
Registered: May 14, 2007 06:02:49 AM
Re: FlashCopy automation script - SVC
Posted: May 14, 2007 06:03:40 AM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
Hi,

Can you sent me a copy of the script as well?
Many thanks.

Klaas

Posts: 1
Registered: Jul 18, 2007 10:26:22 AM
Re: FlashCopy automation script - SVC
Posted: Jul 18, 2007 10:29:14 AM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
Could you please send me a copy of the Flash Copy script... Thanks

Posts: 1
Registered: Jul 23, 2007 08:11:07 AM
Re: FlashCopy automation script - SVC
Posted: Jul 23, 2007 08:14:37 AM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
Could you send me a copy of the script?
Thanks.

Posts: 1
Registered: Jul 16, 2007 03:45:50 PM
Re: FlashCopy automation script - SVC
Posted: Jul 31, 2007 05:17:26 PM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
Put me on the list for wanting to see the script too!

Thanks

Pat
nykos

Posts: 1
Registered: May 24, 2007 04:49:58 AM
Re: FlashCopy automation script - SVC
Posted: Dec 17, 2007 09:35:01 AM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
Hi,

Can you send me a copy of this script. Thank's

roberto.gessa@rbs.fr
wies

Posts: 1
Registered: Mar 08, 2008 05:10:59 PM
Re: FlashCopy automation script - SVC
Posted: Mar 08, 2008 05:13:06 PM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
I'd be really grateful if you could send me the script also.
Thank you in advance,
wies
prudn

Posts: 1
Registered: Mar 12, 2008 11:16:08 AM
Re: FlashCopy automation script - SVC
Posted: Mar 12, 2008 11:18:04 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Can you send me a copy of this script. Thank's

super_peter_ru @ inbox ru

--
Petr
tbrim

Posts: 1
Registered: Mar 18, 2008 06:32:15 PM
Re: FlashCopy automation script - SVC
Posted: Mar 18, 2008 06:32:50 PM   in response to: ajeffco in response to: ajeffco's post
Click to report abuse...   Click to reply to this thread Reply
A copy of the script would be helpful. Thanks
sanadmin

Posts: 1
Registered: Apr 28, 2008 05:12:49 PM
Re: FlashCopy automation script - SVC
Posted: Apr 28, 2008 05:17:58 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
#!/usr/bin/bash
  1. flashcopy.ksh by Chris Medvesky 4/28/2008 for automation of FlashCopies
  2. Usage: flashcopy.ksh (status prepare start) (SVC1 SVC2) (FCNAME)
export LOG=/home/logs

FCSTAT="/bin/ssh -ladmin -i /home/.ssh/authorized_keys $2 svcinfo lsfcmap -filtervalue FC_mapping_name=$3 -delim : "

case "$1" in
'status')
###The 9th colon delimited field in the svcinfo lsfcmap gives us FCstate
FCSTATE=`$FCSTAT|/bin/grep -i $3|awk -F : {'print $9'}`
echo $FCSTATE
;;
'prepare')
FCSTATE=`$FCSTAT|/bin/grep -i $3|awk -F : {'print $9'}`
###Test if the state is 'prepared'
if grep -i prepared $FCSTATE> /dev/null 2>&1
then
echo "PREPARED"
else
echo "PREPARING"
ssh -ladmin -i /home/.ssh/authorized_keys $2 svctask prestartfcmap $3>>$LOG
echo $? #echo the return code
fi
;;
'start')
FCSTATE=`$FCSTAT|/bin/grep -i $3|awk -F : {'print $9'}`
if grep -i prepared $FCSTATE
then
echo "FLASHCOPY STARTING"
##start the FlashCopy
ssh -ladmin -i /home/.ssh/authorized_keys $2 svctask startfcmap $3>>$LOG
echo $?
else
echo "NOT PREPARED"
fi
;;
esac

Message was edited by: sanadmin
Khue

Posts: 106
Registered: Jul 24, 2006 02:47:11 PM
Re: FlashCopy automation script - SVC
Posted: Feb 13, 2009 08:01:25 AM   in response to: sanadmin in response to: sanadmin's post
Click to report abuse...   Click to reply to this thread Reply
I am kind of new to Perl scripting but this sounds like what I need. What are example values for (SVC1 SVC2) and (FCNAME)?

Point your RSS reader here for a feed of the latest messages in all forums