VMware Cloud Community
jb42
Contributor
Contributor

Application consistent bacups, freeze scripts, enableuuid...

Hi all,

I ran into the 2008R2 issue that failed backups unless I set the disc.EnableUUID flag to false. I understood that that would give me crash consistent backups but not application consistent backups but if I used a freeze script in a backupscripts.d folder inside of the vmware tools folder it would be invoked and I'd have application consistent backups. So I wrote u a script calling diskshadow that runs sucesfully when I click it or when I take az Quiesced snapshot of the VM, but not a snap w/ memory or a snap w/out memory or quiescing. 

But the script does not appear to get called by the backup. I included a run log. But more mysterious still, on one of several VMs where I set this up, I am suddenly (as of 2/22) logging IO freeze during backups, but not as a result of my script and with the enableUUID flag set to false.

Has the 2008R2 bug been patched, and what component do I need to upgrade on my other VMs to gain the function? Or was this an auto-magical solution?

Reply
0 Kudos
3 Replies
vmroyale
Immortal
Immortal

What backup product are you using?

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
Reply
0 Kudos
jb42
Contributor
Contributor

sorry, VDP. ESXi 5.1.

Reply
0 Kudos
jb42
Contributor
Contributor

got these working. The keys were not having anything other than the freeze.bat script in the backupscripts.d folder. Then - while I'm not sure of the effect, command order in the script seemed to matter so that my script was only partially executing when called during backup.

Here's the reference KB: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100667...

Here's a good blog on the technique: http://www.bluemunkey.com/?p=338

Here are working scripts using diskshadow - which is already installed, modifying the blog approach slightly:

##freeze.bat##
del c:\windows\metadata\backup.cab
C:\Windows\System32\diskshadow -s c:\windows\shadowScript.txt

date /t >> c:\windows\metadata\callme.txt
time /t >> c:\windows\metadata\callme.txt


##shadowScript.txt##
delete shadows all
reset
set context persistent

add volume c: alias new1
add volume g: alias new2
set metadata c:\windows\metadata\backup.cab

create

Reply
0 Kudos