Disk Enclosures
cancel
Showing results for 
Search instead for 
Did you mean: 

pairdisplay question?

Edgar_10
Frequent Advisor

pairdisplay question?

Hi All,

I need help with the script syntax for having a loop which checks the pair status of BC VGs which are being synchronized. I want the script to loop until the pair status equals PAIR then to exit to do another command.

Any ideas would be most appreciated!
11 REPLIES
John Poff
Honored Contributor

Re: pairdisplay question?

Hi,

We use the 'pairevtwait' command in our scripts when we are synchronizing disks. You can specify the wait time and it will wait until the disks are in PAIR state or until the timeout is reached, whichever comes first. We use a timeout value of around 10 minutes, and then put that pairevtwait command inside of a loop that will keep running it until they are paired. That way, if a sync is taking too long, your script will report it at ten minute intervals.

JP
Edgar_10
Frequent Advisor

Re: pairdisplay question?

Hi John,

Thanks for the info, but i cant seem to get a man page on "pairevtwait"?

Thanks!
John Poff
Honored Contributor

Re: pairdisplay question?

Hi,

For some reason HP doesn't install man pages with that software yet, which is a real pain. I'll be at work in a bit and I'll post some info that might help you.

JP
Edgar_10
Frequent Advisor

Re: pairdisplay question?

Thanks JP, I really appreciate it!!
John Poff
Honored Contributor

Re: pairdisplay question?

Hi,

I have a manual for all those array commands but I can't find it
right now. I'll keep looking. If I find it and I can find it on
an HP site I'll post the URL.

The way we use it is that we do the pairresync command, and then
we go into a loop with the pairevtwait command. We specify a timeout
value of ten minutes [600 seconds]. If the establish is still running
after that time the pairevtwait returns, we write a message to a log
file, and we run it again. We add the timeout value to a counter and
keep track of the total value for a total timeout. If we reach that value,
we send a page and/or an e-mail. Here is the command line we use:

pairevtwait -g $GROUP -s pair -nomsg -t $SHORTTIMEOUT

Where we have variables for the group and the timeout value.


I did the pairevtwait with a -h option and it listed the help:

# pairevtwait -h

Model : Raid-Manager-XP/HP-UX
Ver&Rev: 01.10.02
Usage : pairevtwait [options] for HORC
-h Help/Usage
-z Set to the interactive mode
-zx Set to the interactive mode and HORCM monitoring
-q Quit(Return to main())
-g Specify the group_name
-d Specify the pair_volume_name
-d[g] [mun#] Specify the raw_device without '-g' option
-d[g] [mun#] Specify the LDEV# in the RAID without '-g' option
-nomsg Not display message of pairevtwait
-nowait Set to the No_wait_mode
-s ... Specify the status_name(smpl/copy/pair/psus/psuse(psue))
-t [interval] Specify the Wait_time
-l Specify the local only
-FCA Specify the force operation for cascading CA_VOL
-FBC [mun#] Specify the force operation for cascading BC_VOL



JP


Edgar_10
Frequent Advisor

Re: pairdisplay question?

Hi JP,

Thanks for the feedback. Attached is the script I have currently but the script logic is not that robust & also errors out. Could you perhaps peruse it & give me your comments/or suggested manner the script should work.

My concern is that it does not LOOP as its supposed to?

Thanks!!
John Poff
Honored Contributor

Re: pairdisplay question?

Hi,

I'll be glad to look at your loop. Your attachment didn't make it, so you might want to try posting it again.

JP

Re: pairdisplay question?

There are NO man pages for htese commands, as supplied to HP by Hitachi.
The -h option is the way to get help, or take a look at this manual:
http://h200005.www2.hp.com/bc/docs/support/SupportManual/lpg29261/lpg29261.pdf
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Vincent Fleming
Honored Contributor

Re: pairdisplay question?

Here's a link to the users guide:

http://h20000.www2.hp.com/bc/docs/support/SupportManual/lpg28385/lpg28385.pdf

Look on pg 116 for a description of the command you're using.

-Vince

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

Re: pairdisplay question?

Hi JP,

Apologies for the attachment, see the attached file please.

Regards
Andy Torres
Trusted Contributor

Re: pairdisplay question?

FYI: You can access that pdf file from the RAID Manager CD also.