netbackup hyperv

92
Symantec NetBackup™ for Hyper-V Guide UNIX, Windows, and Linux Release 7.0 20654027

Upload: pestilenc

Post on 07-Apr-2015

652 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: netbackup hyperv

Symantec NetBackup™ forHyper-V Guide

UNIX, Windows, and Linux

Release 7.0

20654027

Page 2: netbackup hyperv

Symantec NetBackup™ for Hyper-V GuideThe software described in this book is furnished under a license agreement andmay be usedonly in accordance with the terms of the agreement.

Documentation version 7.0.

Legal NoticeCopyright © 2009 Symantec Corporation. All rights reserved.

Symantec, the Symantec Logo and NetBackup are trademarks or registered trademarks ofSymantec Corporation or its affiliates in the U.S. and other countries. Other names may betrademarks of their respective owners.

Portions of this software are derived from the RSAData Security, Inc. MD5Message-DigestAlgorithm. Copyright 1991-92, RSA Data Security, Inc. Created 1991. All rights reserved.

This Symantec product may contain third party software for which Symantec is requiredto provide attribution to the third party (“Third Party Programs”). Some of the Third PartyPrograms are available under open source or free software licenses. The LicenseAgreementaccompanying the Software does not alter any rights or obligations you may have underthose open source or free software licenses. Please see theThird Party LegalNoticeAppendixto this Documentation or TPIP ReadMe File accompanying this Symantec product for moreinformation on the Third Party Programs.

The product described in this document is distributed under licenses restricting its use,copying, distribution, and decompilation/reverse engineering. No part of this documentmay be reproduced in any form by any means without prior written authorization ofSymantec Corporation and its licensors, if any.

THEDOCUMENTATIONISPROVIDED"ASIS"ANDALLEXPRESSORIMPLIEDCONDITIONS,REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT,ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TOBELEGALLYINVALID.SYMANTECCORPORATIONSHALLNOTBELIABLEFORINCIDENTALOR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING,PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINEDIN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE.

The Licensed Software andDocumentation are deemed to be commercial computer softwareas defined in FAR12.212 and subject to restricted rights as defined in FARSection 52.227-19"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, "Rights inCommercial Computer Software or Commercial Computer Software Documentation", asapplicable, and any successor regulations. Any use, modification, reproduction release,performance, display or disclosure of the Licensed Software andDocumentation by theU.S.Government shall be solely in accordance with the terms of this Agreement.

Page 3: netbackup hyperv

Symantec Corporation350 Ellis StreetMountain View, CA 94043

http://www.symantec.com

Page 4: netbackup hyperv

Technical SupportSymantec Technical Support maintains support centers globally. TechnicalSupport’s primary role is to respond to specific queries about product featuresand functionality. TheTechnical Support group also creates content for our onlineKnowledge Base. The Technical Support group works collaboratively with theother functional areas within Symantec to answer your questions in a timelyfashion. For example, theTechnical Support groupworkswithProductEngineeringand Symantec Security Response to provide alerting services and virus definitionupdates.

Symantec’s maintenance offerings include the following:

■ A range of support options that give you the flexibility to select the rightamount of service for any size organization

■ Telephone and Web-based support that provides rapid response andup-to-the-minute information

■ Upgrade assurance that delivers automatic software upgrade protection

■ Global support that is available 24 hours a day, 7 days a week

■ Advanced features, including Account Management Services

For information about Symantec’sMaintenance Programs, you can visit ourWebsite at the following URL:

www.symantec.com/techsupp/

Contacting Technical SupportCustomerswith a currentmaintenance agreementmay access Technical Supportinformation at the following URL:

www.symantec.com/techsupp/

Before contacting Technical Support, make sure you have satisfied the systemrequirements that are listed in your product documentation. Also, you should beat the computer onwhich theproblemoccurred, in case it is necessary to replicatethe problem.

When you contact Technical Support, please have the following informationavailable:

■ Product release level

■ Hardware information

■ Available memory, disk space, and NIC information

■ Operating system

Page 5: netbackup hyperv

■ Version and patch level

■ Network topology

■ Router, gateway, and IP address information

■ Problem description:

■ Error messages and log files

■ Troubleshooting that was performed before contacting Symantec

■ Recent software configuration changes and network changes

Licensing and registrationIf yourSymantecproduct requires registrationor a licensekey, access our technicalsupport Web page at the following URL:

www.symantec.com/techsupp/

Customer serviceCustomer service information is available at the following URL:

www.symantec.com/techsupp/

Customer Service is available to assist with the following types of issues:

■ Questions regarding product licensing or serialization

■ Product registration updates, such as address or name changes

■ General product information (features, language availability, local dealers)

■ Latest information about product updates and upgrades

■ Information about upgrade assurance and maintenance contracts

■ Information about the Symantec Buying Programs

■ Advice about Symantec's technical support options

■ Nontechnical presales questions

■ Issues that are related to CD-ROMs or manuals

Page 6: netbackup hyperv

Maintenance agreement resourcesIf you want to contact Symantec regarding an existing maintenance agreement,please contact the maintenance agreement administration team for your regionas follows:

[email protected] and Japan

[email protected], Middle-East, and Africa

[email protected] America and Latin America

Additional enterprise servicesSymantec offers a comprehensive set of services that allow you tomaximize yourinvestment in Symantec products and to develop your knowledge, expertise, andglobal insight, which enable you to manage your business risks proactively.

Enterprise services that are available include the following:

These solutions provide early warning of cyber attacks, comprehensive threatanalysis, and countermeasures to prevent attacks before they occur.

SymantecEarlyWarningSolutions

These services remove the burdenofmanaging andmonitoring security devicesand events, ensuring rapid response to real threats.

Managed Security Services

Symantec Consulting Services provide on-site technical expertise fromSymantec and its trustedpartners. SymantecConsultingServices offer a varietyof prepackaged and customizable options that include assessment, design,implementation,monitoring, andmanagement capabilities. Each is focused onestablishing andmaintaining the integrity and availability of your IT resources.

Consulting Services

Educational Services provide a full array of technical training, securityeducation, security certification, and awareness communication programs.

Educational Services

To access more information about Enterprise services, please visit our Web siteat the following URL:

www.symantec.com

Select your country or language from the site index.

Page 7: netbackup hyperv

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

About Hyper-V .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11New features in NetBackup 7.0 for Hyper-V .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12NetBackup for Hyper-V environment .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Basic phases in a NetBackup backup of a Hyper-V virtual

machine .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Hyper-V terminology related to backup .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15NetBackup administrator tasks ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Quick reference for troubleshooting .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Chapter 2 Notes and prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Prerequisites ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Notes ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Restrictions ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Chapter 3 Create a backup policy for Hyper-V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Creating a Hyper-V policy from the Policies node .... . . . . . . . . . . . . . . . . . . . . . . . . . . . 23About cached names for virtual machine backup .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Configuration parameters for Hyper-V .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Client Name Selection .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Virtual Machine Backup .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Provider Type .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Snapshot Attribute ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Allow Offline Backup of VM ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29CSV Timeout in Minutes ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Browse for Hyper-V virtual machines ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Creating a policy with the Snapshot Policy Configuration wizard .... . . . . . . 31Alternate client backup of virtual machines ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

Prerequisites for alternate client backup of a virtualmachine .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

Configuring alternate client backup of virtual machines ... . . . . . . . . . . . . . 32A NetBackup client inside the virtual machine .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Contents

Page 8: netbackup hyperv

Chapter 4 Windows Server 2008 failover cluster support . . . . . . . . . . . . 35

About virtual machines on Windows 2008 failover clusters ... . . . . . . . . . . . . . . 35Notes on CSV backup and restore ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Creating a policy for virtual machines in a cluster ... . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Where is the virtual machine restored in a cluster? ... . . . . . . . . . . . . . . . . . . . . . . . . . 38Virtual machine maintenance after a restore ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

Removal of cluster resources during restore ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Chapter 5 Back up and restore Hyper-V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

Backing up Hyper-V virtual machines ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Further information on NetBackup policies ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42Restore notes ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

Notes on individual file restore ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Notes on full virtual machine restore ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

About restoring individual files ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Restoring individual files to a host that has a NetBackup client ... . . . . . . . . . 46Restoring individual files to a shared location on the virtual

machine .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48Setting up NetBackup Client Service for restore to a shared

location on the virtual machine .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49Restoring the full virtual machine .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50Restore Marked Files dialog box (Hyper-V) ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52About restoring common files ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

Chapter 6 Best practices and more information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

Best practices ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57More information on NetBackup and Hyper-V .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

Chapter 7 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

NetBackup logs and how to create them .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59Other logs for troubleshooting .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

Errors during policy creation .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62NetBackup policy validation failed .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Timeout occurs when browsing for virtual machines if cluster nodesare not accessible ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

NetBackup status codes related to Hyper-V .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64Snapshot error encountered (status code 156) ... . . . . . . . . . . . . . . . . . . . . . . . . . . 66

Backup job hangs for multiple virtual machines ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68Windows NTFS shadow storage has insufficient space for

snapshots ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

Contents8

Page 9: netbackup hyperv

Storage unit characteristics mismatched to request (status code154) ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

The Hyper-V integration component is missing or not properlyinstalled .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

NTFS shadow storage is configured on a different volume .... . . . . . . . . . . . . . . . 70LDM volumes and status code 1 .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72Hyper-V snapshots (.avhd files) and status code 1 .... . . . . . . . . . . . . . . . . . . . . . . . . . . 72When backing up the virtual machines that reside on the same CSV,

Windows warning 1584 can be ignored .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72Problems with alternate client backup .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

Using vshadow to verify support for transportablesnapshots ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

Problems with restore ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75Restored virtual machine fails to start ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75Problem with a restart of a restored virtual machine: "Why did

the computer shut down unexpectedly?” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77Problems with restore of individual files ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77Problems with restore of the full virtual machine .... . . . . . . . . . . . . . . . . . . . . . 78

Appendix A Hyper-V online and offline backups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

About Hyper-V online and offline backups .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81When online vs offline backup is performed .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82Additional notes on offline backups .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

Appendix B Hyper-V pass-through disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

About Hyper-V pass-through disks ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85Configurations for backing up pass-through disks ... . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Requirements ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Restrictions ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87Configuring a local snapshot backup of pass-through disks ... . . . . . . . . . . . . . . . 87About alternate client backup of pass-through disks ... . . . . . . . . . . . . . . . . . . . . . . . . 88Configuring an alternate client backup of pass-through disks ... . . . . . . . . . . . . 89Important note on VSS and disk arrays ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

9Contents

Page 10: netbackup hyperv

Contents10

Page 11: netbackup hyperv

Introduction

This chapter includes the following topics:

■ About Hyper-V

■ New features in NetBackup 7.0 for Hyper-V

■ NetBackup for Hyper-V environment

■ Basic phases in a NetBackup backup of a Hyper-V virtual machine

■ Hyper-V terminology related to backup

■ NetBackup administrator tasks

■ Quick reference for troubleshooting

About Hyper-VNetBackup for Hyper-V provides snapshot-based backup of the virtual machinesthat run on Windows 2008 Hyper-V servers.

The principal features of NetBackup for Hyper-V are the following:

■ NetBackup for Hyper-V uses snapshot technology to keep virtual machines100% available to users. NetBackup for Hyper-V creates quiesced snapshotsusing Volume Shadow Copy Service (VSS).

■ NetBackup for Hyper-V performs full backups and file-level incrementalbackups of the virtual machine.

■ Can restore the full virtual machine or selected files.

■ Can restore selected files from a full virtual machine backup.

■ Can restore to the original virtual machine, to other locations on the Hyper-Vserver, or to a different Hyper-V server.

1Chapter

Page 12: netbackup hyperv

New features in NetBackup 7.0 for Hyper-VNetBackup 7.0 for Hyper-V adds support for the following:

■ Off-host backup (an alternate client performs the backup).

■ File-level incremental backup.

■ Backup of a virtual machine that is in aWindows Server 2008 failover cluster.

■ Use of a NetBackup client that is installed in the virtual machine along withthe features of Snapshot Client.

A NetBackup client installed in a virtual machine enables the following:

■ Backup of the virtual drives that are inside the virtual machine.

■ Backup of the physical disks that the virtual machine accesses in a passthrough configuration.

■ Backup of databases and applications using NetBackup agents.

NetBackup for Hyper-V environmentTable 1-1 describes the components that are required to back up and restore aHyper-V virtual machine.

Table 1-1 Components required for NetBackup for Hyper-V

Description and requirementsComponent

Creates the backup policies and starts backups and restores.The NetBackup master server must be at 7.0 or later. It mustinclude the NetBackup Enterprise Client license.

NetBackup master server

Reads andwrites backupdata andmanagesNetBackup storagemedia. The NetBackup media server must be at 7.0 or later.The NetBackup media server can be installed on the Hyper-Vserver or on a different host.

For a more efficient backup, install the NetBackup mediaserver on the same host as the Hyper-V server.

NetBackup media server

IntroductionNew features in NetBackup 7.0 for Hyper-V

12

Page 13: netbackup hyperv

Table 1-1 Components required for NetBackup for Hyper-V (continued)

Description and requirementsComponent

Processes backup and restore requests. ANetBackup7.0 clientmust exist on each Hyper-V server.

For the optional off-host backup approach, aNetBackup clientmust be installed on the alternate client.

Note: The client need not be installed on any virtualmachine.Exceptions are for one of the individual file restore methods,or for backup of pass-through devices. Refer to the followingtopics.

See “About restoring individual files” on page 45.

See “About Hyper-V pass-through disks” on page 85.

NetBackup client (andoptional alternate client)

A Windows hypervisor-based virtualization system, forcreating the virtual machine guests that run in a WindowsServer host computer.

Additional requirements may apply. Refer to your MicrosoftHyper-V documentation.

Hyper-V server

Provide the integration between the Hyper-V server and thevirtual machines.

Note: The Hyper-V backup integration service must beenabled.

For installation instructions, refer to Microsoft Hyper-Vdocumentation.

Hyper-V integrationservices (integrationcomponents)

Figure 1-1 shows the NetBackup for Hyper-V environment.

13IntroductionNetBackup for Hyper-V environment

Page 14: netbackup hyperv

Figure 1-1 NetBackup for Hyper-V backup environment

LAN / WAN

NetBackupmaster server

NetBackup media serverwith external storage

(tape or disk)

Windows 2008 Hyper-V server withvirtual machines. Each Hyper-V server

needs one NetBackup client.

Basic phases in a NetBackup backup of a Hyper-Vvirtual machine

Table 1-2 describes the phases of the NetBackup for Hyper-V backup process.

Table 1-2 Phases of NetBackup for Hyper-V backup

DescriptionPhase

The NetBackup master server initiates the backup.Phase 1

The NetBackup client on the Hyper-V server initiates a snapshot.Phase 2

TheVSSHyper-Vwriter quiesces the virtualmachine and creates the snapshoton the host volume. If theHyper-Vwriter cannot quiesce the virtualmachine,the virtualmachine is placed in the Saved state before creation of the snapshot.

Phase 3

TheNetBackup client reads the data from the snapshot of the virtualmachineand transfers the data to the media server. The media server writes the datato the NetBackup storage unit.

Phase 4

If the virtual machine was placed in the Saved state, Hyper-V returns thevirtual machine to its original state.

Phase 5

IntroductionBasic phases in a NetBackup backup of a Hyper-V virtual machine

14

Page 15: netbackup hyperv

Hyper-V terminology related to backupTable 1-3 Hyper-V terminology related to backup

DescriptionTerm

A snapshot file that Windows Server 2008 Hyper-V creates, forpoint-in-time recovery of the virtual machine.

This snapshot-and-recoverymechanism is entirely separate fromthe one used by NetBackup for Hyper-V. NetBackup creates itsown snapshots when it backs up virtual machines. NetBackupdoes not create Hyper-V .avhd files.

.avhd file

Avirtual disk ( .vhd file) that contains the files thatmultiple virtualmachine require. Instead of copies of the same .vhd file existingat multiple places, the virtual machines share a single .vhd file(the parent).

See “About restoring common files” on page 56.

Common .vhd files

A cluster-shared volume in a failover cluster. Refer to yourMicrosoft documentation for more details regarding CSV.

CSV

The differencing disk is in a child relationship to the parent disk(see common .vhd files). The parent and child virtual disks maybe on the samephysical drive or on different physical drives. Thismechanism enables common files to be shared across virtualmachines.

Differencing disk

A Windows Server 2008 failover cluster (formerly known as aMicrosoft Cluster Server).

Failover cluster

Describes a virtual machine that is configured in a cluster. If thevirtual machine's Hyper-V host goes down, the virtual machineautomaticallymoves to anotherHyper-Vhost in the cluster.Usersperceive little or no downtime on the virtual machine. Refer toyour Microsoft documentation for more details.

HA (high availability )

Any disk that the Hyper-V server can access. It can be locallyattached to the Hyper-V server, or on a SAN. The pass-throughdisk is attached to a virtual machine, but the disk is not in a vhdformat.

pass-through disk

15IntroductionHyper-V terminology related to backup

Page 16: netbackup hyperv

Table 1-3 Hyper-V terminology related to backup (continued)

DescriptionTerm

A file in a Windows 2008 Hyper-V installation that contains thevirtualized contents of aharddisk. A .vhd file can contain an entirevirtual operating system and its programs. Hyper-V supportsseveral kinds of .vhd files, suchas fixed, dynamic, anddifferencing.

Refer to your Microsoft Hyper-V documentation for moreinformation.

.vhd file

NetBackup backs up these files as part of a full virtual machinebackup.

The .bin and .vsv files are visible only when the virtual machineis running.

virtual machineconfiguration files:

.xml, .bin, .vsv

A globally unique identifier of the virtual machine.virtual machine GUID

NetBackup administrator tasksThe following are the tasks for the NetBackup administrator:

■ Install the NetBackup 7.0master server andmedia server. Add the NetBackup7.0 Enterprise Client license on the master server.See the NetBackup 7.0 Installation Guide.Symantec recommends that the NetBackup media server and the Hyper-Vserver be installed on the same host. For alternate client off-host backup,install the media server on the alternate client host.

■ Install a NetBackup 7.0 client on the Hyper-V server. Add the name of theNetBackup master server to the client's server list. In the NetBackup Backup,Archive, and Restore interface, click File >SpecifyNetBackupMachines andPolicy Type. Add the master server to the Server to use for backups andrestores list.

■ Install a NetBackup 7.0 client on the Hyper-V server. Only one NetBackupclient is required on each Hyper-V server. As an option for restore, a clientmay be installed on a virtual machine.For Snapshot Client installation instructions, see the Installation chapter ofthe NetBackup Snapshot Client Administrator’s Guide.For Windows, NetBackup Snapshot Client software is automatically installedwith the core NetBackup server and client product.

■ Read the notes on NetBackup for Hyper-V.See “Notes” on page 20.

IntroductionNetBackup administrator tasks

16

Page 17: netbackup hyperv

See “Restore notes” on page 43.

■ Read the best practices.See “Best practices” on page 57.

■ Create a NetBackup policy for Hyper-V.See “Creating a Hyper-V policy from the Policies node” on page 23.

■ Run a Hyper-V backup.See “Backing up Hyper-V virtual machines” on page 41.

■ Perform a restore.See “About restoring individual files” on page 45.See “Restoring the full virtual machine” on page 50.

■ Troubleshoot your configuration.See the Troubleshooting chapter.

Quick reference for troubleshootingConsult the following topics for troubleshooting tips and pointers:

■ See “NetBackup status codes related to Hyper-V” on page 64.

■ See “NetBackup logs and how to create them” on page 59.

17IntroductionQuick reference for troubleshooting

Page 18: netbackup hyperv

IntroductionQuick reference for troubleshooting

18

Page 19: netbackup hyperv

Notes and prerequisites

This chapter includes the following topics:

■ Prerequisites

■ Notes

■ Restrictions

PrerequisitesThe following prerequisites apply to NetBackup for Hyper-V:

■ For Hyper-V servers, Symantec recommends Windows Server 2008 SP2,Windows Server 2008 R2.For Hyper-V servers on Windows 2008, apply the following hotfixes:

■ http://support.microsoft.com/kb/959962This hotfix is an update for Windows Server 2008-based computers toaddress issues with backing up and restoring Hyper-V virtual machines.

■ http://support.microsoft.com/default.aspx/kb/956697This hotfix is an update for an unsuccessful virtual machine restore. Theunsuccessful restore causes an invalid link to the virtual machineconfiguration XML file that was created at the following:%SystemDrive%\ProgramData\Microsoft\Windows\Hyper-V\VirtualMachines

■ http://support.microsoft.com/KB/959978An update for the VSS hardware provider snapshot for Hyper-V, to avoida Hyper-V writer crash during backup.

■ Check with Microsoft to see if additional hotfixes have been released:http://technet.microsoft.com/en-us/library/dd430893.aspx

2Chapter

Page 20: netbackup hyperv

■ To use volume GUID paths in your Hyper-V environment (for example:\\?\Volume{21a21bda-a624-11d7-9931-806e6f6e6963}\), you must installNetBackuppatch7.0.0.1 or a later release. Contact SymantecTechnical Supportto obtain the patch.

■ Before starting a backupof a virtualmachine, verify that theNetBackupmasterserver and media server can communicate with the Hyper-V server. Add thenameof theNetBackupmaster server to the server list on theNetBackup clientand (optional) alternate client.

■ To restore files to a shared location on the virtual machine, note: Virtualmachinesmust be in the same domain as theNetBackup client andmaster andmedia server.

■ On a virtualmachine,Windows shadow storage for a volume (such as C:) mustbe on the same volume. For instance, if the virtual machine has multiplevolumes, and the shadow storage for the C:\ volume is on D:\, the backup fails.See “NTFS shadow storage is configured on a different volume” on page 70.Windows shadow storage is required whenever theWindows Volume ShadowCopy Service (VSS) creates point-in-time snapshots.

NotesNote the following:

■ If a virtual machine is Paused when the backup starts, the virtual machine isplaced in the Saved state after the backup completes.

■ For VSS with disk arrays:To use a hardware array snapshot, make sure that the hardware array's VSSprovider supports the snapshots that involve the Hyper-V writer. Check therelease notes of the array vendor or VSS provider.

■ More information about NetBackup for Hyper-V support is available in thefollowing Symantec tech note:http://entsupport.symantec.com/docs/312604

RestrictionsNote the following:

■ NetBackup for Hyper-V does not support the NetBackup Instant Recoveryfeature.

■ (The following is due to a Microsoft limitation.) NetBackup for Hyper-V doesnot support backup of encrypted .vhd files.

Notes and prerequisitesNotes

20

Page 21: netbackup hyperv

■ (The following is due to a Microsoft limitation.) For the virtual machines thathave a FAT or FAT32 file system, NetBackup supports only Hyper-V offlinebackup.See “About Hyper-V online and offline backups” on page 81.

21Notes and prerequisitesRestrictions

Page 22: netbackup hyperv

Notes and prerequisitesRestrictions

22

Page 23: netbackup hyperv

Create a backup policy forHyper-V

This chapter includes the following topics:

■ Creating a Hyper-V policy from the Policies node

■ About cached names for virtual machine backup

■ Configuration parameters for Hyper-V

■ Browse for Hyper-V virtual machines

■ Creating a policy with the Snapshot Policy Configuration wizard

■ Alternate client backup of virtual machines

■ A NetBackup client inside the virtual machine

Creating a Hyper-V policy from the Policies nodeBefore you configure a policy, make sure that the Hyper-V server is online.NetBackup must be able to communicate with the Hyper-V server.

Use the followingprocedure to create a policy forHyper-Vvirtualmachine backup.

To configure a policy for Hyper-V

1 Start the NetBackup Administration Console as follows:

On UNIX, enter: /usr/openv/netbackup/bin/jnbSA &

On Windows, click Start > Programs > Symantec NetBackup > NetBackupAdministration Console.

2 ClickPolicies and clickActions>New to create a newpolicy, or select a policyto edit.

3Chapter

Page 24: netbackup hyperv

3 Select FlashBackup-Windows as the policy type.

The FlashBackup-Windows policy type automatically selects Performsnapshot backups.

4 Select a policy storage unit or storage unit group (or Any Available).

5 Select Hyper-V server.

The following is the Snapshot Client portion of the policy attributes tab.

6 In the Hyper-V server field, enter the name of the Hyper-V server.

7 Click Options and make any changes (if needed) to the configurationparameters on the Snapshot Client Options dialog.

The following is the upper half of the Snapshot Client Options dialog:

See “Configuration parameters for Hyper-V” on page 27.

8 To save these settings, click OK.

Create a backup policy for Hyper-VCreating a Hyper-V policy from the Policies node

24

Page 25: netbackup hyperv

9 Use the Schedules tab to define a schedule.

If Mapped Full VM Backup was selected as the Virtual Machine Backupoption on the Snapshot Client Options dialog, you can select either of thefollowing as the type of backup: full or incremental.

If you selected FullVMBackup as the VirtualMachineBackup option, FullBackup is the only backup type available in the schedule.

25Create a backup policy for Hyper-VCreating a Hyper-V policy from the Policies node

Page 26: netbackup hyperv

10 On the Clients tab, click New to specify virtual machines to back up.

If NetBackup cannot obtain the IP address of the virtual machine, the IPaddress is displayed as NONE.

See “Browse for Hyper-V virtual machines” on page 30.

11 Click OK.

The virtual machines you selected are listed in the Clients tab.

12 On the Backup Selections tab, select ALL_LOCAL_DRIVES.ALL_LOCAL_DRIVES is the only backup selection that is supported forHyper-V virtual machines. NetBackup backs up all local drives on the virtualmachines that are selected on the Clients tab.

About cached names for virtual machine backupTheNetBackuppolicymaintains a cache file of virtualmachine names. Thenamesare shown in the Browse for Virtual Machines dialog. You can select a virtualmachine from the list in the dialog, rather thanwaiting to rediscover themachines

Create a backup policy for Hyper-VAbout cached names for virtual machine backup

26

Page 27: netbackup hyperv

on the network. This approach can save time if your site has a large number ofvirtual machines.

Discrepancies may exist in the list of virtual machine names. On the policy'sBrowseforVirtualMachines dialog, click the refresh icon to the right of the LastUpdate field to update the list of virtual machines.

See “Creating a Hyper-V policy from the Policies node” on page 23.

If you change the virtualmachine display name in theHyper-VManager, the newname may not be used for backups.

Configuration parameters for Hyper-VThe following options are available.

Client Name SelectionSpecifies the type of name by which NetBackup recognizes a virtual machine.

The network host name for the virtualmachine. The host nameis available only when the virtual machine is running. If youselect VM hostname but the virtual machine is not running atthe time of the backup, the backup may fail.

VM hostname

The name of the virtual machine as it appears in the Hyper-VManager console.

VM display name

The unique ID assigned to the virtualmachine when the virtualmachine was created.

VM GUID

Note: If you create a policy and then change the Client Name Selection, you mayhave to delete the virtual machine selections on the Clients tab. Otherwise,NetBackup may no longer be able to identify the virtual machines to back up.

For example, if you change the Client Name Selection from VM hostname to VMdisplay name, and the display names of the virtual machines are different fromthe host names, the host names in the Clients tab cannot be used and the virtualmachines are not backed up. Youmust delete the host name entries on theClientstab and browse the network to select the virtual machines by display name.

Note:When creating virtual machines, use the same name for both host nameand display name. If the Client Name Selection is changed, the existing entrieson the Clients tab still work.

27Create a backup policy for Hyper-VConfiguration parameters for Hyper-V

Page 28: netbackup hyperv

Virtual Machine BackupDetermines the kind of restore that can be made from the backup.

Backs up the entire virtual machine.

You can restore the entire virtual machine from this backup.Individual files in the virtualmachine cannot be restored fromthis backup.

Full VM Backup

Backs up the entire virtualmachine. This option is the default.

Two kinds of restores are possible: restore of the entire virtualmachine, or restore of individual folders and files.

Mapped Full VM Backup

Provider TypeDetermines the type of VSS snapshot provider that creates the snapshot.

Attempts to select the available provider in this order: hardware,software, system.

Auto

Uses theMicrosoft systemprovider, for a block-level copy onwritesnapshot.

Unlike the Hardware type, the System provider does not requireany specific hardware.

System

Not certified in this release.Software

Uses the hardware provider for a disk array. A hardware providermanages the VSS snapshot at the hardware level byworkingwitha hardware storage adapter or controller.

For example, to back up data that resides on an EMC CLARiiONorHPEVAarray bymeans of the array’s snapshot provider, selectHardware. Dependingonyour array andon the snapshot attributeyou select, certain preconfiguration of the arraymay be required.See the chapter titled "Configuration of snapshot methods fordisk arrays" in the NetBackup Snapshot Client Administrator'sGuide.

Hardware

Snapshot AttributeDetermines the type of VSS snapshot that is created.

Uses the default snapshot type of the VSS provider.Unspecified

Create a backup policy for Hyper-VConfiguration parameters for Hyper-V

28

Page 29: netbackup hyperv

Uses a copy-on-write type of snapshot. For example, to back upan EMC CLARiiON array with an EMC CLARiiON SnapViewSnapshot, select Differential.

Differential

Uses a clone snapshot or mirror snapshot. For example, to backup an HP EVA array with an HP EVA Snapclone snapshot, selectPlex.

Plex

Allow Offline Backup of VMDetermines whether or not NetBackup is allowed to perform an offline backup ofa virtual machine.

Note:Online vs. offline backup areMicrosoft backup types and are not configuredin NetBackup.

NetBackup can perform an offline backup of a virtual machine.

In certain situations, if the virtualmachine cannot be quiesced for an onlinebackup, the virtual machine must be placed in the Saved state. The backupis thus performed offline. User access to the virtual machine may beinterrupted during the backup. After the backup is completed, the virtualmachine is returned to its original state.

Yes

NetBackup is not allowed to perform an offline backup of a virtualmachine.

Only an online backup can be done (user access to the virtual machine isnot interrupted). If an online backup cannot be done, the backup job failswith status 156.

No

More information is available about online and offline backups.

See “About Hyper-V online and offline backups” on page 81.

CSV Timeout in MinutesThis parameter applies to backups of the virtual machines that are configured inaMicrosoft Cluster thatuses cluster sharedvolumes (CSV). The timeoutdetermineshow many minutes the backup job waits, in case another node in the cluster isbacking up the same shared volume that this backup requires.

The default is 0 (no wait). If you do not want NetBackup to wait for the sharedvolume to be released by another backup, accept the default. If another node inthe cluster is backing up a shared volume that this backup requires, the backupfails with status 156.

29Create a backup policy for Hyper-VConfiguration parameters for Hyper-V

Page 30: netbackup hyperv

The appropriate value for this timeout parameter depends on following factors:

■ The average backup job duration for the virtual machines that reside on thesame CSV. The duration depends on the size of the virtual machines and theI/O speed.

■ The number of virtual machines on the same CSV.

More information is available onNetBackup support for the virtualmachines thatuse CSVs.

See “About virtual machines on Windows 2008 failover clusters ” on page 35.

Browse for Hyper-V virtual machines■ Enter the VM hostname

Enter the host name, display name, orGUIDof the virtualmachine. The formatof the host name or display name depends on your system. It may be the fullyqualified name or another name, depending on your network configurationand how the name is defined in the guest OS. If NetBackup cannot find thename or GUID you enter, policy validation fails.If it is checked, uncheck the Browse and select Virtual Machines option.

■ Browse and select Virtual MachineClick this option to discover Hyper-V servers or cluster nodes (shown in theleft pane). You can select virtual machines from a list (in the right pane).The virtual machine names that are listed may be derived from a cache file.Use of the cache file is faster than rediscovering themachines on the networkif your site has a large number of virtual machines. If the virtual machine isturned off but was turned on when the cache file was last created, its nameappears in the list.If the displaynameof the virtualmachinewas recently changed in theHyper-VManager, note: The virtual machine name that was used for the backup doesnot change.IfNetBackup cannot obtain the IP address of the virtualmachine, the IP addressis displayed as NONE.See “About cached names for virtual machine backup” on page 26.

■ Last UpdateToupdate the cache file and re-display virtualmachines, click the refresh iconto the right of the Last Update field. This field shows the date and time of themost recent cache file that contains the names of virtual machines.

Create a backup policy for Hyper-VBrowse for Hyper-V virtual machines

30

Page 31: netbackup hyperv

Creating a policy with the Snapshot PolicyConfiguration wizard

To create a backup policy by means of the Snapshot Policy Configuration wizard

1 In the NetBackup Administration Console (on the NetBackupmaster server),click the name of the master server.

2 Click Create a Snapshot Backup Policy.

3 Click Next.

4 On the Select Client screen, enter a name for the policy.

5 For Virtual Machine Type, select Hyper-V.

6 Enter the name of the Hyper-V server.

7 Follow the remaining screens in the wizard.

The wizard creates the policy according to your selections. Backups runaccording to the choices you make on the wizard's Frequency and Retentionand Start Windows screens.

Alternate client backup of virtual machinesYou can back up a virtual machine with a NetBackup client that is installed on ahost other than theHyper-V server. The separate host is called an alternate client.Although a NetBackup client must reside on the Hyper-V server, that client doesnot perform the virtual machine backup. The alternate client handles the backupI/O processing, to save computing resources on the Hyper-V server.

Note that the NetBackup media server can be installed on the alternate clientinstead of on the Hyper-V server. In this configuration, the alternate client hostperforms the media server processing.

Prerequisites for alternate client backup of a virtual machineNote the following prerequisites:

■ The VSS snapshot provider must support transportable snapshots with theHyper-V writer. A transportable snapshot is one that can be imported to thealternate client.Check with the vendor of the VSS provider, or use the vshadow command.See “Using vshadow to verify support for transportable snapshots” onpage 73.

■ The VSS provider should be installed on both the primary and the alternateclient.

31Create a backup policy for Hyper-VCreating a policy with the Snapshot Policy Configuration wizard

Page 32: netbackup hyperv

■ All virtual machine files must reside on Hyper-V host volume(s) that the VSSprovider supports for transportable snapshots involving the Hyper-V writer.

■ The primary client and alternate client must run the same operating system(Windows2008), volumemanager, and file system. For eachof these I/O systemcomponents, the alternate client must be at the same version as the primaryclient, or at a higher version.

■ The primary client and alternate client must run the same version ofNetBackup. For example, the use of a later version ofNetBackupon theprimaryclient and an earlier version on the alternate client is not supported.For more information on alternate client requirements, see "Alternate clientbackup" in the NetBackup Snapshot Client Administrator's Guide.

Configuring alternate client backup of virtual machinesThis section describes details unique to setting up a policy for alternate clientbackup. This section is a supplement to a larger procedure. For further instructionson creating a policy, see the following:

See “Creating a Hyper-V policy from the Policies node” on page 23.

To configure an alternate client backup of a virtual machine

1 In the NetBackup Administration Console, create a new policy.

2 Select FlashBackup-Windows as the policy type.

3 Click Hyper-V server and enter the host name of the server.

4 ClickPerformoff-hostbackupandselectAlternateClient fromthepull-down.Enter the name of the alternate client.

Following is the Snapshot Client portion of the policy attributes dialog.

Create a backup policy for Hyper-VAlternate client backup of virtual machines

32

Page 33: netbackup hyperv

5 Click Options and review the configuration parameter settings.

More information is available on these parameters.

See “Configuration parameters for Hyper-V” on page 27.

Note the following:

Full VM Backup supports full schedules only.

Mapped Full VM Backup supports full or incrementalschedules.

Virtual Machine Backup

6 Create a schedule for the backup.

7 On the Clients tab, select the virtual machine(s) to back up.

Click New.

See “Browse for Hyper-V virtual machines” on page 30.

8 On the Backup Selections tab, select ALL_LOCAL_DRIVES.

9 After you start the backup, theDetailedStatus log should include the followingline:

... snapshot backup using alternate client <host_name>

Troubleshooting assistance is available.

See “Problems with alternate client backup” on page 73.

A NetBackup client inside the virtual machineAlthough a NetBackup client is required on the Hyper-V server, it is not neededin the virtual machine except in the following cases:

■ To back up individual virtual drives that are inside the virtual machine, suchas virtual drives that are on vhd files as though on a physical host.

■ To back up the physical disks that the virtual machine accesses in a passthrough configuration.To back up disks in a pass through configuration by means of a VSS hardwaresnapshot provider, an alternate client configuration is required.See “About Hyper-V pass-through disks” on page 85.

■ To back up databases or applications using NetBackup agents.

33Create a backup policy for Hyper-VA NetBackup client inside the virtual machine

Page 34: netbackup hyperv

Create a backup policy for Hyper-VA NetBackup client inside the virtual machine

34

Page 35: netbackup hyperv

Windows Server 2008failover cluster support

This chapter includes the following topics:

■ About virtual machines on Windows 2008 failover clusters

■ Notes on CSV backup and restore

■ Creating a policy for virtual machines in a cluster

■ Where is the virtual machine restored in a cluster?

■ Virtual machine maintenance after a restore

About virtual machines on Windows 2008 failoverclusters

NetBackup support for failover clusters includes the following:

■ NetBackup canuse a single policy to back uphigh availability (HA) andnon-HAvirtual machines in the cluster.

■ NetBackup can back up a virtualmachine even if itmigrates to a different nodein the cluster.

■ NetBackup can restore the entire virtualmachine to a cluster or to anyHyper-Vhost.

Note: A NetBackup 7.0 client must be installed on each node of the cluster.

When restoring a clustered virtual machine to its original location, note thefollowing:

4Chapter

Page 36: netbackup hyperv

■ The restore destination depends on the virtual machine's HA status at thetime of its backup and at the time of restore (if it still exists).See “Where is the virtual machine restored in a cluster?” on page 38.

■ Virtual machines are always restored to a state of non-high availability. Theycan be manually reset for high availability.

■ If the existing virtual machine has a status of highly available at restore time,also note the following:

■ Its cluster resources are deleted during the restore.

■ Its cluster group is not deleted during restore. Removal of the cluster groupmust be done manually.See “Virtual machine maintenance after a restore” on page 39.

Notes on CSV backup and restoreWindowsServer 2008R2 includes a new feature forHyper-V called Cluster SharedVolumes (CSV). CSV allows multiple virtual machines to share volumes (diskLUNs). CSV also allows live migration of a running virtual machine from oneHyper-V server to another without user interruption.

Multiple virtual machines can be created on a single cluster shared volume (CSV)and owned by different nodes. (Hyper-V servers are configured as nodes in thecluster.) All nodes can access the CSV simultaneously.

NetBackup can back up the virtualmachines that are configured in cluster-sharedvolumes.

Note the following:

■ During the backup, the cluster-shared volume (CSV) enters the online state(“Backup in progress, Redirected access"). The cluster node that performs thebackup becomes the owner of the CSV.

■ Multiple nodes cannot back up a CSV simultaneously. When a node backs upa virtual machine on a CSV, the attempt by another node to back up the samevirtual machine fails.You can use the CSV Timeout in Minutes option in the policy to adjust howlong NetBackup waits for another backup of the same CSV to complete.See “CSV Timeout in Minutes” on page 29.

■ A single node containing two virtual machines can back up both machinessimultaneously, even if theyuse the sameCSV.As longas bothvirtualmachinesreside on the same node, simultaneous backups are allowed.

Windows Server 2008 failover cluster supportNotes on CSV backup and restore

36

Page 37: netbackup hyperv

Creating a policy for virtual machines in a clusterThis procedure focuses on configuration items unique to virtual machines thatuse a CSV. Broader details on creating a policy are available:

See “Creating a Hyper-V policy from the Policies node” on page 23.

To create a policy for virtual machines

1 Select FlashBackup-Windows as the policy type.

2 Click on Hyper-V server.

3 In the Hyper-V server field, enter the name of the cluster.

4 Click Options.

Note the following on the Snapshot Client Options dialog for the Hyper-Vsnapshot method:

Determineswhether or not NetBackup is allowed to performan offline backup of a virtual machine.

See “Allow Offline Backup of VM” on page 29.

Allow Offline Backupof VM

Determines howmanyminutes the backup job waits, in caseanothernode is alreadybackingup the samesharedvolume(s)that this backup requires.

See “CSV Timeout in Minutes” on page 29.

CSV Timeout inMinutes

5 Click the Clients tab, and then click New.

6 You can enter the host name, display name, or GUID of the virtual machineto back up, or click Browse and select Virtual Machine.

The cluster name and its nodes (Hyper-V servers) appear in the left pane,under Hyper-V Manager. The virtual machines appear in the larger pane tothe right.

37Windows Server 2008 failover cluster supportCreating a policy for virtual machines in a cluster

Page 38: netbackup hyperv

The High Availability column indicates whether the virtual machine isconfigured as highly available in the cluster.

Note the following:

■ The host name or display name must appear in the list, according to theClient Name Selection option on the Snapshot Client Options dialog. Ifyou selected host name for the Client Name Selection option, but a hostname for the virtualmachine does not appear, the virtualmachine cannotbe added to the Clients list.The host name of a virtual machine is available only when the virtualmachine is in the running state. The display name and GUID are alwaysavailable. If the host name does not appear, make sure that the virtualmachine is turned on. To update the cache file and re-display virtualmachines, click the refresh icon to the right of the Last Update field.

■ If the right pane reads "Unable to connect," the highlighted node in theleft pane is down or the NetBackup client service is not running.

7 When you have selected virtual machines, click OK.

The selected virtual machine(s) appear in the Client list.

Where is the virtual machine restored in a cluster?When you restore a virtual machine to a cluster, you can restore to the originallocation or to a different location. But for a virtual machine that failed over toanother node after the backup occurred, what is the original location? Is it thenode (Hyper-V server) where the virtual machine resided when it was backed up,or the node where it now resides?

Table 4-1 is a decision chart for restore to original location in a cluster. It indicateswhere the virtual machine is restored. The location depends on the virtual

Windows Server 2008 failover cluster supportWhere is the virtual machine restored in a cluster?

38

Page 39: netbackup hyperv

machine's high availability (HA) state when it was backed up and when it wasrestored.

Table 4-1 Decision chart for restore to original location in a cluster

Virtual machine is restored to this node (to non-HA state):Is the virtualmachine status HAat time of restore?

Is the virtualmachine status HAat time of backup?

Restored to node that owns the virtual machine at time of restore.YesYes

Restored to node on which the virtual machine resided at time ofbackup.

NoYes

Restored to node on which the virtual machine resided at time ofbackup.

Virtual machine doesnot exist.

Yes

Restored to node on which the virtual machine resided at time ofbackup.

At time of restore, if virtual machine resides on a different nodefrom where it resided when backed up, the restore fails.

YesNo

Restored to node on which the virtual machine resided at time ofbackup.

NoNo

Restored to node on which the virtual machine resided at time ofbackup.

Virtual machine doesnot exist.

No

Note: In all cases, the virtual machine is restored to the non-HA state.

Virtual machine maintenance after a restoreNote the following about restoring a virtual machine in a cluster:

■ Virtual machines are always restored to a state of non-high availability. Toreturn the virtual machine to high availability, use the Microsoft FailoverCluster Manager and the High Availability Wizard. For instructions, referto the following Microsoft site:http://technet.microsoft.com/hi-in/library/cc732181(en-us,WS.10).aspx#BKMK_HA

■ If the existing virtual machine has a status of high availability and the restoreoverwrites the virtual machine, note the following:

■ The existing virtual machine's cluster resources are removed during therestore.See “Removal of cluster resources during restore” on page 40.

39Windows Server 2008 failover cluster supportVirtual machine maintenance after a restore

Page 40: netbackup hyperv

■ The virtual machine's cluster group is not removed during restore. Whentwo or more virtual machines are created on the same cluster disks, thecluster software places their resources in the same virtual machine group.Since another virtual machine may share that group, NetBackup does notdelete the group.Removal of the cluster group must be done manually. Refer to Microsoftdocumentation for instructions.

Removal of cluster resources during restoreWhen a virtual machine is configured as highly available, the Microsoft Clustersoftware creates a group for that virtual machine. The group contains variousresources, such as VM resource, VM configuration resource, and disk resource.These resources are under the control of the group.

When a highly available (HA) virtual machine is restored to its original location,the existing virtual machine at that location must be removed. As part of therestore, theMicrosoftCluster softwareautomatically removes thevirtualmachine'sgroup resources as well, as described in the following table.

Table 4-2 Removal of cluster resources during restore: CSV-based vsnon-CSV-based

These group resources are removed alongwith theexisting virtual machine:

Is the HA virtual machinebased on a CSV volume?

VM resource, VM configuration resource, and diskresource are removed.

Yes

VM resource and VM configuration resource areremoved. The existing disk resource is retained as partof the cluster group.

No

Windows Server 2008 failover cluster supportVirtual machine maintenance after a restore

40

Page 41: netbackup hyperv

Back up and restoreHyper-V

This chapter includes the following topics:

■ Backing up Hyper-V virtual machines

■ Further information on NetBackup policies

■ Restore notes

■ About restoring individual files

■ Restoring individual files to a host that has a NetBackup client

■ Restoring individual files to a shared location on the virtual machine

■ Restoring the full virtual machine

■ Restore Marked Files dialog box (Hyper-V)

■ About restoring common files

Backing up Hyper-V virtual machinesVirtual machine backups can be initiated from a NetBackup policy. You can startthe backup manually from a policy, or have it run automatically according to aschedule that is defined in the policy.

To create the policy, you can use the Policies node of the NetBackupAdministrationConsole, or you canuse the Snapshot Policy Configurationwizard.

See “Creating a Hyper-V policy from the Policies node” on page 23.

See “Creating a policywith the Snapshot Policy Configurationwizard” on page 31.

5Chapter

Page 42: netbackup hyperv

To back up a virtual machine manually from an existing policy

1 Click on the Policies node in the NetBackup Administration Console, selectthe policy, and click Actions > Manual Backup.

The Manual Backup dialog appears.

2 Select the type of schedule for the backup.

3 Select the clients (virtual machines) to back up.

4 Click OK to start the backup.

5 To watch the backup progress, click the Activity Monitor node of theAdministration Console.

Further information on NetBackup policiesFor further informationonpolicies andbackup schedules, see the "Creatingbackuppolicies" chapter of the NetBackup Administrator's Guide, Volume I.

Back up and restore Hyper-VFurther information on NetBackup policies

42

Page 43: netbackup hyperv

Restore notesThis topic describes important points on restore.

Notes on individual file restoreNote the following:

■ If you are running antivirus protectiononHyper-Vvirtualmachines, SymantecrecommendsSymantec Endpoint Protection 11.0MaintenanceRelease 4 (build11.0.4000) or later. Restores of virtual machine files complete faster if thevirtual machine is running this version as opposed to an earlier version ofEndpoint Protection.

■ To restore an individual file that is larger than approximately 2 GB, restorethe file to a host that has a NetBackup client. NetBackup for Hyper-V does notcurrently support restores of large files by means of a shared location on thevirtualmachine. This file size restriction does not apply to restore of an entirevirtual machine.See “Restoring individual files to a host that has a NetBackup client ”on page 46.

■ Fromabackup image thatwasmadewith theMappedFullVMBackup option:If you select individual files to restore, the selected files must have originallyresided on the same virtual machine volume. If some of the files resided onone volume and other files resided on a different volume, the restore fails.

■ Files that use NTFS-file system features cannot retain those features if youattempt to restore the files to a FAT or FAT32 file system.

Note the following:

■ Files thatwere compressedunderNTFSare restored as uncompressed filesin a FAT or FAT32 file system.

■ Files thatwere encryptedunderNTFS cannot be restored to a FATor FAT32file system.

■ Files that had NTFS-based security attributes are restored without thoseattributes in a FAT or FAT32 file system.

■ The restore failswithNetBackup status 5when the files that have alternatedata streams are restored to a FAT or FAT32 file system.

Notes on full virtual machine restoreNote the following:

43Back up and restore Hyper-VRestore notes

Page 44: netbackup hyperv

■ A backup of the full virtualmachine can be restored only to aWindows Server2008 and later with the Hyper-V role enabled.

■ Bydefault, theNetBackup client on theHyper-V server does not haveWindowsAdministrator privileges. You can restore a full virtual machine from theNetBackup server. You cannot restore a full virtualmachine fromaNetBackupclient that does not have Administrator privileges.

■ When you restore the virtual machine to its original location with theOverwrite virtual machine option, note: The same virtual machine on theHyper-V server is automatically turned off and deleted before the restore. The.vhd files of the virtual machine on the Hyper-V server are overwritten by the.vhd files from the backup image. If any new .vhd files were created after thebackup, those files are not removed.

■ When you restore the virtual machine to a different location on the originalHyper-V server or to a different server, note: The same virtual machine (if itexists) on the Hyper-V server is automatically turned off and deleted beforethe restore if you choose theOverwritevirtualmachine option. The .vhd filesof the deleted virtualmachine, however, are not deleted. Youmust delete those.vhd files.

■ When you restore the virtual machine to a Hyper-V server that has a virtualmachine of the same GUID, you must select the Overwrite virtual machineoption. Otherwise, the restore fails.

■ If you restore a virtualmachinewithout theOverwritevirtualmachineoption,note: You must remove the current virtual machine and its .vhd files from thedestination server before you start the restore. If you remove the virtualmachine but leave one or more of its .vhd files on the destination server, the.vhd files from the backup are not restored.

■ (This item is a limitation in VSS and the Hyper-V writer, not in NetBackup.) Ifthe virtual machine contains Hyper-V snapshot files (.avhd files), NetBackupcannot restore the virtual machine to a different location or to a differentHyper-V server.

Note the following:

■ This issue has been fixed in Windows Server 2008 R2 (restore server).

■ This restriction does not apply in either of the following cases: When yourestore the virtual machine to its original location on the original Hyper-Vserver, or when you restore to a staging location.

Note that NetBackup does not create Hyper-V snapshot files (.avhd).

■ (This item is a limitation in VSS, not in NetBackup.) Immediately after a fullvirtual machine is restored, the virtual machine volume may be larger than itwas when the virtual machine was backed up. The increase is normal: After

Back up and restore Hyper-VRestore notes

44

Page 45: netbackup hyperv

the restore, snapshot-related cache files remain on the volume. After about20minutes, the cache files are automatically removed and the volume returnsto its original sizeNote: A new backup of the restored virtual machine could fail if the virtualmachinevolumecontains insufficient space to create a snapshot for thebackup.According to Microsoft, this situation should not occur as long as the virtualmachine volume has at least 10 to 15% free space.

■ If you attempt to do a full restore of two virtual machines at the same time,and the two machines share a virtual hard disk (.vhd file) that both restorejobs have selected to restore, a race condition may result. The two jobs maysimultaneously attempt to access the same .vhd file, but only one job gainsaccess to the file. The other job is denied access, and that job may fail witherror code 185.See “NetBackup status codes related to Hyper-V” on page 64.

■ If you restore a virtualmachine to a differentHyper-V server, note: The originalHyper-V server and the target server must have the same number of networkadapters (NICs). You must configure the network adapter(s) for the restoredvirtual machine on the target server.See “Restored virtual machine fails to start” on page 75.

About restoring individual filesIf the Virtual Machine Backup option was Mapped Full VM Backup, you canrestore the individual files and folders that existed on that virtual machine at thetime of the backup.

If the Virtual Machine Backup option was Full VM Backup, you can restore thefull virtual machine only.

See “Restoring the full virtual machine” on page 50.

More information is available on the Hyper-V backup options.

See “Creating a Hyper-V policy from the Policies node” on page 23.

You can set up a configuration to restore individual files in any of the followingways:

■ Install a NetBackup client on another computer. Create a share on the virtualmachine to allow that computer to access the virtual machine. (The virtualmachine does not require a NetBackup client.) Specify the UNC path as thedestination for the restore. More information is available on this option:See “Restoring individual files to a shared location on the virtual machine”on page 48.

45Back up and restore Hyper-VAbout restoring individual files

Page 46: netbackup hyperv

See “Setting up NetBackup Client Service for restore to a shared location onthe virtual machine” on page 49.

■ Install a NetBackup client on the virtual machine where you want to restorethe files. Restore the files to the virtual machine in the same manner asrestoring to any NetBackup client.See “Restoring individual files to a host that has a NetBackup client ”on page 46.

■ Install a NetBackup client on another computer. Restore the files to thatcomputer and then copy the files to the virtual machine.To restore encrypted files, you must install a NetBackup client on the virtualmachine and restore the files directly to the virtual machine.See “Restoring individual files to a host that has a NetBackup client ”on page 46.

You can use theNetBackupBackup, Archive, andRestore interface to restore filesand folders from NetBackup for Hyper-V backups.

Important notes on Hyper-V restore are also available.

See “Restore notes” on page 43.

Restoring individual files to a host that has aNetBackup client

Use the following procedure.

Back up and restore Hyper-VRestoring individual files to a host that has a NetBackup client

46

Page 47: netbackup hyperv

To restore individual files to a host that has NetBackup client

1 Start the NetBackup Backup, Archive, and Restore interface on a NetBackupclient.

2 Click Files > Specify NetBackup Machines and Policy Type.

Select the following.

The NetBackup master server that performed theHyper-V backup.

Server to use for backupsand restores

The Hyper-V virtual machine that was backed up.Source client for restores(or virtual client forbackups)

A physical host or a virtual machine. The host or virtualmachine must contain a NetBackup client.

You must use a different procedure to restore the filesto a virtual machine that does not have a NetBackupclient.

See “Restoring individual files to a shared location onthe virtual machine” on page 48.

Destination client forrestores

FlashBackup-Windows.Policy type for restores

3 Under Actions > Select Restore Type, select Normal Backups.

4 In the All folders pane, select the files to restore.

5 Click Actions > Restore.

6 Make your selections on the Restore Marked Files dialog.

Note the following:

■ Restore everything to its original locationSelect this option to restore the files to their original paths or folders onthe destination client. If the original volume at the time of backup (suchas E:\) does not exist on the destination client for this restore, the restorefails.

■ Restore everything to a different locationSelect this option to restore the files to a different path or folder on thedestination client. Specify the folder in the Destination field.If the original volume at the time of backup (such as E:\) does not exist onthe destination client for this restore, the restore fails.Use a different procedure to restore the files to a virtual machine thatdoes not have a NetBackup client:

47Back up and restore Hyper-VRestoring individual files to a host that has a NetBackup client

Page 48: netbackup hyperv

See “Restoring individual files to a shared location on the virtualmachine”on page 48.

■ Restore individual folders and files to different locationsSelect this option to restore files to particular locations. Each item youselected to restore appears in the Source column. Double-click on an itemto enter or browse for a restore destination.

7 Click Start Restore.

Restoring individual files to a shared location on thevirtual machine

You can restore virtual machine files to a Hyper-V virtual machine that does nothave a NetBackup client installed on it.

To restore individual files to a virtual machine that is not a NetBackup client

1 Install a NetBackup client on a physical host.

The host must be in the same domain as the virtual machine that you wantto restore the files to. This host can be aHyper-V server or another computer.

2 Create a share to allow the host that contains the NetBackup client to accessthe virtual machine. The share must allow write access.

For example: \\virtual_machine1\share_folder

In this example, virtual_machine1 is the ultimate destination for the restoredfiles. The host with the NetBackup client acts as a conduit for the restore.

3 Start theNetBackupBackup,Archive, andRestore interface on theNetBackupclient.

Back up and restore Hyper-VRestoring individual files to a shared location on the virtual machine

48

Page 49: netbackup hyperv

4 Click Files > Specify NetBackup Machines and Policy Type.

Select the following.

The NetBackup master server that performed theHyper-V backup.

Server to use for backupsand restores

The Hyper-V virtual machine that was backed up.Source client for restores(or virtual client forbackups)

Select the host that has theNetBackup client. The virtualmachine to which youwant to restoremust have a sharefor this host.

Do not specify the virtual machine in this field.

Destination client forrestores

FlashBackup-Windows.Policy type for restores

5 Under Actions > Select Restore Type, select Normal Backups.

6 In the All folders pane, select the files to restore.

7 Click Actions > Restore.

8 On the Restore Marked Files dialog, click Restore everything to a differentlocation.

In theDestination: field, specify theUNCpathname that refers to the shareddrive or folder on the destination virtual machine.

For example, to restore files to E:\folder1 on virtual_machine1, enter thefollowing:

\\virtual_machine1\share_folder\

NetBackup restores the files to the shared location on the virtual machine.

9 You may have to change the logon for the NetBackup Client Service.

See “Setting up NetBackup Client Service for restore to a shared location onthe virtual machine” on page 49.

Setting up NetBackup Client Service for restore to a shared locationon the virtual machine

To restore individual files to a Windows virtual machine that has a shared drive,the NetBackup Client Service must be logged on as the domain Administratoraccount. Itmust not be logged on as the Local Systemaccount. TheAdministrator

49Back up and restore Hyper-VRestoring individual files to a shared location on the virtual machine

Page 50: netbackup hyperv

account allows NetBackup to write to the directories on the virtual machine towhich the data is restored.

If you try to restore files while the NetBackup Client Service is logged on as theLocal System account, the restore fails.

To log on the NetBackup Client Service as Administrator

1 In Windows Services on the host that has a share to the virtual machine,double-click the NetBackup Client Service.

2 Check the Log On tab: if the service is not logged on as Administrator, stopthe service.

3 Change the logon to the Administrator account, in the domain in which boththe virtual machine and the host that has a share reside.

4 Restart the service.

5 Retry the restore.

Restoring the full virtual machineYou can restore the entire virtual machine to the original Hyper-V server or to adifferent Hyper-V server.

For important notes on restoring the full virtual machine, see the following:

See “Notes on full virtual machine restore” on page 43.

Back up and restore Hyper-VRestoring the full virtual machine

50

Page 51: netbackup hyperv

To restore the entire Hyper-V virtual machine

1 Start the NetBackup Backup, Archive, and Restore interface.

2 Specify the source client, destination client, and type of policy.

Windows:

Click Files > Specify NetBackup Machines and Policy Type.

UNIX:

On the RestoreFiles tab, click the hand icon that is in the upper right corner.

Select the following.

The NetBackup master server that performed the Hyper-Vbackup.

Server to use forbackups and restores

The Hyper-V virtual machine that was backed up.Source client forrestores (or virtualclient for backups)

This field is ignored when you restore an entire virtualmachine.

A later step in this procedure explains how to restore to adifferent Hyper-V server.

Destination client forrestores

FlashBackup-Windows.Policy type forrestores

3 Select the type of restore:

Windows:

Click the downarrownext to theSelectforRestore option and selectRestorefrom Virtual Machine Backup. A restore window displays the backupsavailable for restore.

UNIX:

On the Restore Files tab, select Restore type > Virtual Machine Backups.

4 Select the backup of the virtual machine that you want to restore.

Windows:

In the NetBackup History pane, click on the Hyper-V backup, then click onthe item that is displayed underAllFolders. Youmust select the entire virtualmachine.

UNIX:

51Back up and restore Hyper-VRestoring the full virtual machine

Page 52: netbackup hyperv

■ On theRestoreFiles tab, specify the Start date andEnddatewithinwhichto search for the backup.

■ Specify root (/) in the Browse directory field and press Enter.

■ Click on the root folder that is displayed under Directory Structure.

5 Open the Restore Marked Files dialog.

Windows: Click Actions > Restore.

UNIX: Click Restore.

More information is available on this dialog.

See “Restore Marked Files dialog box (Hyper-V)” on page 52.

6 Click Start Restore.

When the restore is complete, the restored virtual machine is placed in theSaved or Off state. The state after restore depends on its state at the time ofthe backup and the type of Hyper-V backup that occurred.

See “About Hyper-V online and offline backups” on page 81.

Restore Marked Files dialog box (Hyper-V)Select from the following options on the Restore Marked Files dialog box.

Back up and restore Hyper-VRestore Marked Files dialog box (Hyper-V)

52

Page 53: netbackup hyperv

Shows the Hyper-V GUID (Globally Unique Identifier) of the virtual machine that wasbacked up. Use this value to verify that this backup represents the virtual machine thatyou want to restore. The GUID is a unique string for a virtual machine in addition to thehostname.

Hyper-V virtualmachine GUID

Restore Options

53Back up and restore Hyper-VRestore Marked Files dialog box (Hyper-V)

Page 54: netbackup hyperv

Restores the virtual machine to its original location on the original Hyper-V server.Restore to Hyper-Vserver

Restores the virtual machine to a different location on the original Hyper-V server, orrestores it to a different Hyper-V server.

Restore to differentlocations on same /different Hyper-Vserver

Restores the virtual machine files to the staging location on the server that you specifyunder Hyper-V server and Restore everything to different directory. Use this optionif:

■ You do not want to restore an entire virtual machine

■ You do not want NetBackup to start the virtual machine after the restore

For instance, you can use this option to add restored files as a .vhd volume to a virtualmachine other than the one from which they were backed up.

Restore to staginglocation

If you selected Restore to Hyper-V server or Restore to different locations on same /different Hyper-V server, note the following:

■ If a virtual machine with the same GUID exits at destination server, that virtualmachine is removed with its configuration files and snapshot files. Any existing .vhdfiles for the virtual machine on the destination server are overwritten. The virtualmachine that you selected to restore is restored from the backup.

■ If the Overwrite virtual machine option is not selected and a virtual machine withthe same GUID exists on the destination server: The restore fails with NetBackupstatus code 5.

■ If the Overwritevirtualmachine option is not selected and .vhd file(s) for the virtualmachine still exist on the destination: The .vhd file(s) from the backup are not restored.

See “Problems with restore of the full virtual machine” on page 78.

If you selected Restore to staging location, note the following:

■ If the .vhd file already exists on the destination server in the location that is specifiedfor the restore, that file on the destination server is overwritten.

■ If the Overwrite existing files option is not selected and any file you want to restorealready exists in the specified restore location, the file is not overwritten. Any otherfiles that are selected for restore are restored. The restore is reported as a partialsuccess.

Overwrite virtualmachine

(If you selected Restoreto staging location, thisoption is Overwriteexisting files)

Restore Destinations

If you selected Restore to Hyper-V server (to restore to the original location), note: therestore destination is the name of the Hyper-V server from which the virtual machinewas backed up. In this case, the destination cannot be changed.

For the other restore options (restore to a different location, or restore to staging location),specify the destination Hyper-V server for the restore.

Hyper-V server

Back up and restore Hyper-VRestore Marked Files dialog box (Hyper-V)

54

Page 55: netbackup hyperv

Lists the Hyper-V virtual machine files as they existed when the virtual machine wasbacked up. By default, all listed files are selected for restore.

If you do not want the restore to replace certain files on the current virtual machine onthe destination server, uncheck those files. Leave a check mark next to the files that youwant to restore. The files that are not checked are not restored. Note that the followingvirtual machine configuration files are not de-selectable in restores other than stagingrestores:

.xml, .vsv, and .bin files, and .avhd files.

Caution:Replacing common fileswith earlier versions can be problematic for the virtualmachines that rely on the common files. If you do not want to overwrite the commonfiles on the Hyper-V server, uncheck the common files that you do not want to restore.

See “About restoring common files” on page 56.

Note the following about the listed files:

■ If you do not select any .vhd files, NetBackup tries to find them in their originallocation. If they are absent from the original location, the restore fails. If a parent.vhd filewas in E:\myVhds\ on the originalmachine and is not selected during restore,NetBackup looks for the parent .vhd file in E:\myVhds\ on the target machine. If thefile does not exist, the restore fails.

■ For Restore to Hyper-V server or Restore to different locations on same / differentHyper-V server, you can uncheck any .vhd files in this list. All other files arepre-checked and cannot be unchecked.

■ For Restore to staging location, you can uncheck any files in the list.

■ Configuration files (such as xml, bin, vsv, and snapshot files) are always restoredwhenyou restore the full virtual machine.

List of backed up files(Source)

This field is disabled if you selected Restore to Hyper-V server.

For restore to a different location or to a staging location: Enter the path on the serveror other machine that you specified under Hyper-V server or Staging machine name.NetBackup creates the appropriate subdirectories.

Restore everything todifferent directory

Displays the directories on the destination server in which the Hyper-V files are to berestored. You must specify a destination path in the Restore everything to differentdirectory field.

View Paths

Determines the restore job's priority for restore resources. A higher priority means thatNetBackup assigns the first available drive to the first restore jobwith thehighest priority.Enter a number (maximum99999). The default for all restore jobs is 0, the lowest prioritypossible. Any restore job with a priority greater than zero has priority over the defaultsetting.

Override default jobpriority

55Back up and restore Hyper-VRestore Marked Files dialog box (Hyper-V)

Page 56: netbackup hyperv

About restoring common filesYou can save disk space by creating a Hyper-V virtual hard disk that contains thefiles that are required by a number of virtual machines. Instead of copies of thesame .vhd file existing in several places, multiple virtual machines can share asingle .vhd file. That virtual disk (the parent .vhd file) can be accessed by two ormore virtualmachines (each called a child). The parent .vhd file is called a commonfile, because more than one virtual machine uses it.

The files unique to each virtual machine are maintained on differencing virtualdisks. These virtual disks are in a child relationship to the parent disk. The parentand child virtual disksmay be on the same physical drive or on different physicaldrives.

For example, the base version ofWindowsXP can be installed as a read-only imageon a virtual hard disk (parent). Two or more virtual machines can run the sameXP system files from the base image on the parent virtual hard disk. Applicationsthat are unique to a virtualmachine are not included in the common files. Insteadthey are on the .vhd files that are specific to the virtual machine.

Caution: Use care when restoring common files. If you restore an earlier versionof the common files (overwriting the current version), the virtual machines thatrely on those files may experience problems.

When restoring common files, note the following:

■ Before you restore common files, make sure the virtual machines that use thecommon files are in the Off or Saved state. Otherwise, a virtual machine mayhave a lock on the common files and the restore fails with NetBackup statuscode 5.

■ Tokeep the common files that are currently on the server, uncheck the common.vhd files on the Restore Marked Files dialog under List of backed up files.The restore does not replace the files on the destination Hyper-V server thatare not selected in the Restore Marked Files dialog.

■ To overwrite the existing common files, check all the .vhd files from the Listof backed up files. However, if the common files are in use on the destinationserver, the restore fails. For the restore to succeed, the virtual machines thatuse the common files must be in the Off or Saved state.

■ To restore common files without overwriting any common files that exist onthe destination server: Specify a different location on the Restore MarkedFiles dialog under Restore everything to different directory.

Back up and restore Hyper-VAbout restoring common files

56

Page 57: netbackup hyperv

Best practices and moreinformation

This chapter includes the following topics:

■ Best practices

■ More information on NetBackup and Hyper-V

Best practicesSymantec recommends the following:

■ For a more efficient backup, the NetBackup media server should be installedon the same host as the Hyper-V server. In an off-host configuration, theNetBackup media server should be installed on the same host as the alternateclient.In this configuration, the backup data can be sent to storagewithout travelingover the network.

■ When creating virtual machines, use the same name for both host name anddisplay name. If the policy's Client Name Selection is changed, the existingentries on the policy Clients tab still work.See “Client Name Selection” on page 27.

More information on NetBackup and Hyper-VSee the following:

■ For details on NetBackup support for Hyper-V, see the following Symantectech note:Support for NetBackup in a virtual environment

6Chapter

Page 58: netbackup hyperv

http://entsupport.symantec.com/docs/312604

■ A wide variety of information is available at Microsoft TechNet.For example, refer to the Hyper-V Getting Started Guide:http://technet.microsoft.com/en-us/library/cc732470.aspx

Best practices and more informationMore information on NetBackup and Hyper-V

58

Page 59: netbackup hyperv

Troubleshooting

This chapter includes the following topics:

■ NetBackup logs and how to create them

■ Errors during policy creation

■ Timeout occurs when browsing for virtual machines if cluster nodes are notaccessible

■ NetBackup status codes related to Hyper-V

■ Backup job hangs for multiple virtual machines

■ Windows NTFS shadow storage has insufficient space for snapshots

■ Storage unit characteristics mismatched to request (status code 154)

■ The Hyper-V integration component is missing or not properly installed

■ NTFS shadow storage is configured on a different volume

■ LDM volumes and status code 1

■ Hyper-V snapshots (.avhd files) and status code 1

■ When backing up the virtual machines that reside on the same CSV,Windowswarning 1584 can be ignored

■ Problems with alternate client backup

■ Problems with restore

NetBackup logs and how to create themFor logmessages aboutNetBackup forHyper-Vbackupor restore, see the followingNetBackup log folders.

7Chapter

Page 60: netbackup hyperv

Table 7-1 NetBackup logs that pertain to Hyper-V backup and restore

Resides onContains themessages on

Log folder

NetBackup master ormedia server

Backup and restoreinstall_path\NetBackup\logs\bpbrm

NetBackupmediaserverBackup and restoreinstall_path\NetBackup\logs\bptm

NetBackup client on theHyper-V server

Snapshot creation,backup, and restore

install_path\NetBackup\logs\bpcd

NetBackup client on theHyper-V server

Snapshot creation andbackup

install_path\NetBackup\logs\bpfis

NetBackup client on theHyper-V server

Backupinstall_path\NetBackup\logs\bpbkar

NetBackup masterserver

Restoreinstall_path\NetBackup\logs\bprd

NetBackup client on theHyper-V server

Restoreinstall_path\NetBackup\logs\tar

NetBackup master ormedia server, andNetBackup client on theHyper-V server

Restoreinstall_path\NetBackup\logs\bpVMreq

NetBackup client on theHyper-V server

Policy configurationand on restore

install_path\NetBackup\logs\bpVMutil

NetBackup master ormedia server

Policy configurationinstall_path\NetBackup\logs\nbproxy

Note: These log folders must already exist in order for logging to occur. If thesefolders do not exist, create them.

To create the log folders, run the following command on the NetBackup serversand on the Hyper-V server:

Windows:

install_path\NetBackup\logs\mklogdir.bat

UNIX (on master or media servers):

/opt/openv/netbackup/logs/mklogdir

TroubleshootingNetBackup logs and how to create them

60

Page 61: netbackup hyperv

Formore detail on snapshot-related logs, logging levels, and the required folders,see the NetBackup Snapshot Client Administrator’s Guide.

A broader discussion of NetBackup logging is available in the NetBackupTroubleshooting Guide.

Other logs for troubleshootingThe following logs may also contain valuable information.

Table 7-2 Other logs

Resides onContains themessages onLog folder

NetBackup client on theHyper-V server

See “EnablingVxMSandvhdlogging” on page 61.

File mapping during backupand VxMS APIs.

This folder also contains avhd log, which describes theformat of the virtualmachine's .vhd files.NetBackup support can usethe vhd log to reproduce acustomer's virtual machineenvironment fortroubleshooting purposes.

\Program Files\CommonFiles\VERITAS\VxMS\Logs

NetBackup client on theHyper-V server

See “Enabling VxFI logging”on page 62.

Snapshot creation and VSSAPIs.

\Program Files\CommonFiles\SymantecShared\VxFI\4\logs\

Enabling VxMS and vhd loggingTo enable VxMS and vhd logging

1 On the Windows desktop of the Hyper-V server where the NetBackup clientis installed, click Start > Run and enter regedit.

2 To be on the safe side, make a backup of the current registry (File > Export).

3 Go to HKEY_LOCAL_MACHINE > SOFTWARE > VERITAS > VxMS.

61TroubleshootingNetBackup logs and how to create them

Page 62: netbackup hyperv

4 Change the Logging DWORD value.

For example: Useful logging levels (in decimal) are 3400 for low and 7400 forhigh.

5 For vhd logging: in the same location (HKEY_LOCAL_MACHINE >SOFTWARE > VERITAS > VxMS), create a new DWORD called VHDLog.

To enable vhd logging, set the value of VHDLog to 0x01.

To disable vhd logging, set the value of VHDLog to 0x00.

Thenameof the vhd log isvhd_vm.txt. Only onevhd_vm.txt log file is created;new log entries are written to the existing log file.

Enabling VxFI loggingBy default, VxFI logging occurs at the error level. You can increase the loggingverbosity by changing the log configuration file for the appropriate provider.

Use the following procedure.

To increase the VxFI logging level

1 On the Windows desktop of the Hyper-V server where the NetBackup clientis installed, go to the following location:

\Program Files\Common Files\Symantec Shared\VxFI\4\ConfigFiles\

This folder contains a configuration file for each provider, such as vss.confand emcclariionfi.conf. These files are generated after a successful loadof VxFI providers, usually during NetBackup policy validation.

2 Edit the .conf file for the appropriate provider, as follows:

Change the TRACELEVEL entry to the following:

"TRACELEVEL"=dword:00000006

The default TRACELEVEL value is 00000001.

Note that VSS and WMI provider logs are relevant to Hyper-V.

Errors during policy creationThe following errors may occur when you attempt to create a policy:

■ cannot connect on socket (25)

■ Error Validating Hyper-V machine name

Connect to Hyper-v server <name> failed (25)

TroubleshootingErrors during policy creation

62

Page 63: netbackup hyperv

In either case, theNetBackup client service is not running on the current owner(node) of the cluster. Start the NetBackup client service on the cluster nodeand create the policy again.

NetBackup policy validation failedNetBackup policy validation may fail in the following cases:

■ No host name entry for the virtual machine exists in the DNS server, or in theWindows hosts file on the Hyper-V server:Windows\System32\drivers\etc\hostsCreate a virtual machine name entry in either the DNS server or in the hostsfile of the Hyper-V server.

■ A firewall is enabled and no port entry exists for the master server.Add a port entry for the NetBackup master server.See the NetBackup Administrator's Guide.

Timeout occurs when browsing for virtual machinesif cluster nodes are not accessible

You can use the Browse for Virtual Machines dialog in the policy to search forvirtualmachines and add them to the policy. If the virtualmachines are in a clusterand a cluster node is not accessible, a default timeout may prevent listing thevirtualmachines in thedialog.Use the followingprocedure to increase the timeout.

To increase the client connect timeout value

1 Open the appropriate configuration file on the NetBackup master server, asfollows:

UNIX

/usr/openv/netbackup/bp.conf

Windows

In regedit, go to the following:

My computer > HKEY_LOCAL_MACHINE > SOFTWARE > Veritas >NetBackup > Current Version > Config

2 Set the CLIENT_CONNECT_TIMEOUT value to 30 seconds.

Add the following:

CLIENT_CONNECT_TIMEOUT=30

where 30 designates 30 seconds.

63TroubleshootingTimeout occurs when browsing for virtual machines if cluster nodes are not accessible

Page 64: netbackup hyperv

When this string is added to the configuration file, the clustered virtualmachines should appear in theBrowseforVirtualMachinesdialog, as follows:

■ Browsing continues for 30 seconds.

■ The Hyper-V cluster nodes are listed below the Hyper-V cluster name.

■ Downed cluster nodes are displayed as unable to connect to client.

■ All virtual machines are listed below the owner node, including migratedvirtual machines.

NetBackup status codes related to Hyper-VThis topic provides assistance for NetBackup status codes.

Table 7-3 NetBackup status codes related to Hyper-V

Explanation and recommended actionNetBackup statuscode

The problem may be one of the following:

■ The problemmay involve a virtual disk that is configured for Logical DiskManager (LDM)volumes.

See “LDM volumes and status code 1” on page 72.

■ Asnapshot of the virtualmachine (.avhd file)was createdwhile the backupwas in progress.

See “Hyper-V snapshots (.avhd files) and status code 1” on page 72.

■ The virtual machine is configured with pass-through disks. NetBackup for Hyper-V doesnot back up pass-through disks. If all of the virtual machine's disks are pass-through,note: Only the configuration files (such asXML, bin, vsv) that represent the virtualmachineare backed up.

To back up pass-through disks, see the following:

See “About Hyper-V pass-through disks” on page 85.

1, the requestedoperation waspartially successful

TroubleshootingNetBackup status codes related to Hyper-V

64

Page 65: netbackup hyperv

Table 7-3 NetBackup status codes related to Hyper-V (continued)

Explanation and recommended actionNetBackup statuscode

The problem may be one of the following:

■ In a full virtual machine restore, theOverwrite virtualmachine option was not selected:A virtualmachinewith the sameGUIDexists on the destination server. If a virtualmachinewith the same GUID exists on the destination server, you must select Overwrite virtualmachine.

■ For individual file restore through a shared location on the destination virtual machine,one or more of the files is larger than 2 GB. Restore such files to a virtual machine thathas a NetBackup client. (This issue does not apply to restores of the full virtual machine.)

■ In a restore of common files, the virtual machines that use the common files were in theRunning or Paused state. The virtual machines that use the common files must be in theOff or Saved state. Otherwise, a virtual machine may have a lock on the common files.

■ The virtual machine is highly available (HA). But the node that owns the virtual machineis not the restore server (the node that performs the restore).

See “Problems with restore of the full virtual machine” on page 78.

■ The virtual machine restore job fails but the virtual machine is nonetheless registered inthe Hyper-V server.

See “Problems with restore of the full virtual machine” on page 78.

■ Aredirected restore failed because the virtualmachinehad .avhd file(s) when itwas backedup. The restore system is earlier than Windows Server 2008 R2.

The tar log contains the following:

Redirected restore of VM having [.avhd] files isnot supported on this platform. It is supported on[Windows server 2008 R2] onwards.

5, the restore failedto recover therequested files

TheWindows shadow storage for the volumemayhave insufficient space to hold all requiredsnapshots. A larger shadow storage area may be required.

See “ Windows NTFS shadow storage has insufficient space for snapshots” on page 69.

42, network readfailed

The problem may be one of the following:

■ The NetBackup master server cannot communicate with the virtual machine.

■ The host name of the virtual machine is not available.

The NetBackup job details log contains the following message:

Error bpbrm(pid=8072) Nameuse [0], VM [<vm name>]not found on any node. Is either powered off or doesnot exist.

The virtual machine is either not running, or it is booting up. Make sure that the virtualmachine is running and then rerun the backup.

48, client hostnamecould not be found.

65TroubleshootingNetBackup status codes related to Hyper-V

Page 66: netbackup hyperv

Table 7-3 NetBackup status codes related to Hyper-V (continued)

Explanation and recommended actionNetBackup statuscode

The NetBackup storage unit is on a media server that is running an earlier version ofNetBackup (pre-6.5.4). Install NetBackup 6.5.4 or later on the media server and rerun thebackup.

See “Storage unit characteristics mismatched to request (status code 154)” on page 69.

154, storage unitcharacteristicsmismatched torequest

See “Snapshot error encountered (status code 156)” on page 66.156, snapshot errorencountered

If you attempt to do a full restore of two virtual machines at the same time, note: If the twomachines share a virtual hard disk that contains a file that both restore jobs have selectedto restore, a race condition may result. The two jobs may simultaneously attempt to accessthe same file, but only one job gains access to the file. The other job is denied access, and thatjob may fail with status code 185.

After the first restore job successfully completes, retry the second job.

185, tar did not findall the files to berestored

Snapshot error encountered (status code 156)This topic describes Hyper-V issues that relate to status code 156.

Table 7-4 Possible causes of status code 156

Description and recommended actionCauses of status code156

Indicates amismatch between the virtualmachine names that are specified on the policyClients tab and the actual names on theHyper-V server. Check the actual names as listedin the Hyper-V Manager on the Hyper-V server.

The following are the recommended actions:

■ In the NetBackup policy, the virtual machines must be specified as fully qualifiednames.

■ In theNetBackuppolicy, the virtualmachinenamemayhave been entered incorrectly.

If you browsed for the virtual machines on the Clients tab and selected names fromthe list, the list may be out of date. (The list is derived from a cache file.) Refresh thelist by clicking on the icon next to the Last Update field.

The virtual machinename is incorrectlyspecified in theNetBackup policy.

Volumes on the virtualmachine donot have enough free space for the snapshot.Microsoftrecommends that at least 10%of the virtualmachine volume is available for the snapshot.

Recommended action: create more space on the volume.

Volumes on the virtualmachine are almost full.

TroubleshootingNetBackup status codes related to Hyper-V

66

Page 67: netbackup hyperv

Table 7-4 Possible causes of status code 156 (continued)

Description and recommended actionCauses of status code156

The Hyper-V integration component is not properly installed in the virtual machine .

Recommended action:

See “TheHyper-V integration component ismissing or not properly installed” onpage 70.

TheHyper-V integrationcomponent is missing.

For aWindowsNTFS file system,Windows shadow storage for a volume (such as C:)mustbe configured on the same volume.

Recommended action:

See “NTFS shadow storage is configured on a different volume” on page 70.

Windows NTFS shadowstorage is configured ona different volume.

The following application error event may be written to the virtual machine duringbackup:

Event Type: ErrorEvent Source: VSSEvent Category: NoneEvent ID: 12302Date: 1/8/2009Time: 1:36:21 AMUser: N/AComputer: ARTICTALEVM8

Description:

Volume Shadow Copy Service error: An internalinconsistency was detected in trying to contactshadow copy service writers. Please check to seethat the Event Service and Volume Shadow Copy Serviceare operating properly.For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.

Recommended action:

Run the vssadmin list writer command.

If no writer is listed in the output and a similar error is logged, refer to the following toresolve this issue:

http://support.microsoft.com/kb/940184

The VSS framework inthe virtual machine isnot working properly

67TroubleshootingNetBackup status codes related to Hyper-V

Page 68: netbackup hyperv

Table 7-4 Possible causes of status code 156 (continued)

Description and recommended actionCauses of status code156

The bpfis log contains the following:

VssNode::prepareCsvsForBackup: CSV TimeOutexpired, Not all required CSV available in requiredstate.

One or more or the required cluster shared volumes (CSV) cannot be prepared in thespecified timeout period. A current backup that started from another node needs one ormore of the same CSVs.

Increase the CSV Timeout in Minutes period and rerun backup, or try the backup atanother time.

See “CSV Timeout in Minutes” on page 29.

A CSV timeout occurred

The bpfis log contains the following:

VssNode::prepare Backup type of VM [<VM GUID>]will be OFFLINE and configuration parameterallowOfflineBackup] is not set. To backupthis VM, set [allowOfflineBackup] configurationparameter.

NetBackup is not allowed to perform an offline backup of the virtual machine, becausethe Allow Offline Backup of VM parameter is set to No.

Set the Allow Offline Backup of VM parameter to Yes.

See “Allow Offline Backup of VM” on page 29.

Allow Offline Backup ofVM parameter set to No

Backup job hangs for multiple virtual machinesIf the policy specifies multiple virtual machines, and the storage unit "Maximumconcurrent jobs" option is set to 2 or more, the backup may hang. If you haveSymantec Endpoint Protection on your Hyper-V server, make sure that it is atversion 11.0MaintenanceRelease 4 (build 11.0.4000) or later. Backups ofmultiplevirtual machines with multiple concurrent jobs may experience this backupproblem with earlier versions of Symantec Endpoint Protection.

TroubleshootingBackup job hangs for multiple virtual machines

68

Page 69: netbackup hyperv

WindowsNTFS shadowstoragehas insufficient spacefor snapshots

For the backups that are made with the System Provider Type (for a block-levelcopy-on-write snapshot), note:Windows shadowstorage for a volumeonaHyper-Vhost must have enough space to hold all required snapshots. If too little space isavailable, the backup fails with status code 42, "network read failed." In that case,a larger shadow storage area is required. Refer to Microsoft documentation forrecommendations on shadow storage size. For example, refer to the following:

http://technet.microsoft.com/en-us/library/cc728305.aspx

If additional space is not available for shadow storage, reschedule backups so theydo not occur at the same time.

To view or resize shadow storage

1 To list the current shadow storage settings, run the following on the virtualmachine:

vssadmin list shadowstorage

2 To resize shadow storage, run the following:

vssadmin resize shadowstorage

Refer to your Microsoft Windows documentation for more details.

Storage unit characteristics mismatched to request(status code 154)

If the NetBackup storage unit is on a media server that is running a pre-6.5.4version of NetBackup, the backup fails with status 154. Messages similar to thefollowing appear in the Detailed Status log:

11/21/2008 5:36:44 PM - requesting resource STU_MED

11/21/2008 5:36:44 PM - requesting resource lin04-

x86.NBU_CLIENT.MAXJOBS.hyper_win_5.acme.com

11/21/2008 5:36:44 PM - requesting resource lin04-

x86.NBU_POLICY.MAXJOBS.MAPPED_VM

11/21/2008 5:36:46 PM - Error nbjm(pid=4224) NBU status: 154,

EMM status: Storage unit is not compatible

storage unit characteristics mismatched to request(154)

Install NetBackup 6.5.4 or later on the media server and rerun the backup.

69TroubleshootingWindows NTFS shadow storage has insufficient space for snapshots

Page 70: netbackup hyperv

TheHyper-V integration component ismissing or notproperly installed

Make sure the proper version of the Hyper-V virtual machine integrationcomponent is installed on the virtualmachine. The integration component shouldbe at version 6.0.6001.18016 or later. It should also be the same version asdrive_letter\Windows\System32\vmms.exe on the Hyper-V server. Otherwise,the backup fails with status code 156.

To determine the integration component version, right-click on the following fileon the virtual machine and click Properties > Details:

drive_letter\Windows\System32\vmicsvc.exe

This file is the integration service running in the virtual machine.

NTFS shadow storage is configured on a differentvolume

For a Windows NTFS file system, Windows shadow storage for a volume must beon the same volume. For example: If the virtual machine has multiple volumes,and the shadow storage for the C: volume is on the D: volume, the backup failswith NetBackup status 156. An error message similar to the following appears inthe Windows event logs for Hyper-V VMMS:

An unhandled exception was encountered while processing a VSS writer

event callback. The VSS writer infrastructure is in an unstable

state. The writer hosting process must be restarted in order to

resume VSS functionality.

Windows event logs for VMMS can be located on the Server Manager consoleunder the following:

Diagnostics > Event Viewer > Applications and Services Logs > Microsoft >Windows > Hyper-V-VMMS > Admin

Do the following and re-run the backup.

TroubleshootingThe Hyper-V integration component is missing or not properly installed

70

Page 71: netbackup hyperv

To configure volume shadow storage on the same volume

1 On the virtualmachine, enter the followingWindows command to determinewhether shadow storage exists on a different volume:

C:\Program Files\Veritas\NetBackup\bin vssadmin list shadowstorage

Example output:

Shadow Copy Storage association

For volume: (C:)\\?\Volume{8235bcc3-bf95-11dc-b45c-806e6f6e

2463}\

Shadow Copy Storage volume: (E:)\\?\Volume{2e0436fc-5b7b-

12dd-a2d3-dbf4f361c0

Used Shadow Copy Storage space: 0 B

Allocated Shadow Copy Storage space: 0 B

Maximum Shadow Copy Storage space: UNBOUNDED

In this example, the shadow storage for the C: volume is configured on theE: volume.

2 If shadowstorage for avolume is configuredonadifferent volume, reconfigurethe shadow storage to the same volume.

To reconfigure the shadow storage for C: to be on C:, enter the following:

vssadmin add shadowstorage /For=C: /On=C:

3 To verify that the VSS functionality is re-enabled, enter the following on theHyper-V server.

vssadmin list writers

The output should list "Microsoft Hyper-V VSS Writer" as the writer name.For example:

Writer name: 'Microsoft Hyper-V VSS Writer'

Writer Id: {66371cd4-6ded-4f4b-6f17-fd23f8ddc2dc}

Writer Instance Id: {e3282564-3ed4-4579-af5e-d452bf543004}

State: [1] Stable

Last error: No error

4 If the vssadmin list writers commanddoes not list an entry for “MicrosoftHyper-VVSSWriter," restart the vmms service. To do so, enter the followingcommands on the Hyper-V server:

net stop vmms

net start vmms

71TroubleshootingNTFS shadow storage is configured on a different volume

Page 72: netbackup hyperv

LDM volumes and status code 1If a virtual disk has been configured for Logical Disk Manager (LDM) volumes,and the NetBackup policy specifies the Mapped Full VM Backup option, note: incertain cases a backup of the virtual machine may not complete. The NetBackupjob may issue status 1, "the requested operation was partially successful." Thiserror can occur if the controller type of the .vhd disk was SCSI when the disk wasinitially formatted but the controller typewas later changed to IDE (or vice versa).

In this case, the NetBackup progress log may contain the following message:

ERR - Unable to retrieve volumes from virtual machine, error = 1

You must restore the controller type of the .vhd disk to the controller typeoriginally assigned before the LDM volume was created. Then retry the backup.

Hyper-V snapshots (.avhd files) and status code 1If a snapshot of the virtual machine (.avhd file) is created while a NetBackupbackup of the virtual machine is in progress, the backup may be only partiallysuccessful. A message similar to the following appears in the bpbkar log:

5:02:54Hyper-V snapshot.570 PM: [10948.8980] <2> tar_base::V_vTarMsgW: INF - VxMS

Error message 1 = translate_to_virtual_extent: ERROR Unable to locate MAP file = \\?\

GLOBALROOT\Device\HarddiskVolumeShadowCopy89\VM1\testvm2.veritas.com\TestVM1_diffVM1k

_8275A265-BD90-4E61-94C8-C347B7228E95.avhd

Retry the backup.

Note that NetBackup does not create Hyper-V .avhd files. NetBackup creates itsown snapshots when it backs up virtual machines.

When backing up the virtual machines that reside onthe sameCSV,Windowswarning1584 canbe ignored

In a simultaneous backup of virtual machines that reside on the same Clustershared volume (CSV), the followingWindowswarning event (1584)maybe issued:

A backup application initiated a VSS snapshot on Cluster Shared

Volume Volume1 (Cluster Disk 8) without properly preparing the volume for

snapshot. This snapshot may be invalid and the backup may not be usable for

restore operations. Please contact your backup application vendor to verify

compatibility with Cluster Shared Volumes.

TroubleshootingLDM volumes and status code 1

72

Page 73: netbackup hyperv

For this case,Microsoft has acknowledged thatmessage 1584 is a false alarm. ForNetBackup backups of the virtual machines that reside on the same CSV, thiswarning can be safely ignored.

Problems with alternate client backupNote the following potential problems:

■ If the snapshot job fails, check the detailed error messages in the bpfis logson the primary client and alternate client.

■ If the bpfis log showsVSS errors, check the VxFI VSS provider logs for details:\Program Files\Common Files\Symantec Shared\VxFI\4\logs\

Note the following strings in the VxFI VSS provider logs:

■ VSS_E_PROVIDER_VETO

■ VSS_E_NO_SNAPSHOTS_IMPORTEDThis string indicates that the snapshot resources are not available. Checkthe Windows event logs and the VSS hardware provider logs.The snapshot device that is created by the VSS hardware provider is notvisible to the primary client or alternate client. Check the Windows eventlogs and the VSS hardware provider logs. Use the vshadow command torule out any configuration issues.See “Using vshadow to verify support for transportable snapshots”on page 73.

Using vshadow to verify support for transportable snapshotsThe vshadow command is a VSS test tool supplied with the Windows VSS SDK.

Note: To use the following procedure, only vshadow.exe needs to be copied to thehost. You do not have to install the VSS SDK.

73TroubleshootingProblems with alternate client backup

Page 74: netbackup hyperv

To verify support for transportable snapshots

1 On the primary host, create a snapshot with the transportable option.

Snapshot information is maintained as part of a Backup ComponentsDocument (.xml file).

For example: If the virtual machine to be backed up resides on volumes M:\and N:\, use vshadow to create a hardware snapshot (plex) for M:\ and N:\with the Hyper-V writer:

vshadow -p -ap -t=c:\bcd1.xml M:\ N:\

This command creates a bcd.xml file in the location that is specified by the-t option.

The following is example output:

...

Select explicitly included components ...

* Writer 'Microsoft Hyper-V VSS Writer':

- Add component \276E8343-33A9-4122-88EA-51646ACB7F50

Creating shadow set {c63b0a96-5952-4f48-a6d7-33162f1def74} ...

- Adding volume \\?\Volume{1c5150b9-0249-11de-b47c-001aa03ba298}\ [M:\] to the

shadow set...

- Adding volume \\?\Volume{1c5150b3-0249-11de-b47c-001aa03ba298}\ [N:\] to the

shadow set...

...

Shadow copy set successfully created.

The important lines in the output are shown in italics, for emphasis. The *Writer line should include Microsoft Hyper-V VSS Writer. The Addcomponent line should show the virtual machine GUID.

More information is available about vshadow:

http://msdn.microsoft.com/en-us/library/bb530725%28VS.85%29.aspx

2 Copy the generated bcd.xml file from the primary to the alternate client.

TroubleshootingProblems with alternate client backup

74

Page 75: netbackup hyperv

3 Import the snapshot to the alternate client.

For example:

vshadow -I=c:\bcd1.xml

where c:\bcd1.xml specifies the location of the bcd.xml file on the alternateclient.

If these vshadow commands run successfully on the primary client andalternate client, theVSS snapshot provider supports transportable snapshotswith the Hyper-V writer.

Problems with restoreNote the following issues.

Restored virtual machine fails to startThe following issues may prevent a restored virtual machine from starting:

■ If you restore a virtualmachine to a differentHyper-V server, and the originalHyper-V server and the target server do not have the samenumber of networkadapters (NICs), note: You must configure the network adapter(s) for therestored virtual machine on the target server. Otherwise, the attempt to startthe restored virtual machine fails and a message similar to the followingappears:

Microsoft Synthetic Ethernet Port (Instance ID {C549AG45-5925-49C0-

ADD2-218E70A4A1EA}): Failed to power on with Error 'The system

cannot find the path specified.' (0x80070003). (Virtual machine

5412BD43-DC85-31CB-A688-1B29CE2C57C8)

■ The restored virtual machine may fail to start if all of the following are true:

■ The virtual machine resided on a Hyper-V Server 2008 when the virtualmachine was backed up.

■ At the time of backup the virtual machine was not in the Off state.

■ The virtual machine is restored to a Hyper-V Server 2008 R2.

A Hyper-V message states:

An error occurred while attempting to start the selected virtual

machine(s). <virtual machine name> could not initialize.

Saved state file version is incompatible.

75TroubleshootingProblems with restore

Page 76: netbackup hyperv

In this case, you must delete the virtual machine's saved state file after therestore and then start the virtualmachine. In the Hyper-VManager interface,right-click on the restored virtual machine and select “Delete Saved State.”

■ After a redirected restore of the virtualmachine onWindows Server 2008 SP2R2, the virtual machine unexpectedly enters the Saved state. It also fails tostart up. If the virtualmachinewas backed up in theOnline state, the expectedstate after restore is Off. But due to a Hyper-V error, the virtual machineincorrectly enters the Saved state.During the restore, the Hyper-V-VMMS writes the event ID 12340. Thefollowing is a sample message:

'Saved State' cannot read key '/configuration/_ba8735ef-e3a9-

4f1b-badd-dbf3a5909915_/VideoMonitor/State' from the repository.

Error: %%2147778581'(7864368). (Virtual machine ID

0AD8DFCC-BDC0-4218-B6DF-7A3BA0A735BF)

In the Hyper-V Manager, you must delete the virtual machine's saved stateafter the restore and then start the virtual machine.

■ When a virtualmachine is restored to a different Hyper-V server, the locationof a virtual CD or DVD drive may prevent the machine from restarting.

The problem occurs in the following case:

■ Theoriginal virtualmachinehad aCD ISO image that is attached to a virtualCD or DVD drive.

■ On theHyper-V serverwhere the virtualmachinewas restored, the CD ISOimage is not present on the same path where it was located on the originalHyper-V host during backup.For example: The virtual machine originally had E:\cd1.iso attached to itsvirtual DVDdrive. But E:\cd1.iso does not exist on the targetHyper-V host,or it exists at a different location, such as F:\cd1.iso. In either case, therestored virtual machine does not turn on.

To solve the attached CD/DVD problem

1 In the Hyper-V Manager, click on the restored virtual machine.

2 Click Settings.

3 Under the appropriate IDE Controller, click DVD drive.

4 In the Media pane, specify the correct location of the CD, or select None.

TroubleshootingProblems with restore

76

Page 77: netbackup hyperv

Problem with a restart of a restored virtual machine: "Why did thecomputer shut down unexpectedly?”

An unexpected shutdown message is displayed when a restored Windows virtualmachine is started.

When you start a restored virtual machine, the system may display the message“Why did the computer shut down unexpectedly?” It may prompt you to enter aproblem ID. This message and prompt occur if the virtual machine was in theRunning state when the backup was initiated.

When a Windows system starts up, a bit is set indicating that the system did notshut down gracefully. If the system is shut down gracefully, the bit is cleared.However, when an online backup of a running virtual machine is performed, theunexpected shutdown bit remains set in the backed up image. When the restoredvirtual machine is started, the bit is detected and the unexpected shutdownmessage is displayed.

Problems with restore of individual filesWhen you restore individual files (not the entire virtual machine), the restoremay fail in the following cases:

■ Files are selected from multiple drives (volumes) on the virtual machine.For example: The original virtual machine had two drives (C:\ and D:\), andfiles from each drive are selected in the same restore operation. Messagessimilar to the following appear in the job progress log:

13:26:05 (86.001) (86.001) INF - Skipping to next file header...

13:26:05 (86.001) (86.001) INF - TAR EXITING WITH STATUS = 0

13:26:05 (86.001) (86.001) INF - TAR RESTORED 11368 OF 11463 FILES

SUCCESSFULLY

13:26:05 (86.001) (86.001) INF - TAR KEPT 0 EXISTING FILES

13:26:05 (86.001) (86.001) INF - TAR PARTIALLY RESTORED 0 FILES

13:26:15 (86.001) Status of restore from image created 7/21/2008

2:55:05 PM = the requested operation was partially successful

Select files from a single drive at a time. Selecting files from multiple drivesis not supported.

■ You have attempted to restore the files into a mapped drive on the virtualmachine. The restore fails with NetBackup status code 185.Do the restore by means of a shared location on the virtual machine (with aUNC path) rather than by means of a mapped drive.

77TroubleshootingProblems with restore

Page 78: netbackup hyperv

See “Restoring individual files to a shared location on the virtual machine”on page 48.

Problems with restore of the full virtual machineRestores of a full virtual machine may fail in the following cases:

■ If the Overwrite virtual machine option was not selected and .vhd file(s) forthe virtual machine still exist on the destination: The .vhd file(s) from thebackup are not restored. You must select Overwrite virtual machine for therestore, or remove the current virtual machine and .vhd files from thedestination server before you start the restore. If you remove the virtualmachine but leave one ormore .vhd files at the destination, the .vhd files fromthe backup are not restored.

■ The virtual machine restore job fails but the virtual machine is nonethelessregistered in the Hyper-V server. The Hyper-V-VMMS writes the followingwarnings in the events log:Event ID: 10127, sample event log message:

Unable to repair the network configuration for virtual machine'Virtual Machine

Display Name'. The virtual machine may not have the same network connectivity as

it did when the backup was taken. Inspect the network settings and modify them

as necessary. (Virtual machine ID 0AD8DFCC-BDC0-4818-B6DF-7A1BA0A735BF)

Event ID: 10104, sample event log message:

One or more errors occurred while restoring the virtual machine from backup.

The virtual machine might not have registered or it might not start. (Virtual

machine ID "0AD8DFCC-BDC0-4718-B6DF-7A3BA2A735BF ")

TheHyper-Vwriter encountered a Network configuration error. The restoredvirtual machine can be started after you change the Network Adaptorconfiguration in the virtual machine settings.

■ The virtualmachine is highly available (HA), but the node that owns the virtualmachine is not the restore server (the node that performs the restore). The tarlog contains a message similar to the following:

VssNode::doRestore: Current owner of VM .[<VM name> {<VM guid>}] is

[<current owner>] not this [<restore server>], To perform this restore either move

VM to this host [<restore server>] or Delete VM from Cluster, or perform redirected

restore at current owner.

Note the following explanations:

TroubleshootingProblems with restore

78

Page 79: netbackup hyperv

■ For a restore to the original location: When the backup took place, thevirtual machine was not HA, but now the virtual machine is HA. However,the node that owns the virtual machine is not the node from which thevirtual machine was backed up.

■ For a redirected restore: The virtual machine is HA but the node that ownsthe virtual machine is not the restore server (the node that performs therestore).See the recommended actions in the tar log message.

79TroubleshootingProblems with restore

Page 80: netbackup hyperv

TroubleshootingProblems with restore

80

Page 81: netbackup hyperv

Hyper-V online and offlinebackups

This appendix includes the following topics:

■ About Hyper-V online and offline backups

■ When online vs offline backup is performed

■ Additional notes on offline backups

About Hyper-V online and offline backupsA Hyper-V virtual machine can be in any of the following states: Running, Saved,Paused, or Off.

In addition,Microsoft provides the following two types ofHyper-Vvirtualmachinebackups:

A virtual machine that is in the Running state is briefly quiesced for thebackup. User access during the backup continues without interruption.

Online

A virtual machine that is in the Running or Paused state is renderedtemporarily inactive. It is returned to its original state before the backupcompletes. User access during the backup is interrupted.

Offline

Note: Type of backup (online or offline) is a Microsoft designation and is notconfigured in NetBackup.

Table A-1 shows the possible combinations of virtual machine state and the typeof backup.

AAppendix

Page 82: netbackup hyperv

Table A-1 State of virtual machine before and after restore

State after restoreType of backupState at the time of backup

OffOnlineRunning

SavedOfflineRunning

SavedOfflineSaved

SavedOfflinePaused

OffOfflineOff

When online vs offline backup is performedAHyper-V online backup canbe performedwithnodowntimeon a running virtualmachine when all of the following conditions are met:

■ TheHyper-V integration services are installed and theVSS integration serviceis enabled.

■ All virtual machine disks are configured within the guest operating system asNTFS-formatted basic disks. If the virtual machine uses dynamic disks or theFAT or FAT32 file system, an online backup cannot be performed.Note that "dynamic" disks are not a type of virtual hard disk (vhd format).Dynamic disks and basic disks are disk types defined by Microsoft for certainWindows operating systems.

■ Each virtual machine volumemust specify itself as the storage location for itsshadowcopies. For example, the shadowcopy storage forC:\must be configuredon the C:\ volume. The shadow copy storage for D:\ must be on D:\, and soforth.

If these conditions arenotmet, the backup is performedoffline. Anoffline backupresults in some downtime on the virtual machine. If the virtual machine is in theRunning or Paused state, it is put in a Saved state as part of the offline backup.After the backup is completed, the virtualmachine is returned to its original state.

Additional notes on offline backupsWhen an offline backup is performed on a virtualmachine that is currently in theRunning state, note: the virtualmachine briefly enters the Saved state during thebackup and then returns to its original state.

For a virtual machine in the Running state at the start of the backup, the type ofbackup is offline in the following circumstances:

Hyper-V online and offline backupsWhen online vs offline backup is performed

82

Page 83: netbackup hyperv

■ The VSS integration component of Hyper-V is not running in the virtualmachine.The VSS integration component is part of the Hyper-V integration servicesthat are installed in the virtual machine.

■ The virtual machine is running an operating system that does not supportWindows Volume Shadow Copy Service (VSS).

■ The storage configuration of the virtual machine is not compliant.

Any of the following can result in a non-compliant storage configuration:

■ For any volume in the virtual machine, the shadow storage is explicitly setto be in a different volume.See “NTFS shadowstorage is configured onadifferent volume” onpage 70.

■ The virtual machine has one or more disks that are configured as dynamicdisks in the operating system. Note that dynamic disks are not a type ofvirtual hard disk. Dynamic disks and basic disks are disk types defined byMicrosoft for certain Windows operating systems.

■ The virtual machine has the volumes that do not support Volume ShadowCopy Service (VSS).If the virtual machine has a non-NTFS formatted volume (such as FAT orFAT32), the virtual machine enters the Saved state during the backup.

83Hyper-V online and offline backupsAdditional notes on offline backups

Page 84: netbackup hyperv

Hyper-V online and offline backupsAdditional notes on offline backups

84

Page 85: netbackup hyperv

Hyper-V pass-through disks

This appendix includes the following topics:

■ About Hyper-V pass-through disks

■ Configurations for backing up pass-through disks

■ Requirements

■ Restrictions

■ Configuring a local snapshot backup of pass-through disks

■ About alternate client backup of pass-through disks

■ Configuring an alternate client backup of pass-through disks

■ Important note on VSS and disk arrays

About Hyper-V pass-through disksThis appendix describes how to back up Hyper-V pass-through disks. Hyper-Vpass-through configuration allows a virtual machine to directly access physicaldisks. With pass-through access, a virtual machine can use large storage devicessuch as disk arrays. Access to a pass-through disk is faster than to a fullyvirtualized disk (vhd file). A pass-through disk can be locally attached to theHyper-V server or configured on a Fibre Channel SAN.

For assistance in setting up pass-through devices, refer to your Microsoftdocumentation.

For details on NetBackup support for Hyper-V pass-through (such as supportedoperating systems and hardware), see the following Symantec tech note:

Support for NetBackup in a virtual environment

http://entsupport.symantec.com/docs/312604

BAppendix

Page 86: netbackup hyperv

Note: The NetBackup for Hyper-V feature and Hyper-V snapshot method (asdescribed in other chapters of this guide) do not back up pass-through disks.

Configurations for backing up pass-through disksYou can use either of the following NetBackup configurations to back uppass-through disks:

■ Without Snapshot Client.Install aNetBackup client on the virtualmachine. You can configureNetBackupto backupvirtualmachine data as if the clientwas installed on aphysical host.Note thatwithout SnapshotClient software on thevirtualmachine, the featuresof Snapshot Client are not available.

■ With Snapshot Client.Install a NetBackup client on the virtual machine, as well as a license forSnapshot Client. Configure either a local snapshot backupor an alternate clientbackup. (This appendix discusses Snapshot Client configurations only.)To use aVSShardware provider for the disk array, the off-host alternate clientmethod is required.

RequirementsNote the following requirements:

■ Consult your Microsoft documentation for pass-through configurationrequirements.

■ Consult your VSS provider documentation for snapshot preconfigurationrequirements. For example, the disk array clones or mirrors must besynchronized with the disk array source device before the backup is started.

■ NetBackupmay require certain OS and array configuration, depending on theguestOSand the array. For details, see the disk arrays chapter of theNetBackupSnapshot Client Administrator's Guide.

■ For backups using aVSSprovider type ofHardware, pass-throughdisks shouldbe added as SCSI disks.

■ NetBackup client software must be installed on the virtual machine.

■ Touse Snapshot Client for local snapshot or alternate client backup, SnapshotClient must be licensed on the virtual machine.

■ For alternate client backup, the virtual machine and alternate client must berunning the same operating system, volume manager, and file system. For

Hyper-V pass-through disksConfigurations for backing up pass-through disks

86

Page 87: netbackup hyperv

each of these I/O system components, the alternate clientmust be at the samelevel as the primary client, or higher level.For complete requirements on alternate client backup, refer to the Policyconfiguration chapter of theNetBackupSnapshotClientAdministrator'sGuide.

Note: The requirements for the NetBackup for Hyper-V feature do not apply tobackups of the disk arrays that are configured as pass-through disks. TheNetBackup forHyper-V feature (using theHyper-V snapshotmethod as describedin other parts of this guide) does not back up pass-through disks.

RestrictionsNote the following:

■ For pass-through disks, Instant Recovery point-in-time rollback is notsupported for the backups that were made with a VSS hardware provider.Note that point-in-time rollback is supported with a VSS provider type ofSystem. You canuseVSSProvider Type of System for a local snapshot backup,but not for alternate client backup. Note also that copy back restore from anInstant Recovery backup is supported with both provider types of System andHardware.

■ A pass-through diskmust not be assigned bymeans of an IDE controller. If anIDE controller is used to assign a pass-through disk, NetBackup cannot createa snapshot of the disk using a hardware provider type.

Configuring a local snapshot backup of pass-throughdisks

The following procedure highlights key points in creating a policy for localsnapshot-based backup of a disk array that is configured as pass-through.

To create a policy for local snapshot backup of a pass-through disk

1 Start the NetBackup Administration Console.

2 Click on Policies and create a new policy.

3 On the policy Attributes tab, select the MS-Windows policy type orFlashBackup-Windows policy type.

4 Click Perform snapshot backups.

5 Optional: click Retain snapshots for instant Recovery.

87Hyper-V pass-through disksRestrictions

Page 88: netbackup hyperv

6 Click Options.

7 Select the VSS snapshot method.

The Hyper-V method does not apply.

The array may require additional OS and NetBackup configuration asdescribed in the disk arrays chapter of the NetBackup Snapshot ClientAdministrator's Guide.

8 Specify snapshot options for VSS.

Select the following:

■ Provider Type: You can select 1-system or 2-software. 3-hardware is notsupported for local backup.See “Provider Type” on page 28.See “Restrictions” on page 87.

■ Snapshot Attribute: The selection depends on your VSS hardwareprovider. Supported snapshotmethods and hardware types are describedin the following NetBackup 7.x Snapshot Client Compatibility document:http://seer.entsupport.symantec.com/docs/337052.htm

■ Maximum snapshots (Instant Recovery only): This option sets themaximum number of Instant Recovery snapshots to be retained at onetime.For more information on this option, refer to the "Maximum Snapshotsparameter" section in the Instant Recovery configuration chapter of theNetBackup Snapshot Client Administrator's guide.

9 In the policy Clients tab, select the virtual machine that has a pass-throughdisk configured.

10 In the policy’s BackupSelections tab, specify the pass-through disk that youwant to back up. Or specify the files or volumes that reside on thepass-through disk.

About alternate client backup of pass-through disksAlternate client backup of pass-through disks consists of the following:

■ The disk array contains the data to be backed up. Another host containingNetBackup client software and Snapshot Client software must have access tothe disk array. This host is the alternate client. (In this configuration, thevirtual machine is called the primary client.)

■ A snapshot of the data is created on the disk array and is mounted on thealternate client. The alternate client creates a backup image from the snapshot,

Hyper-V pass-through disksAbout alternate client backup of pass-through disks

88

Page 89: netbackup hyperv

using original path names, and streams the image to the NetBackup mediaserver.

■ The alternate client handles the backup I/O processing; the backup has littleor no effect on the virtual machine. The media server reads the snapshot datafrom the alternate client and writes the data to storage.

Configuring an alternate client backup ofpass-through disks

The following procedure highlights key points in creating a policy for alternateclient off-host backup of a disk array that is configured for pass-through.

To create a policy for alternate client backup of a pass-through disk

1 Start the NetBackup Administration Console.

2 Click on Policies and create a new policy.

3 On the policy Attributes tab, select the MS-Windows policy type or theFlashBackup-Windows policy type.

4 Click Perform snapshot backups.

5 Optional: click Retain snapshots for Instant Recovery.

6 Click Perform off-host backup.

7 In the Use field pull-down list, select Alternate Client.

89Hyper-V pass-through disksConfiguring an alternate client backup of pass-through disks

Page 90: netbackup hyperv

8 For Machine, enter the name of the host that is configured as an off-hostbackup machine (the alternate client).

The following shows the Snapshot Client portion of the policy Attributestab.

9 Click Options.

The Snapshot Client Options dialog appears.

10 Select the VSS snapshot method.

The Hyper-V method does not apply to alternate client backup and is notavailable in the list.

The array may require additional OS and NetBackup configuration asdescribed in the disk arrays chapter of the NetBackup Snapshot ClientAdministrator's Guide.

11 Specify snapshot options for VSS.

Select the following:

■ Provider Type: For disk arrays, select 3-hardware as the provider type.Depending onyour array andon the snapshot attribute you select, certainpreconfiguration of the arraymay be required. In theNetBackupSnapshotClient guide, see the "Configuration of snapshot methods for disk arrays"chapter for the appropriate topic for your disk array and theVSSmethod.For pass-through disks, note: Instant Recovery point-in-time rollback isnot supported for the backups that were made with a hardware provider(VSS provider type of 3-hardware). Copy back restore is supported.See “Provider Type” on page 28.See “Restrictions” on page 87.

Hyper-V pass-through disksConfiguring an alternate client backup of pass-through disks

90

Page 91: netbackup hyperv

See “Important note on VSS and disk arrays” on page 91.

■ SnapshotAttribute: 1-differential (for a copy-on-write type of snapshot)or2-plex (for a clone type ormirror type of snapshot). The choice dependson the hardware provider that is used with the disk array.

■ Maximum snapshots (Instant Recovery only): This option sets themaximum number of Instant Recovery snapshots to be retained at onetime.For more information on this option, refer to the "Maximum Snapshotsparameter" section in the "Instant Recovery configuration" chapter of theNetBackup Snapshot Client Administrator's guide.

12 On the Clients tab, specify the virtual machine that has a pass-through diskconfigured.

13 On the Backup Selections tab, specify the pass-through disk that you wantto back up, or the files or volumes that reside on the pass-through disk.

Important note on VSS and disk arraysToback up aWindows clientwith theVSSmethod, please note the following aboutsnapshot parameter values:

■ For Provider Type of 3-hardware and Snapshot Attribute of 2-plex, you mustconfigure an appropriate number of clones or mirrors in the disk array. Thenumber depends on the value that is specified for the Maximum Snapshots(Instant Recovery only) parameter. If the Maximum Snapshots parameter isset to 3, you must configure three clones or mirrors. If you do not want to useInstant Recovery and the Maximum Snapshots parameter is 1, you need onlyconfigure one clone or mirror.

■ You must also synchronize the clones or mirrors with the disk array sourcedevice before starting the backup. If the clones ormirrors are not synchronizedbefore the backup begins, VSS cannot select a clone or mirror on which tocreate the snapshot. As a result, the backup fails.

91Hyper-V pass-through disksImportant note on VSS and disk arrays

Page 92: netbackup hyperv

Hyper-V pass-through disksImportant note on VSS and disk arrays

92