Hey Guys,
Please treat me gentle, I am a noob on the 3PAR scripting side, but hopefully learning quickly
![Smile :-)](./images/smilies/icon_e_smile.gif)
Okay, here is my situation. I need to create/refresh a clone everynight, execute by our production scheduler. Hence the time could occur anytime during the morning.
This has currently been working for 5-6 years on IBM XIV LUNs, and I need to migrate to 3PAR.
I have a HP-UX server with VG created off the batch disk LUN and seperate VG off clone LUN.
So, my processes pretty simple:
- Stop oracle
- unmount both filesystem
- deactivate both VGs
- Call a CLI to refresh snapshot (or clone in 3PAR world)
- active both VGs
- Clean snapshot/clone disk with fsck
- mount filesystems
- Start oracle
Simple? Right?
The problem is that the 3PAR commands only schedules the task and does not wait for completion.
#
# Valid Clone
#
devserver: /3PAR # ssh 3par_devserver@ho3par-01 createvvcopy -r Batch_Snapshot_Online_1
Resync was started. child = Batch_Snapshot_Online_1, task ID = 6084devserver: /3PAR # echo $?
0
# is the status [0] of the command returned?
What is the best way to check for the schedule job completion?
Do I simply loop around :
while ( not completed )
{
devserver: /3PAR # ssh 3par_devserver@3par-01 showtask -d 6084
}
The solution needs to be self contained on the HP-UX box.
Cheers
Viktor