03-25-2009 02:00 PM
Is there a way in sssu script to say "wait for all commands to complete before moving on" or do I have to fudge with pauses, etc.
The specific commands are:
set multimirror resync ...
set multimirror fracture ...
03-26-2009 12:21 PM
My current (very un-elgant) way of doing this is to have a
- shell script do all the unmounting
- sssu script with a resync command
- shell script that loops through and calls an sssu script that does an "ls vdisk .. xml" command on all my vdisks and dumps the results to a file
I then count how many "
Very ugly but it works so far. The hardest part (and what drove me to the loop) was waiting until all the disks were synced. There is an option you can set that is supposed to wait but it wasn't working for me...
05-08-2011 10:04 PM
A new command called "wait_until" is planned to be added in next release which will take the object name and the state to wait on. This command is desinged specifically for the kind of difficulty that you are facing. Please look out for next release of SSSU