{"id":175,"date":"2007-05-04T21:21:46","date_gmt":"2007-05-05T07:21:46","guid":{"rendered":"https:\/\/anildesai.net\/?p=175"},"modified":"2007-05-04T21:21:46","modified_gmt":"2007-05-05T07:21:46","slug":"implementing-disaster-recovery-for-virtual-machines","status":"publish","type":"post","link":"https:\/\/anildesai.net\/index.php\/2007\/05\/implementing-disaster-recovery-for-virtual-machines\/","title":{"rendered":"Implementing Disaster Recovery for Virtual Machines"},"content":{"rendered":"<p><em>This article was first published on <\/em><a href=\"http:\/\/searchservervirtualization.techtarget.com\/\"><em>SearchServerVirtualization.TechTarget.com<\/em><\/a><em>.<\/em> <\/p>\n<p>One of the many benefits of virtualization technology is its ability to de-couple workloads and operating systems from the underlying hardware on which they\u2019re running. The end result is portability \u2013 the ability to move a VM between different physical servers without having to worry about minor configuration inconsistencies. This ability can greatly simplify a common IT challenge: Maintaining a disaster recovery site. <\/p>\n<p>In an earlier article, \u201cImplementing Backups for Virtual Machines\u201d, I focused on performing backups from within guest OS\u2019s. In this article, I\u2019ll look at the other approach: Performing VM backups from within the host OS. <\/p>\n<h2><b>Determining What to Back Up<\/b><\/h2>\n<p>From a logical standpoint, virtual machines themselves are self-contained units that include a virtual hardware configuration, an operating system, applications, and services. Physically, however, there are numerous files and settings that must be transferred to a backup or disaster recovery site. While the details will differ based on the virtualization platform, the general types of files that should be considered include: <\/p>\n<ul>\n<li>Host server configuration data<\/li>\n<li>Virtual hard disks<\/li>\n<li>VM configuration files<\/li>\n<li>Virtual network configuration files<\/li>\n<li>Saved-state files<\/li>\n<\/ul>\n<p>In some cases, thorough documentation and configuration management practices can replace the need to track some of the configuration data. Usually, all of the files except for the virtual hard disks are very small and can be transferred easily. <\/p>\n<h2><b>Performing Host-Level Backups<\/b><\/h2>\n<p>The primary issue related to performing VM backups is the fact that VHD files are constantly in use while the VM is running. While it might be possible to make a copy of a VHD while it is running, there\u2019s a good chance that caching and other factors might make the copy unusable. This means that \u201copen file agents\u201d and snapshot-based backups need to be aware of virtualization in order to generate reliable (and restorable) backups. <\/p>\n<p>There are three main ways in which you can perform host-level backups of VM-related files. Figure 1 provides an overview of these options. Cold backups are reliable and easy to implement, but they do require downtime. They\u2019re suitable for systems that may be unavailable for at least the amount of time that it takes to make a copy of the associated virtual hard disk files. Hot Backups, on the other hand, can be performed while a VM is running. Virtualization-aware tools are usually required to implement this type of backup. <\/p>\n<p><a href=\"https:\/\/anildesai.net\/wp-content\/uploads\/2007\/10\/image33.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px\" height=\"245\" alt=\"image\" src=\"https:\/\/anildesai.net\/wp-content\/uploads\/2007\/10\/image-thumb33.png\" width=\"457\" border=\"0\"><\/a>  <\/p>\n<p><b>Figure 1: Options for performing host-level VM backups<\/b> <\/p>\n<h2><b>Backup Storage Options<\/b><\/h2>\n<p>One of the potential issues with performing backups of entire virtual hard disks is the total amount of disk space that will be required. IT organizations have several different storage-related options. They are: <\/p>\n<ul>\n<li><b>Direct-Attached Storage (Host File System)<\/b>: This method involves storing copies of VHD files directly on the host computer. While the process can be quick and easy to implement, it doesn\u2019t protect against the failure of the host computer or the host disk subsystem.<\/li>\n<li><b>Network-based Storage:<\/b> Perhaps the most common destination for VM backups is network-based storage. Data can be stored on devices ranging from standard file servers, to dedicated network-attached storage (NAS) devices to iSCSI-based storage servers. Regardless of the technical details, bandwidth is an important concern. This is especially true when dealing with remote disaster recovery sites.<\/li>\n<li><b>Storage Area Networks (SANs):<\/b> <b><\/b>Organizations can use SAN-based connections to centrally manage storage, while still providing high performance for backups and related processes. SAN hardware is usually most applicable to backups performed within each of the disaster recovery sites, since there are practical limitations on the length of these connections.<b><\/b><\/li>\n<\/ul>\n<h2><b>Maintaining the Disaster Recovery Site<\/b><\/h2>\n<p>So far, we\u2019ve looked at what you need to backup and some available storage technologies. The most important question, however, is that of how to maintain the disaster recovery site. Given that bandwidth and hardware may be limited, there are usually trade-offs. The first consideration is related to keeping up-to-date copies of VHDs and other files at both sites. While there are no magical solutions to this problem, many storage vendors provide for bit-level or block-level replication that can synchronize only the differences in large binary files. While there is usually some latency, this can minimize the bandwidth load while keeping files at both sites current. <\/p>\n<p>At the disaster recovery site, IT staff will need to determine the level of capacity that must be reserved for managing failures situations. For example, will the server already be under load? If so, during a fail-over, what are the performance requirements? The process of performing a fail-over can be simplified through the use of scripts and automation. However, it\u2019s critically important to test (and rehearse) the entire process before a disaster occurs. <\/p>\n<h2><b>Planning for the Worst\u2026<\/b><\/h2>\n<p>Overall, the task of designing and implementing a disaster recovery configuration can be challenging. The use of virtual machines can simplify the process by loosening the requirements for identical hardware at the primary and backup sites. The process still isn\u2019t easy, but with proper planning and the right tools, it\u2019s certainly possible. Good luck, and let\u2019s hope you never need to use your DR handiwork!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article was first published on SearchServerVirtualization.TechTarget.com. One of the many benefits of virtualization technology is its ability to de-couple workloads and operating systems from the underlying hardware on which they\u2019re running. The end result is portability \u2013 the ability to move a VM between different physical servers without having to worry about minor configuration [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,16],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-vm-backup-disaster-recovery","category-vm-best-practices"],"_links":{"self":[{"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":0,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"wp:attachment":[{"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}