Comprehensive data protection for all workloads
Post Reply
lukeroom
Enthusiast
Posts: 32
Liked: never
Joined: Dec 09, 2014 6:41 am
Full Name: Lukas Zimmer
Contact:

Pre-freeze script Linux failed with error

Post by lukeroom »

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.
VP, Product Management
Posts: 27121
Liked: 2722 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. »

Hi Lukas,

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

Thanks!
lukeroom
Enthusiast
Posts: 32
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 »

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
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Pre-freeze script Linux failed with error

Post by veremin »

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: 32
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 »

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.
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Pre-freeze script Linux failed with error

Post by veremin »

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 »

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: 32
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 »

Hello,

I have checked the script with vi:

cd /tmp$
touch datei$
mkdir ordner$

It looks good
cby
Expert
Posts: 109
Liked: 6 times
Joined: Feb 24, 2009 5:02 pm
Contact:

Re: Pre-freeze script Linux failed with error

Post by cby » 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: 325
Liked: 23 times
Joined: Oct 09, 2012 2:30 pm
Full Name: Maso
Contact:

Re: Pre-freeze script Linux failed with error

Post by masonit »

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
Product Manager
Posts: 8045
Liked: 1263 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 »

Hi Masonit,

Yes, a DWORD.
Post Reply

Who is online

Users browsing this forum: No registered users and 123 guests