Comprehensive data protection for all workloads
Post Reply
pizang
Enthusiast
Posts: 61
Liked: never
Joined: Aug 02, 2009 7:33 pm
Contact:

Prefreeze and postthaw scripts not fired

Post by pizang »

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: Aug 02, 2009 7:33 pm
Contact:

Re: Prefreeze and postthaw scripts not fired

Post by pizang »

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: Aug 02, 2009 7:33 pm
Contact:

Re: Prefreeze and postthaw scripts not fired

Post by pizang »

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.
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Prefreeze and postthaw scripts not fired

Post by Vitaliy S. »

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.
pizang
Enthusiast
Posts: 61
Liked: never
Joined: Aug 02, 2009 7:33 pm
Contact:

Re: Prefreeze and postthaw scripts not fired

Post by pizang »

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.
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Prefreeze and postthaw scripts not fired

Post by Vitaliy S. »

Miroslaw,

Yes, you're right :)
Post Reply

Who is online

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