Pre and Post scripts on Server 2008

Hyper-V specific discussions

Pre and Post scripts on Server 2008

Veeam Logoby remko.de.koning » Thu Jul 02, 2015 9:06 am

Hi guys, just a quick question.

I have been playing with Pre and Post scripts on a Server 2008 Enterprise server (not the R2 version!!!).
Time after time this was failing. I thought I was loosing my mind and tried the same thing on a server 2012.
My scripts ran without a problem.
So my question is: Is it possible at all to run pre and post scripts on such an "old" server?

Thanks for your thoughts.

Remko
remko.de.koning
Enthusiast
 
Posts: 72
Liked: 13 times
Joined: Wed May 21, 2014 12:15 pm
Full Name: Remko de Koning

Re: Pre and Post scripts on Server 2008

Veeam Logoby PTide » Thu Jul 02, 2015 10:28 am

Hi Remko,

Time after time this was failing.


Waht do you mean by "failing". What kind of error did you encounter?

Also, please keep im mind, that default time period for script execution is 15 minutes.

Thank you.
PTide
Veeam Software
 
Posts: 3022
Liked: 247 times
Joined: Tue May 19, 2015 1:46 pm

Re: Pre and Post scripts on Server 2008

Veeam Logoby remko.de.koning » Thu Jul 02, 2015 11:24 am

The exact error is: Failed to prepare guest for volume snapshot.

This happens as soon as you enable the application aware processing with the scripts part enabled and everything else disabled.
Image Image

The integration components are up2date.

If I use exact the same settings on another server, it works without any problems. So I was curious if this might be related to Server 2008 Enterprise (not the R2 version)
remko.de.koning
Enthusiast
 
Posts: 72
Liked: 13 times
Joined: Wed May 21, 2014 12:15 pm
Full Name: Remko de Koning

Re: Pre and Post scripts on Server 2008

Veeam Logoby PTide » Thu Jul 02, 2015 11:36 am

Have you ever managed to run your job with pre-script inside successfully?

If so, then I'd try to select "Ignore script execution" and see if backup job fails. Or even better - try to exclude post-job script and see what will happen.

I suspect that job fails to execute due to "Require successful script execution" condition, which, in order, fails to comply "time after time", as you said.

Differences between 2008 and 2008R2 are not critical for VBR so I doubt that this could be a reason.

In case none of the above helps, then I'd double check your script and open a case with Tech.support.

Thank you.
PTide
Veeam Software
 
Posts: 3022
Liked: 247 times
Joined: Tue May 19, 2015 1:46 pm

Re: Pre and Post scripts on Server 2008

Veeam Logoby remko.de.koning » Thu Jul 02, 2015 12:07 pm

On this particular server I have never managed to get it working. If I apply the script on another server, it runs without a problem.
The script has been extremely simplified.
Prescript creates a c:\prescript folder
Postscript creates a c:\postscript folder

If it executes, I can continue creating my end goal. Unfortunately it doesn't execute. If I set the setting to "Ingnore script execution" the backup completes. However, without the script executed.

In the end I need to create a pre and post script for an Oracle server to put Oracle in a hot-backup mode.
remko.de.koning
Enthusiast
 
Posts: 72
Liked: 13 times
Joined: Wed May 21, 2014 12:15 pm
Full Name: Remko de Koning

Re: Pre and Post scripts on Server 2008

Veeam Logoby PTide » Thu Jul 02, 2015 12:44 pm

Ok, how about switching prescript off completely? I'm curious if the simplified postscript will be executed...

If I apply the script on another server


The only difference is the OS - 2008 vs 2012, correct? What about the user you're using to execute scripts inside the VM - does it have a permission to do so?
PTide
Veeam Software
 
Posts: 3022
Liked: 247 times
Joined: Tue May 19, 2015 1:46 pm

Re: Pre and Post scripts on Server 2008

Veeam Logoby remko.de.koning » Thu Jul 02, 2015 1:49 pm

The only difference is the OS - 2008 vs 2012, correct?


The problem only occurs on Server 2008 x32 Enterprise edition.
Server 2008 R2 and higher do not have this problem.

Also tried various users, all with the same negative result. This makes me believe that somehow this version is not supported.
remko.de.koning
Enthusiast
 
Posts: 72
Liked: 13 times
Joined: Wed May 21, 2014 12:15 pm
Full Name: Remko de Koning

Re: Pre and Post scripts on Server 2008

Veeam Logoby vmniels » Thu Jul 02, 2015 1:51 pm

What exactly are you doing in those bat files?
VCP-DCV
Veeam Certified Engineer
http://foonet.be
vmniels
Veeam Software
 
Posts: 1520
Liked: 328 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: Pre and Post scripts on Server 2008

Veeam Logoby remko.de.koning » Thu Jul 02, 2015 1:53 pm

Promise not to laugh....
Code: Select all
md c:\prefreeze


As said, If this works, I can setup my Oracle scripts to put the Oracle database in hot backup mode. But first things first. Let try to get the script executed :D
remko.de.koning
Enthusiast
 
Posts: 72
Liked: 13 times
Joined: Wed May 21, 2014 12:15 pm
Full Name: Remko de Koning

Re: Pre and Post scripts on Server 2008

Veeam Logoby vmniels » Thu Jul 02, 2015 1:57 pm

No problem. Are you running this on Hyper-V or VMware?

Take a look at microsoft-hyper-v-f25/failed-to-prepare-guests-for-volume-snapshot-t18372.html if you are using Hyper-V

Potentially open up a support case for deeper inspection.
VCP-DCV
Veeam Certified Engineer
http://foonet.be
vmniels
Veeam Software
 
Posts: 1520
Liked: 328 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: Pre and Post scripts on Server 2008

Veeam Logoby remko.de.koning » Thu Jul 02, 2015 2:14 pm

I am running this on HyperV 2012.
Checked my VSS writers on the client. These seem to be OK.

Basically this is were it all started. This server is running on old version of Oracle 10.2.0.3.0 which doesn't have VSS.
I couldn't make a correct backup of this server with Veeam.
However, with the OCI components of version 11G one should be able to "enable" VSS support for this 10G database.
After strugling for many hours getting VSS to work with Oracle I decided to fall back to pre and post scripts. I do the same with MySQL databases by simply stopping and starting them during a backup.
I figured it would be too complicated to do this. I now realized I was wrong :lol: :lol: :lol:
remko.de.koning
Enthusiast
 
Posts: 72
Liked: 13 times
Joined: Wed May 21, 2014 12:15 pm
Full Name: Remko de Koning

Re: Pre and Post scripts on Server 2008

Veeam Logoby vmniels » Thu Jul 02, 2015 2:31 pm

I would advise you to open a support case and see why we can't snapshot this VM. This will be the easiest solution :-)
VCP-DCV
Veeam Certified Engineer
http://foonet.be
vmniels
Veeam Software
 
Posts: 1520
Liked: 328 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: Pre and Post scripts on Server 2008

Veeam Logoby remko.de.koning » Thu Jul 02, 2015 2:32 pm

Thanks Niels. Will do that.

Thank you Paval as well for your thoughts.
remko.de.koning
Enthusiast
 
Posts: 72
Liked: 13 times
Joined: Wed May 21, 2014 12:15 pm
Full Name: Remko de Koning

Re: Pre and Post scripts on Server 2008

Veeam Logoby remko.de.koning » Sun Jul 05, 2015 7:13 pm 1 person likes this post

Talked to Veeam support. Appearantly a Microsoft patch was causing the problem.

See http://www.veeam.com/kb2037

After uninstalling the patch, things started working again.
remko.de.koning
Enthusiast
 
Posts: 72
Liked: 13 times
Joined: Wed May 21, 2014 12:15 pm
Full Name: Remko de Koning


Return to Microsoft Hyper-V



Who is online

Users browsing this forum: No registered users and 9 guests