Availability for the Always-On Enterprise
Post Reply
Poweruser
Expert
Posts: 174
Liked: 5 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Execution order of Pre-Freeze vs. Pre-Kob Scripts

Post by Poweruser » Aug 11, 2018 11:17 am

Depending on the script you have, you need a different execution order.
Actually the order seems not to be documented, but i guess pre job ist run before pre-freeze scripts.

In my case i need to execute pre-freeze Scripts before pre-job scripts because inside the Hyper-V there is a SQL Check script which needs to be executed first.
Afterwards all VMs are shutdown using pre-job script.
And after the job startet using the post-job script.

If the order is pre-job before pre-freeze it wont work as desired.
So a more complex execution order would be nice.
Run a pre-job script, then the pre-freeze script, then a pre-corejob script, then do the core job, run the post-corejob script, the "post-freeze"/thaw script, and finally the post-job script.

Edit: Pre-job is executed before pre-freeze

PTide
Veeam Software
Posts: 4330
Liked: 356 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Execution order of Pre-Freeze vs. Pre-Kob Scripts

Post by PTide » Aug 12, 2018 1:20 pm

Hi,

It runs as follows: pre-job script, pre-freeze, post-thaw, post-job.
Please note, there is only on pair of pre/post-job scripts per one backup job, whereas you can specify pre-freeze and post-thaw scripts individually per VM.
In my case i need to execute pre-freeze Scripts before pre-job scripts because inside the Hyper-V there is a SQL Check script which needs to be executed first.
Why wouldn't you trigger the SQL script from a pre-job script instead?
Afterwards all VMs are shutdown using pre-job script.
May I ask you why would you shutdown the VMs in the first place? Why not to let VSS do its job?

Thanks

Poweruser
Expert
Posts: 174
Liked: 5 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Re: Execution order of Pre-Freeze vs. Pre-Kob Scripts

Post by Poweruser » Aug 12, 2018 6:11 pm

a) If i want to trigger it from pre-job iam into wrong context. I have to "hack" some lines to make the script being executed in the vm. The SQL Check is started by a batch inside the VM.
So if i try to use pre-job, its executed on the backup (hyper-v) host only. And then i need to push it onto the machine myself. Would be easier if Veeam pushes.

b) Shutdown is a safe and clean way to backup. There are no dependencies if i do a shutdown. So its 100% safe and consistent. If i use VSS there is a risk. The big software vendor (i use) suggest offline+online backup and never only online backup.
I think thats terrible, but thats what they state. I cant complain if i dont follow their practice :-( What a pity!

PTide
Veeam Software
Posts: 4330
Liked: 356 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Execution order of Pre-Freeze vs. Pre-Kob Scripts

Post by PTide » Aug 14, 2018 10:36 am

The big software vendor (i use) suggest offline+online backup and never only online backup.
May I ask you what is the application and vendor that you use?

Thanks

Poweruser
Expert
Posts: 174
Liked: 5 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Re: Execution order of Pre-Freeze vs. Pre-Kob Scripts

Post by Poweruser » Aug 14, 2018 7:55 pm

you got a private message, as its not public.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 36 guests