Host-based backup of Microsoft Hyper-V VMs.
Post Reply
remko.de.koning
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

Post by remko.de.koning »

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
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Pre and Post scripts on Server 2008

Post by PTide »

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.
remko.de.koning
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

Post by remko.de.koning »

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)
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Pre and Post scripts on Server 2008

Post by PTide »

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.
remko.de.koning
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

Post by remko.de.koning »

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.
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Pre and Post scripts on Server 2008

Post by PTide »

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?
remko.de.koning
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

Post by remko.de.koning »

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.
nielsengelen
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

Post by nielsengelen »

What exactly are you doing in those bat files?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
remko.de.koning
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

Post by remko.de.koning »

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
nielsengelen
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

Post by nielsengelen »

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.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
remko.de.koning
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

Post by remko.de.koning »

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:
nielsengelen
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

Post by nielsengelen »

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
remko.de.koning
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

Post by remko.de.koning »

Thanks Niels. Will do that.

Thank you Paval as well for your thoughts.
remko.de.koning
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

Post by remko.de.koning » 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.
Post Reply

Who is online

Users browsing this forum: masahide.k and 29 guests