Prefreeze and postthaw scripts not fired

Availability for the Always-On Enterprise

Prefreeze and postthaw scripts not fired

Veeam Logoby pizang » Wed Aug 26, 2009 11:17 am

I have a problem with a pre-freeze and post-thaw scripts on Windows 2000 Server. I have created "C:\Program Files\VMware\VMware Tools\backupScripts.d" directory and put file plsosfp012.bat in it.
The source of that bat is as follows:

Code: Select all
echo startScript >> c:\a.txt
if "%1%" == "freeze" goto doFreeze
if "%1%" == "freezeFail" goto doFreezeFail
if "%1%" == "thaw" goto doThaw
goto EOF

:doFreeze
echo freeze >> c:\a.txt
net stop "SQL Server (SQLEXPRESS)"
goto EOF

:doFreezeFail
echo freezeFail >> c:\a.txt
net start "SQL Server (SQLEXPRESS)"
goto EOF

:doThaw
echo thaw >> c:\a.txt
net start "SQL Server (SQLEXPRESS)"
goto EOF

:EOF



After that I have initiated a snapshot with quiescence. A.txt was not created not SQL server was stopped. Of course when I try to backup this machine (with VmWare Tools enabled) bat file is not fired.
W2K is placed on ESXi4 host and has VmTools build 176525. When I do the same on W2K3Host - it works without a problem.

Anyone any idea why it is not working?
pizang
Enthusiast
 
Posts: 61
Liked: never
Joined: Sun Aug 02, 2009 7:33 pm

Re: Prefreeze and postthaw scripts not fired

Veeam Logoby pizang » Wed Aug 26, 2009 11:35 am

Update: I can see in event-viewer that LGTO driver was fired so vmtools receive a signal to quiescence a system.

I have checked another W2K host and it is not working either.
pizang
Enthusiast
 
Posts: 61
Liked: never
Joined: Sun Aug 02, 2009 7:33 pm

Re: Prefreeze and postthaw scripts not fired

Veeam Logoby pizang » Wed Aug 26, 2009 11:50 am

Selfupdate 2: Resolved.

Documentation says that after update 3.5 U2 script should be in C:\Program Files\VMware\VMware Tools\backupScripts.d.
I have just created c:\windows\pre-freeze-script.bat and this one is working.

If you have the same problem create a Windows directory on your C drive and put pre-freeze-script.bat there.
pizang
Enthusiast
 
Posts: 61
Liked: never
Joined: Sun Aug 02, 2009 7:33 pm

Re: Prefreeze and postthaw scripts not fired

Veeam Logoby Vitaliy S. » Wed Aug 26, 2009 8:47 pm

Hello Miroslaw,

Great troubleshooting from your side! And yes, you're absolutely right, VMware had changed the script location from update 3.5 U2 to C:\Windows\ folder

Thank you for posting your update here.
Vitaliy S.
Veeam Software
 
Posts: 19773
Liked: 1120 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Prefreeze and postthaw scripts not fired

Veeam Logoby pizang » Thu Aug 27, 2009 9:02 am

I have to correct you a bit: VmWare changed it from update 3.5U2 and later to C:\Program Files\VMware\VMware Tools\backupScripts.d. Before that update this scripts reside on C:\Windows\. After U2 they should reside in C:\Program Files\VMware\VMware Tools\backupScripts.d but for Win XP SP2 and for Windows 2000 (at least Server but I suspect Prof also) old path is a correct one.
pizang
Enthusiast
 
Posts: 61
Liked: never
Joined: Sun Aug 02, 2009 7:33 pm

Re: Prefreeze and postthaw scripts not fired

Veeam Logoby Vitaliy S. » Thu Aug 27, 2009 9:07 am

Miroslaw,

Yes, you're right :)
Vitaliy S.
Veeam Software
 
Posts: 19773
Liked: 1120 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov


Return to Veeam Backup & Replication



Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Google Feedfetcher and 33 guests