-
- Enthusiast
- Posts: 92
- Liked: 18 times
- Joined: May 21, 2014 12:15 pm
- Full Name: Remko de Koning
- Contact:
Pre and Post scripts on Server 2008
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
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
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Pre and Post scripts on Server 2008
Hi Remko,
Also, please keep im mind, that default time period for script execution is 15 minutes.
Thank you.
Waht do you mean by "failing". What kind of error did you encounter?Time after time this was failing.
Also, please keep im mind, that default time period for script execution is 15 minutes.
Thank you.
-
- Enthusiast
- Posts: 92
- Liked: 18 times
- Joined: May 21, 2014 12:15 pm
- Full Name: Remko de Koning
- Contact:
Re: Pre and Post scripts on Server 2008
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.
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)
This happens as soon as you enable the application aware processing with the scripts part enabled and everything else disabled.
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)
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Pre and Post scripts on Server 2008
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.
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.
-
- Enthusiast
- Posts: 92
- Liked: 18 times
- Joined: May 21, 2014 12:15 pm
- Full Name: Remko de Koning
- Contact:
Re: Pre and Post scripts on Server 2008
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.
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.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Pre and Post scripts on Server 2008
Ok, how about switching prescript off completely? I'm curious if the simplified postscript will be executed...
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?If I apply the script on another server
-
- Enthusiast
- Posts: 92
- Liked: 18 times
- Joined: May 21, 2014 12:15 pm
- Full Name: Remko de Koning
- Contact:
Re: Pre and Post scripts on Server 2008
The problem only occurs on Server 2008 x32 Enterprise edition.The only difference is the OS - 2008 vs 2012, correct?
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.
-
- Product Manager
- Posts: 5797
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Pre and Post scripts on Server 2008
What exactly are you doing in those bat files?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Enthusiast
- Posts: 92
- Liked: 18 times
- Joined: May 21, 2014 12:15 pm
- Full Name: Remko de Koning
- Contact:
Re: Pre and Post scripts on Server 2008
Promise not to laugh....
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
Code: Select all
md c:\prefreeze
-
- Product Manager
- Posts: 5797
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Pre and Post scripts on Server 2008
No problem. Are you running this on Hyper-V or VMware?
Take a look at http://forums.veeam.com/microsoft-hyper ... 18372.html if you are using Hyper-V
Potentially open up a support case for deeper inspection.
Take a look at http://forums.veeam.com/microsoft-hyper ... 18372.html if you are using Hyper-V
Potentially open up a support case for deeper inspection.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Enthusiast
- Posts: 92
- Liked: 18 times
- Joined: May 21, 2014 12:15 pm
- Full Name: Remko de Koning
- Contact:
Re: Pre and Post scripts on Server 2008
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
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
-
- Product Manager
- Posts: 5797
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Pre and Post scripts on Server 2008
I would advise you to open a support case and see why we can't snapshot this VM. This will be the easiest solution
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Enthusiast
- Posts: 92
- Liked: 18 times
- Joined: May 21, 2014 12:15 pm
- Full Name: Remko de Koning
- Contact:
Re: Pre and Post scripts on Server 2008
Thanks Niels. Will do that.
Thank you Paval as well for your thoughts.
Thank you Paval as well for your thoughts.
-
- Enthusiast
- Posts: 92
- Liked: 18 times
- Joined: May 21, 2014 12:15 pm
- Full Name: Remko de Koning
- Contact:
Re: Pre and Post scripts on Server 2008
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.
See http://www.veeam.com/kb2037
After uninstalling the patch, things started working again.
Who is online
Users browsing this forum: No registered users and 28 guests