设为首页 收藏本站
查看: 1945|回复: 0

[经验分享] Installing and Configuring Windows Server Backup for Hyper

[复制链接]

尚未签到

发表于 2018-6-8 15:23:49 | 显示全部楼层 |阅读模式
Introduction
Windows Server 2008 provides a built-in backup solution called Windows Server Backup (WSB). Windows Server Backup uses the Volume Shadow Copy Service (VSS) to backup and restore your server. WSB provides the normal backup and restore features of an enterprise backup program: operating system, volumes, folders and files. In addition WSB supports backup and restore at an application level if the application provides a VSS compatible “writer”. In this article you will learn how to configure WSB with the support for Hyper-V VSS writer.
Windows Server Backup
Windows Server Backup is a “feature” in Windows Server 2008, but by default it is not installed. To install WSB so that you can configure it to support Hyper-V do the following:

  • Launch Server Manager
  • Select the Features node
  • Click the Add Features option, the Add Features wizard will launch (Figure 1)
DSC0000.jpg
Figure 1

  • Expand the Windows Server Backup Features node (Figure 2) and select Windows Server Backup. Optionally select the Command-Line tools.
DSC0001.jpg
Figure 2

  • Click Next
  • Click Install to begin the installation
Configuring for Hyper-V
Windows Server Backup can support additional VSS writers, but it does not have an ability to import or register the VSS writer, you must do that by hand. When you install Windows Server Backup it has no additional VSS writers registered. To add support for the Hyper-V VSS writer you must create the Windows Server Backup registry locations and register the GUID for the applications VSS writer. This can be done using REGEDIT or using a .REG file.
Finding the Hyper-V VSS Writer GUID
Before you can add a VSS writer to Windows Server Backup you need to know the Writer ID GUID. You can use the VSSADMIN tool to list all currently installed VSS writers . the machine and see their GUIDs. To use VSSADMIN to find the GUID, do the following:

  • Launch a command prompt as administrator
  • At the command prompt, type the following: VSSADMIN List Writers >C:\TEMP\VSSWriters.txt
  • After a few seconds the list of all VSS writers that are installed and registered with the VSS service will be written to the C:\TEMP\VSSWRITERS.TXT file.
  • Open up the C:\TEMP\VSSWRITERS.TXT file with notepad and search for Microsoft Hyper-V VSS Writer
  • Under that Writer name you will find the Writer ID GUID {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}
Making the Changes Using REGEDIT
To make the changes using REGEDIT, do the following:

  • Launch REGEDIT (Figure 3)
  • Traverse to the following key

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup
  • Create a key called WindowsServerBackup

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup
  • Select Windows ServerBackup key and create a key under it called Application Support

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support
  • Now create a key under Application Support for the Hyper-V VSS writer GUID 66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE
  • Under Hyper-V VSS GUID key, create a value of REG_SZ called “Application Identifier” and set the value to “Hyper-V VSS Writer”
DSC0002.jpg
Figure 3
Making the Changes Using a .REG file
While using REGEDIT is easy enough to do, if you need to make this change . multiple servers or if you want to minimize errors it is better to create a .REG file for import. Creating a .REG file requires a standard ASCI text editor like Notepad. You can create it by hand or you can make the modifications . a single machine using the REGEDIT approach and then export the registry key and it will create a .REG file for you.
The .REG file needs to contain the registry changes that you need to make. This includes both the keys and values that need to b created or modified. In this situation, you need to create three registry keys and .e value. The following shows the .REG file that is required to make the configuration changes to support the Hyper-V VSS writer.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}] "Application Identifier"="Hyper-V VSS Writer"
Copying these lines and placing them into Notepad and save into a file called WSB-Hyper-V.REG.
Once you have the .REG file, you can copy this to another Hyper-V server, install Windows Server Backup and then right click the WSB-Hyper-V.REG file and select Merge (Figure 4).
DSC0003.jpg
Figure 4
An optional approach to creating the .REG file is exporting the information from a configured server. Create the registry entries using the REGEDIT approach, .ce you are done you can right click the WindowsServerBackup key and select Export (Figure 5).
DSC0004.jpg
Figure 5
Use the name WSB-Hyper-V.REG in the Export Registry File dialog and click Save (Figure 6).
DSC0005.jpg
Figure 6
Hyper-V Backup Considerations
Now you have Windows Server Backup configured to support Hyper-V, there are some things you need to know when creating backups of the Hyper-V host and virtual machines.

  • When backing up the Host you must backup the C: drive at a minimum to get the Hyper-V configuration information.
  • You cannot backup specific virtual machines, you can .ly backup volumes.
  • If you want to ensure that you have backed up specific virtual machines, you must backup each volume that contains pieces of the virtual machine. If you keep configuration files in the default location . C:, but you store the virtual machine hard disk files . a different drive, you must backup both volumes to be able to restore the virtual machines.
  • When you restore you must select Application based “restore”.
  • Restoring virtual machines is an all or nothing approach. You cannot restore files within a virtual machine, just the entire virtual machine. .ce the virtual machine is restored, you can mount it and copy files out.
Conclusion
Windows Server Backup is an inbox solution for backing up and restoring Hyper-V hosts and virtual machines. It is not installed by default, but installation is a simple process that does not require a reboot. By default, Windows Server backup does not support the Hyper-V VSS writer but can be configured to support Hyper-V by registering the Hyper-V VSS writer in the registry. Registration can be accomplished by hand using REGEDIT or in an automated fashion by importing a .REG file. Using the .REG file is the recommended approach to configuring Hyper-V VSS writer support to eliminate errors and automate the process.




[/td]


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-520780-1-1.html 上篇帖子: 微软的Hyper 下篇帖子: 为 Hyper
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表