Comprehensive data protection for all workloads
Post Reply
Supraman
Enthusiast
Posts: 87
Liked: 13 times
Joined: May 23, 2015 6:58 pm
Full Name: Vinh
Contact:

Pre-Freeze and Post Thaw Script

Post by Supraman »

Hello Everyone,

May I asked how would I be able to check if my Pre-Freeze script and Post Thaw Script is working properly?

I have created a simple batch file to stop the SQl service and restart it; however, I can not tell if it is working or not. I have tried looking at the job logs and was not able to identify if it is even running.

Perhaps someone could provide me with a simple example stop a script.
PetrM
Veeam Software
Posts: 3625
Liked: 608 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Pre-Freeze and Post Thaw Script

Post by PetrM »

Hi Vinh,

The script will be considered to be executed successfully if it returns "0". Normally, you should see the green message "Running pre-freeze script in the guest OS" in job statistics view when you click on the specific VM. Just out of curiosity: why do you want to process SQL by running pre-freeze/post-thaw scripts instead of using application-aware processing which triggers SQL writer to bring application data to a consistent state?

You can find some examples on VeeamHub, probably it might help you to narrow down the issue with your script.

Thanks!
Supraman
Enthusiast
Posts: 87
Liked: 13 times
Joined: May 23, 2015 6:58 pm
Full Name: Vinh
Contact:

Re: Pre-Freeze and Post Thaw Script

Post by Supraman »

Hello Petr,

The reason why is because these Vms, we are trying to backup are server 2003 which Application Awareness is not supported so we want to see if we can manually stop SQL to flush the data out of memory for consistent backup.
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Pre-Freeze and Post Thaw Script

Post by veremin »

Yep, you surely can do that - this is exactly how many people create application-consistent backups of their VMs running outdated applications. Check the VeeamHub for script examples and these forums for more details regarding this approach. Thanks!
Supraman
Enthusiast
Posts: 87
Liked: 13 times
Joined: May 23, 2015 6:58 pm
Full Name: Vinh
Contact:

Re: Pre-Freeze and Post Thaw Script

Post by Supraman »

Thanks for the Advice Veremin, I do have a quick question and that if we use the Vmware tool to quiesce we would have to add the script within the storage option for scripts correct? As in our case Server 2003 where it does not suppose application awareness we do not put the freeze and post thaw script within the guess processing menu correct?
Mildur
Product Manager
Posts: 9846
Liked: 2604 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Pre-Freeze and Post Thaw Script

Post by Mildur »

Scripts in the storage options will be run on the backup server at the start and end of the backup job.

If you want to have the script to be executed in the vm itself, you need to schedule them by yourself with windows task scheduler in the windows 2003 vm before the backup jobs starts.

Or you find a way to let the script start a remote session from the vbr server to the windows server 2003 to stop the services. I‘m not sure if that will work.

Best would be a scheduled task inside the vm before and after the backup job is running.
Product Management Analyst @ Veeam Software
PetrM
Veeam Software
Posts: 3625
Liked: 608 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Pre-Freeze and Post Thaw Script

Post by PetrM »

Hello,

You may use VMware Tools Queiscence to create snapshot and enable application-aware processing as well, then select a specific VM in application-aware processing options and click Edit to open processing settings, select "disable application processing" on General tab, the menu for pre-freeze and post-thaw scripts remains available.

I guess it also makes sense to give a try to VMware Tools Quiescence without any additional scripts as VMware tools also interact with VSS framework, therefore SQL writer will be anyway involved in the process. But the usage of pre-freeze and post-thaw scripts inside the guest OS would be more reliable approach as Fabian has suggested.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 141 guests