Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


June 24, 2009

Q. How does a Volume Shadow Copy Service (VSS) snapshot backup of a Hyper-V server work with guest OSs?

RSS
Subscribe to Windows IT Pro | See More Windows OSs Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. Hyper-V has a VSS writer that's registered with the backup software on the server. When you perform a VSS backup on the Hyper-V server, something very cool happens in the guest OSs, assuming you have Hyper-V Integration Services installed and the backup service enabled.

  1. The backup software (the VSS requestor) on the Hyper-V server requests a VSS snapshot. The VSS requestor lists the VSS writers on the system to figure out what data the VSS writer can back up. The Hyper-V VSS writer, in conjunction with the VSS Coordination Service, forwards the VSS snapshot request to each guest OS via the backup integration service.
  2. Each guest OS thinks it's receiving a native VSS request. Each one proceeds to notify all VSS writers on the guest OS to prepare for a snapshot.
  3. Each VSS writer in the guest OSs writes any information to disk that relates to its service, such as Microsoft Exchange or SQL Server. The guest OS VSS writers notify the VSS coordinator that they're ready for a snapshot and tell it which data to back up. The part about which data to back up is ignored, however, because you'll be backing up the entire Virtual Hard Disk (VHD) from the Hyper-V host.
  4. The backup integration service for each VM tells Hyper-V's VSS writer it's ready for a snapshot to be taken. The Hyper-V VSS writer notifies the backup application via the VSS coordinator that it is ready for a snapshot.
  5. The backup software takes a VSS snapshot of the host file system that contains the virtual configuration files and the VHDs. All data on the VHDs is consistent because of the VSS request being passed into the VMs. Once the snapshot is taken, the VSS writer notifies the guests that the snapshot is complete and they continue their normal processing.

As you can see, you can take backups from the Hyper-V host and still take full advantage of all the backup integrity provided by the VSS writers within the guest OSs to make sure the content on disk is complete.

It's very important that when you perform the backup, all disks that contain VM configuration files and VHDs are selected as part of the backup.

You should note that only VHD content will be backed up using this method. If a VM has pass through or iSCSI storage storage connected through the guest OS iSCSI initiator, that content won't be backed up through a backup at the Hyper-V server level through the Hyper-V VSS Writer.

The scenario above describes an online backup, also known as child VM snapshot, where the guest OS meets the following requirements:

  • Integration services is installed, with the backup integration service enabled
  • It supports VSS
  • It uses NTFS file systems with basic disks (not dynamic)

If you have guest OSs that use dynamic disks, use non-NTFS partitions, don't have integration services installed, or don't have the backup integration service enabled, or if you're using an OS that isn't supported, such as Windows 2000, then an offline backup will be taken of the VM. This backup is also known as a saved state backup, because VMs that can't support an online backup are placed into a saved state during the VSS snapshot, so there's a period of downtime for the VM during the backup. OSs that have to use saved state include Windows XP, Windows 2000, Windows NT 4, and Linux OSs. Windows Server 2008, Windows Vista, Windows Server 2003, and later OSs all support the online backup method without any VM downtime.

Related Reading

Videos:

Audio:


Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.

End of Article



Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Windows 7 Sets Sales Record

Microsoft CEO Steve Ballmer described Windows 7's first ten days of sales as "fantastic" while in Japan yesterday. ...


Virtualization Whitepapers A Business Case for Backup & Recovery for The Virtualized Environment

Related Events Deep Dive into VMware vSphere

RUUP4IT? R2 Takes You Vertical and Virtual

Dev Tools United! Developers Benefit From Desktop & Server Virtualization Solutions

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement