Pre-freeze script Linux failed with error

Availability for the Always-On Enterprise

Pre-freeze script Linux failed with error

Veeam Logoby lukeroom » Thu Dec 18, 2014 1:09 pm

Hey,

exist for the Linux pre-freeze and post-thaw script a description / instructions ?

we get an error message when veeam run the script:

"Timed out waiting for script to finish execution."

Here is the script:

#!/bin/bash
touch /tmp/prescript.dat
exit 0

The script works fine. But we get an error message During the backup.
lukeroom
Enthusiast
 
Posts: 31
Liked: never
Joined: Tue Dec 09, 2014 6:41 am
Full Name: Lukas Zimmer

Re: Pre-freeze script Linux failed with error

Veeam Logoby Vitaliy S. » Thu Dec 18, 2014 8:42 pm

Hi Lukas,

Are these scripts triggered successfully when you do a snapshot via vSphere Client with quiescence enabled?

Thanks!
Vitaliy S.
Veeam Software
 
Posts: 20360
Liked: 1179 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Pre-freeze script Linux failed with error

Veeam Logoby lukeroom » Fri Dec 19, 2014 6:52 am

Good Morning,

we don´t use scripts over the vmwaretools. we use scripts from veeam B&R backup job "application-aware processing options" " Scripts" "Linux-scripts".
Theses scripts don´t start when i perform a snapshot over the vSphere Console.
The Scripts are located on the Veeam B&R Server.

regards
lukeroom
Enthusiast
 
Posts: 31
Liked: never
Joined: Tue Dec 09, 2014 6:41 am
Full Name: Lukas Zimmer

Re: Pre-freeze script Linux failed with error

Veeam Logoby v.Eremin » Fri Dec 19, 2014 8:50 am

The default timeout value is 600 seconds. Can you try to increase it, using the following regkey, and see whether it makes any difference?

Code: Select all
MaxGuestScriptTimeoutSec


Thanks.
v.Eremin
Veeam Software
 
Posts: 14052
Liked: 1052 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Pre-freeze script Linux failed with error

Veeam Logoby lukeroom » Fri Dec 19, 2014 10:08 am

I can´t find that regkey in the registry.

Our skript run´s 2 seconds. The Timeout can´t be the problem?!
The error message appears after 120 seconds.
lukeroom
Enthusiast
 
Posts: 31
Liked: never
Joined: Tue Dec 09, 2014 6:41 am
Full Name: Lukas Zimmer

Re: Pre-freeze script Linux failed with error

Veeam Logoby v.Eremin » Fri Dec 19, 2014 10:23 am

You have to create it the standard HKLM\SOFTWARE\VeeaM\Veeam Backup and Replication hive. Anyway, it seems that logs investigation is required, so, open a case with our support team and let them investigate it directly. Thanks.
v.Eremin
Veeam Software
 
Posts: 14052
Liked: 1052 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Pre-freeze script Linux failed with error

Veeam Logoby Lxk » Fri Jan 09, 2015 12:11 pm

You may want to check the line endings in the script and replace all "\r\n" with "\n", using the notepad++ advanced replacement mode.
Lxk
Veeam Software
 
Posts: 6
Liked: 3 times
Joined: Thu Feb 21, 2013 2:20 pm

Re: Pre-freeze script Linux failed with error

Veeam Logoby lukeroom » Mon Jan 12, 2015 7:20 am

Hello,

I have checked the script with vi:

cd /tmp$
touch datei$
mkdir ordner$

It looks good
lukeroom
Enthusiast
 
Posts: 31
Liked: never
Joined: Tue Dec 09, 2014 6:41 am
Full Name: Lukas Zimmer

Re: Pre-freeze script Linux failed with error

Veeam Logoby cby » Mon Jan 12, 2015 12:21 pm 1 person likes this post

I recall having issues with freeze script on RHEL and remembered one particular problem was the exit code. I see you are using exit 0 for successful execution on exit. I found that I had use a non-zero exit code. I found my old post:

http://forums.veeam.com/veeam-backup-replication-f2/simultaneous-freezing-of-several-vms-t7647.html?hilit=freeze#p36104

Maybe this will help.
cby
Expert
 
Posts: 108
Liked: 6 times
Joined: Tue Feb 24, 2009 5:02 pm

Re: Pre-freeze script Linux failed with error

Veeam Logoby masonit » Wed Jan 03, 2018 9:08 am

v.Eremin wrote:The default timeout value is 600 seconds. Can you try to increase it, using the following regkey, and see whether it makes any difference?

Code: Select all
MaxGuestScriptTimeoutSec


Thanks.


Hi

Should this be a DWORD?

\Masonit
masonit
Service Provider
 
Posts: 142
Liked: 11 times
Joined: Tue Oct 09, 2012 2:30 pm
Full Name: Magnus Andersson

Re: Pre-freeze script Linux failed with error

Veeam Logoby Mike Resseler » Wed Jan 03, 2018 9:19 am

Hi Masonit,

Yes, a DWORD.
Mike Resseler
Veeam Software
 
Posts: 3672
Liked: 402 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler


Return to Veeam Backup & Replication



Who is online

Users browsing this forum: No registered users and 1 guest