Disk Enclosures
1752806 Members
5957 Online
108789 Solutions
New Discussion юеВ

pairevtwait script help!

 
Edgar_10
Frequent Advisor

pairevtwait script help!

Hi All,

Im having difficulty with script which is supposed to get status of 3 BC Vgs, if the BC VGs status is PAIR then the next step is to split the BC VGs, if status is COPY then the script must sleep and then loop until PAIR status .

Any help would be most appreciated, see attached for current script .
4 REPLIES 4
Vincent Fleming
Honored Contributor

Re: pairevtwait script help!

You need to use "-s PAIR" and get rid of the "nowait" on the first pairevtwait command line.

Then it will wait until the resync is complete.

Otherwise, with that "for" loop, it will just check the status once, and exit.

Good luck,

Vince
No matter where you go, there you are.
Edgar_10
Frequent Advisor

Re: pairevtwait script help!

Hi Vince,

Im gettin errors after the change, can you help me out with the script logic/format?

Much appreciated!
Vincent Fleming
Honored Contributor

Re: pairevtwait script help!

What kind of errors? Can you post up the script, and the output when it's run?
No matter where you go, there you are.
Vincent Fleming
Honored Contributor

Re: pairevtwait script help!

Oh - before you run it, put a "set -x" as the first executable line of the script... that will expand the output greatly.

Thanks.
No matter where you go, there you are.