VMware

This Question is Answered

1 "helpful" answer available (6 pts)
3 Replies Last post: May 28, 2009 4:12 AM by dconvery  

Running NTBackup in a pre-freeze script posted: May 26, 2009 11:44 PM

Click to view chowderhead's profile Novice 2 posts since
May 26, 2009
Hi there,

I thought I'd be clever and incorporate NTBackup into the pre-freeze backup script of an Active Directory VM. What the script does specifically is run an NTBackup of the system state to the local disk, and then copy the backup file to a remote file share. If an error is generated while running the script, the pre-freeze script returns the error number prior to exiting (which means that in the event of any sort of NTBackup error, the nightly regular backup of the VM will be not occur). I tried this idea out in the test environment, and it works most of the time. However, occasionally a VSS error 12301 (no response from GatherWriterStatus) is generated, but despite the error the NTBackup completes just fine. So I changed the pre-freeze script to ignore all error instances of 12301 (a 0 is returned instead).

So what I what to know is, is this a great idea or a very bad idea? I figured everything would be okay because the NTBackup should complete prior to when the disks are quiesced (due to the nature of the pre-freeze script).

Re: Running NTBackup in a pre-freeze script

1. May 27, 2009 6:40 AM in response to: chowderhead
Click to view dconvery's profile Virtuoso 1,886 posts since
May 10, 2006

First off, Welcome to the Forums!

What a great idea! I have recommended running NTBackup for DCs for a long time - since win2000 days. It never even occured to me to add it to the pre-freeze-script.

As for your VSS error, it is not recommended that you use the quiescing on transactional systems, like AD, SQL and Exchange. I would add the "-Q 0" option to your vcbMounter command for this VM. (Undocumented, means no quiesce - Thanks to depping for this one!)

If you are doing VCB backups with an integration kit, you could also uninstall the VSS provider and the sync driver on this VM.

Dave Convery
VMware vExpert 2009
http://www.dailyhypervisor.com
http://communities.vmware.com/servlet/JiveServlet/download/38-20623/vExpert_logo_100x57.jpg
Careful. We don't want to learn from this.
Bill Watterson, "Calvin and Hobbes"

Re: Running NTBackup in a pre-freeze script

3. May 28, 2009 4:12 AM in response to: chowderhead
Click to view dconvery's profile Virtuoso 1,886 posts since
May 10, 2006
I would imaging the VSS error is from the VCB quiesce process. That's when I usually see it.

Dave Convery
VMware vExpert 2009
http://www.dailyhypervisor.com
http://communities.vmware.com/servlet/JiveServlet/download/38-20623/vExpert_logo_100x57.jpg
Careful. We don't want to learn from this.
Bill Watterson, "Calvin and Hobbes"

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities