Availability for the Always-On Enterprise
Post Reply
lukeroom
Enthusiast
Posts: 31
Liked: never
Joined: Dec 09, 2014 6:41 am
Full Name: Lukas Zimmer
Contact:

Pre-freeze script Linux failed with error

Post by lukeroom » 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.

Vitaliy S.
Veeam Software
Posts: 21394
Liked: 1273 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Pre-freeze script Linux failed with error

Post by Vitaliy S. » 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!

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

Re: Pre-freeze script Linux failed with error

Post by lukeroom » 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

v.Eremin
Veeam Software
Posts: 15077
Liked: 1132 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Pre-freeze script Linux failed with error

Post by v.Eremin » 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.

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

Re: Pre-freeze script Linux failed with error

Post by lukeroom » 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.

v.Eremin
Veeam Software
Posts: 15077
Liked: 1132 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Pre-freeze script Linux failed with error

Post by v.Eremin » 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.

Lxk
Novice
Posts: 6
Liked: 3 times
Joined: Feb 21, 2013 2:20 pm
Contact:

Re: Pre-freeze script Linux failed with error

Post by Lxk » 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.

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

Re: Pre-freeze script Linux failed with error

Post by lukeroom » Jan 12, 2015 7:20 am

Hello,

I have checked the script with vi:

cd /tmp$
touch datei$
mkdir ordner$

It looks good

cby
Expert
Posts: 108
Liked: 6 times
Joined: Feb 24, 2009 5:02 pm
Contact:

Re: Pre-freeze script Linux failed with error

Post by cby » 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-re ... eze#p36104

Maybe this will help.

masonit
Service Provider
Posts: 161
Liked: 12 times
Joined: Oct 09, 2012 2:30 pm
Full Name: Magnus
Contact:

Re: Pre-freeze script Linux failed with error

Post by masonit » 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

Mike Resseler
Veeam Software
Posts: 4668
Liked: 498 times
Joined: Feb 08, 2013 3:08 pm
Full Name: Mike Resseler
Location: Belgium
Contact:

Re: Pre-freeze script Linux failed with error

Post by Mike Resseler » Jan 03, 2018 9:19 am

Hi Masonit,

Yes, a DWORD.

Post Reply

Who is online

Users browsing this forum: ctalbot, DGrinev, Google [Bot] and 66 guests