Storage Boards Cleanup
To make it easier to find information about HPE Storage products and solutions, we are doing spring cleaning. This includes consolidation of some older boards, and a simpler structure that more accurately reflects how people use HPE Storage.
Disk Arrays
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.