NetBackup77 AdminGuide Hyper-V
NetBackup77 AdminGuide Hyper-V
Hyper-V Administrator's
Guide
Release 7.7
Symantec NetBackup™ for Hyper-V Guide
The software described in this book is furnished under a license agreement and may be used
only in accordance with the terms of the agreement.
Legal Notice
Copyright © 2015 Symantec Corporation. All rights reserved.
Symantec, the Symantec Logo, the Checkmark Logo, Veritas, the Veritas Logo, and NetBackup
are trademarks or registered trademarks of Symantec Corporation or its affiliates in the U.S.
and other countries. Other names may be trademarks of their respective owners.
The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Symantec
Corporation and its licensors, if any.
Symantec Corporation
350 Ellis Street
Mountain View, CA 94043
http://www.symantec.com
Technical Support
Symantec Technical Support maintains support centers globally. Technical Support’s
primary role is to respond to specific queries about product features and functionality.
The Technical Support group also creates content for our online Knowledge Base.
The Technical Support group works collaboratively with the other functional areas
within Symantec to answer your questions in a timely fashion. For example, the
Technical Support group works with Product Engineering and Symantec Security
Response to provide alerting services and virus definition updates.
Symantec’s support offerings include the following:
■ A range of support options that give you the flexibility to select the right amount
of service for any size organization
■ Telephone and/or Web-based support that provides rapid response and
up-to-the-minute information
■ Upgrade assurance that delivers software upgrades
■ Global support purchased on a regional business hours or 24 hours a day, 7
days a week basis
■ Premium service offerings that include Account Management Services
For information about Symantec’s support offerings, you can visit our website at
the following URL:
support.symantec.com
All support services will be delivered in accordance with your support agreement
and the then-current enterprise technical support policy.
Customer service
Customer service information is available at the following URL:
www.symantec.com/business/support/
Customer Service is available to assist with non-technical questions, such as 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 support contracts
■ Information about the Symantec Buying Programs
■ Advice about Symantec's technical support options
■ Nontechnical presales questions
■ Issues that are related to CD-ROMs, DVDs, or manuals
Support agreement resources
If you want to contact Symantec regarding an existing support agreement, please
contact the support agreement administration team for your region as follows:
■ About Hyper-V
About Hyper-V
NetBackup for Hyper-V provides snapshot-based backup of the virtual machines
that run on Windows 2008, 2008 R2, 2012, and 2012 R2 Hyper-V servers.
The principal features of NetBackup for Hyper-V are the following:
■ NetBackup for Hyper-V uses snapshot technology to keep virtual machines
100% available to users. NetBackup for Hyper-V creates quiesced Windows
snapshots using Volume Shadow Copy Service (VSS).
■ NetBackup for Hyper-V performs full backups and file-level incremental backups
of the virtual machine.
■ Can restore the full virtual machine or selected virtual machine files.
■ Can restore selected files from a full virtual machine backup.
Introduction 12
New feature in NetBackup 7.7 for Hyper-V
■ Can restore to the original virtual machine, to other locations on the Hyper-V
server, or to a different Hyper-V server.
NetBackup master server Creates the backup policies and starts backups and restores. The NetBackup master server
must be at 7.7 or later. It must include the NetBackup Enterprise Client license.
NetBackup media server Reads and writes backup data and manages NetBackup storage media. The NetBackup
media server must be at 7.7 or later. The NetBackup media server can be installed on the
Hyper-V host or on a different host.
For a more efficient backup, install the NetBackup media server on the same host as the
Hyper-V server.
For an alternate client backup, a NetBackup client must be installed on the alternate client
host.
The alternate client host must run the same Windows OS and storage stack as the Hyper-V
host.
Hyper-V server A Windows hypervisor virtualization system, for creating the virtual machine guests that
run in a Windows Server host computer.
Hyper-V integration Provides the integration between the Hyper-V server and the virtual machines.
services (integration
Note: The Hyper-V backup integration service must be enabled.
components)
For installation instructions, refer to the Microsoft Hyper-V Getting Started Guide:
http://technet.microsoft.com/en-us/library/cc732470(v=ws.10).aspx#BKMK_step4
NetBackup
master server
LAN / WAN
Phase Description
Phase 3 The VSS Hyper-V writer quiesces the Windows virtual machine and creates
the snapshot on the host volume. If the Hyper-V writer cannot quiesce the virtual
machine, the virtual machine is placed in the Saved state before creation of the
snapshot.
Phase 4 If the virtual machine was placed in the Saved state, Hyper-V returns the virtual
machine to its original state.
Phase 5 The NetBackup client reads the data from the snapshot of the virtual machine
and transfers the data to the media server. The media server writes the data
to the NetBackup storage unit.
Introduction 15
Hyper-V terminology related to backup
Term Description
avhd, avhdx file A snapshot file that Windows Hyper-V creates, for point-in-time
recovery of the virtual machine.
Common vhd, vhdx Refers to a virtual disk (vhd or vhdx file) that contains the files that
files multiple virtual machines require. Instead of copies of the same file
existing at multiple places, the virtual machines share a single vhd
or vhdx file (the parent).
Differencing disk A differencing disk is in a child relationship to the parent disk (see
common vhd, vhdx files). The parent and child virtual disks may be
on the same physical drive or on different physical drives. This
mechanism enables common files to be shared across virtual
machines.
pass-through disk Any disk that the Hyper-V server can access. It can be locally
attached to the Hyper-V server, or on a SAN. The pass-through
disk is attached to a virtual machine, but the disk is not in vhd or
vhdx format.
Introduction 16
NetBackup administrator tasks for Hyper-V
Term Description
vhd, vhdx file A file in a Windows Hyper-V installation that contains the virtualized
contents of a hard disk. vhd or vhdx files can contain an entire
virtual operating system and its programs. Hyper-V supports several
kinds of these files, such as fixed, dynamic, and differencing.
virtual machine NetBackup backs up these files as part of a full virtual machine
configuration files: backup.
xml, bin, vsv The bin and the vsv files are visible only when the virtual machine
is running.
See “Creating a Hyper-V policy from the NetBackup Policies utility” on page 28.
See “Creating a Hyper-V policy for automatic virtual machine selection”
on page 50.
■ Run a Hyper-V backup.
See “Backing up Hyper-V virtual machines” on page 84.
■ Perform a restore.
See “About restoring individual files” on page 91.
See “Restoring the full Hyper-V virtual machine” on page 99.
■ To troubleshoot your configuration:
See the Troubleshooting chapter.
■ http://support.microsoft.com/KB/959978
Notes and prerequisites 19
NetBackup for Hyper-V notes and restrictions
An update for the VSS hardware provider snapshot for Hyper-V, to avoid a
Hyper-V writer crash during backup.
■ Check with Microsoft to see if additional hot fixes have been released:
http://technet.microsoft.com/en-us/library/dd430893.aspx
■ Before starting a backup of a virtual machine, verify that the NetBackup master
server and media server can communicate with the Hyper-V server. Add the
name of the NetBackup master server to the server list on the NetBackup client
and (optional) alternate client.
■ On a virtual machine, Windows shadow storage for a volume (such as C:) does
not have to be configured on the same volume. For instance, shadow storage
for the C:\ volume can be configured on D:\. If the Hyper-V server is Windows
2008 R1 and shadow storage for a volume is not configured on the same volume,
note: Windows hot fix KB959962 must be installed to perform an online backup
of the virtual machine. In this case, if the Hyper-V server is 2008 R1 and the hot
fix has not been applied, the backup is performed offline.
Windows 2008 R2 contains all required hot fixes.
Windows shadow storage is required whenever the Windows Volume Shadow
Copy Service (VSS) creates point-in-time snapshots.
■ NetBackup for Hyper-V supports Windows NTFS file encryption and compression,
for backup and restore. However, it does not support NetBackup’s compression
or encryption options (in the NetBackup policy attributes).
For UNIX or Linux guest operating systems: NetBackup for Hyper-V does not
support any type of compression or encryption, whether they are set in
NetBackup or in the guest OS.
Note: The compressed Windows NTFS files are backed up and restored as
compressed files.
■ (The following is due to a Microsoft limitation.) NetBackup for Hyper-V does not
support backup of encrypted vhd or vhdx files.
■ (The following is due to a Microsoft limitation.) For the virtual machines that
have a FAT or FAT32 file system, NetBackup supports only Hyper-V offline
backup.
See “About Hyper-V online and offline backups” on page 133.
■ NetBackup for Hyper-V has certain character restrictions for virtual machine
display names.
See “NetBackup character restrictions for virtual machine display names”
on page 20.
■ NetBackup for Hyper-V does not support restores with the Fibre Transport data
transfer method.
■ More information is available on the restore of Hyper-V virtual machines.
See “Notes on individual file restore” on page 86.
See “Notes on full virtual machine restore” on page 88.
■ Period (.)
Note however that a display name cannot end with a period.
■ Hyphen (-)
■ Underscore (_)
■ Plus sign (+)
■ Percent sign (%)
■ Left and right parentheses ()
■ Spaces
For the policies that select virtual machines automatically: A space in a display
name is converted to "%20" in the test query results if the virtual machine is listed
as included.
See “Primary VM identifier option (Hyper-V)” on page 33.
■ For Linux files or directories, NetBackup for Hyper-V has the same path name
restriction as NetBackup on a Linux physical host. Files or directories with path
names longer than 1023 characters cannot be individually backed up or restored.
Such files can be restored when you restore the entire virtual machine from a
full virtual machine backup.
For more information on the files that NetBackup does not back up, refer to the
topic on excluding files from backups in the NetBackup Administrator's Guide
for UNIX and Linux, Vol I.
■ More information is available on the restore of Hyper-V virtual machines.
See “Notes on individual file restore” on page 86.
See “Notes on full virtual machine restore” on page 88.
Chapter 3
Configure NetBackup
communication with
Hyper-V
This chapter includes the following topics:
Note: Because VMs can automatically migrate from one cluster node to another, it
is important to allow the policy to search the entire cluster. The node where the VM
currently resides may have changed since the VM was last backed up.
To verify the privileges that are needed to discover the failover cluster
◆ Run the Failover Cluster Manager as the Failover Cluster Manager user.
Configure NetBackup communication with Hyper-V 24
Changing the NetBackup Legacy Network Service logon (vnetd.exe) to the domain user account
To change the NetBackup Legacy Network Service (vnetd.exe) logon to the domain
user account
1 On a Hyper-V server node that you want the policy to search, open Services
(run services.msc).
2 Double-click the NetBackup Legacy Network Service. This service is
vnetd.exe.
Note: The Resource Limit screen applies only to policies that use automatic selection
of virtual machines (Query Builder). If virtual machines are selected manually on
the Browse for Virtual Machines screen, the Resource Limit settings have no effect.
Note: To limit the number of simultaneous jobs per policy, use the Limit jobs per
policy setting on the policy Attributes tab. The effect of this option depends on
how the policy selects virtual machines.
See “Limit jobs per policy on the Attributes tab (for Hyper-V)” on page 32.
To set limits on the use of Hyper-V resources
1 In the NetBackup Administration Console, click Host Properties > Master
Servers and double-click the NetBackup master server.
2 Under Properties, click Resource Limit.
3 Click Hyper-V.
4 Click in the Resource Limit column to set a limit for the resource type. The
settings apply to all policies.
Active Snapshots This option controls the number of active snapshots on local volumes
Per Server (including CSV volumes). It therefore controls the number of active
backup jobs per Hyper-V server. All volumes are treated as a single
resource.
Active Snapshots This option controls the number of active snapshots on CSV volumes.
Per Cluster It therefore controls the number of active backup jobs per cluster. If
the cluster has multiple CSV volumes, the CSV volumes are treated
as one resource.
Snapshot The maximum number of snapshot jobs per Windows failover cluster.
Operations Per
Cluster
Option Description
VM hostname Specifies the network host name for the virtual machine. The host
name is available only when the virtual machine is running. If you
select VM hostname but the virtual machine is not running at the
time of the backup, the backup may fail.
VM display name Specifies the name of the virtual machine as it appears in the
Hyper-V Manager console.
Note: NetBackup for Hyper-V does not currently support the virtual
machine display names that contain non-US-ASCII characters. If
the display name contains such characters, select VM hostname
or VM GUID.
VM GUID Specifies the unique ID assigned to the virtual machine when the
virtual machine was created.
Note: If you create a policy and then change the Primary VM identifier, you may
have 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 Primary VM identifier from VM hostname to VM
display name, and the display names of the virtual machines are different from
the host names, note: The host names in the Clients tab cannot be used and the
virtual machines are not backed up. You must delete the host name entries on the
Clients tab and browse the network to select the virtual machines by their display
names.
Configure NetBackup policies for Hyper-V 34
Backup options on the Hyper-V tab
Note: When creating virtual machines, use the same name for both the host name
and the display name. If the Primary VM identifier is changed, the existing entries
on the Clients tab still work.
Note: Online vs. offline backup are Microsoft backup types and are not configured
in NetBackup.
The appropriate value for this timeout parameter depends on the following factors:
■ The average backup job duration for the virtual machines that reside on the
same CSV. The job duration depends on the size of the virtual machines and
the I/O speed.
■ The number of virtual machines on the same CSV.
Note: On Windows server 2012, cluster nodes can back up the same cluster-shared
volume simultaneously. As a result, NetBackup does not use the Cluster shared
volumes timeout option if the cluster is on Windows 2012 or later.
More information is available on NetBackup support for the virtual machines that
use CSVs.
See “About virtual machines on Windows 2008 and 2012 failover clusters”
on page 76.
Configuration Description
parameter
System Uses the Microsoft system provider, for a block-level copy on write
snapshot.
Unlike the Hardware type, the System provider does not require
any specific hardware.
Hardware Uses the hardware provider for a disk array. A hardware provider
manages the VSS snapshot at the hardware level by working with
a hardware storage adapter or controller.
Option Description
Browse for Virtual Click this option to discover Hyper-V servers or cluster nodes (shown in the left pane).
Machines 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 the virtual machines on the network if your site
has a large number of virtual machines. If the virtual machine is turned off but was
turned on when the cache file was last created, its name appears in the list.
If the display name of the virtual machine was recently changed in the Hyper-V Manager,
note: The virtual machine name that was used for the backup does not change.
If NetBackup cannot obtain the IP address of the virtual machine, the IP address is
displayed as NONE.
See “About cached names for virtual machine backup” on page 37.
Last Update To update the cache file and re-display virtual machines, click the refresh icon to the
right of the Last Update field. This field shows the date and time of the most recent
cache file that contains the names of virtual machines.
See “Creating a Hyper-V policy from the NetBackup Policies utility” on page 28.
To configure an alternate client backup of a virtual machine
1 On the NetBackup policy Attributes tab, select Hyper-V as the policy type.
2 Under Snapshot Client and Replication Director, click Perform off-host
backup and select Alternate client from the pull-down. Enter the name of the
alternate client in the Machine field.
Enable file recovery from This option supports full and incremental schedules.
VM backup
5 On the Clients tab, click New to select the virtual machine(s) to back up.
See “Browse for Hyper-V virtual machines” on page 36.
■ Query rules for virtual machine Notes that contain a newline character
Configure Hyper-V Intelligent Policies 42
About Hyper-V Intelligent Policy (automatic selection of virtual machines for backup)
■ Restoring a VM that was backed up with a Hyper-V Intelligent Policy and that
has a pass-through disk
Example Description
Add new virtual machines At the next backup, the policy can automatically discover the virtual machines
that have recently been added to the environment. If the virtual machines
match the query rules that you configure in the policy, they are automatically
backed up.
Rule Description
Displayname Contains "vm" NetBackup selects the virtual machines that have the
characters vm anywhere in their display names.
Displayname EndsWith "vm" NetBackup selects the virtual machines that have the
characters vm at the end of their display names.
Configure Hyper-V Intelligent Policies 44
Important notes on Hyper-V Intelligent Policy
Rule Description
Powerstate Equal poweredOn NetBackup selects only the virtual machines that are
currently turned on.
Note! Explanation
Create rules carefully.... Instead of manually selecting virtual machines for backup, you create guidelines for
automatic selection of virtual machines. The guidelines are called rules; you enter the
rules in the policy's Query Builder.
If the rules state: Back up all virtual machines with a host name that contains "prod",
NetBackup does that. Any virtual machine that is added to the environment with a host
name containing "prod" is automatically selected and backed up when the policy runs.
Virtual machines with the names that do not contain "prod" are not backed up. To have
other virtual machines automatically backed up, you must change the query rules (or
create additional policies).
Changes to the virtual If many virtual machines are temporarily added to your environment and happen to fall
environment can affect within the scope of the query rules, they are backed up. The backups can therefore
backup times. run much longer than expected.
Configure Hyper-V Intelligent Policies 45
Important notes on Hyper-V Intelligent Policy
Note! Explanation
Test the query rules. Test the query rules ahead of time. The policy includes a Test Query function for that
purpose. It's important to verify that your query operates as expected. Otherwise, the
query may select too many or too few virtual machines.
As an alternative, you can use the nbdiscover command to test a query. Refer to
the NetBackup Commands Reference Guide.
Note also: The policy's Primary VM identifier parameter can affect the automatic
selection process.
A query test does not create The automatic selection process is dynamic. Changes in the virtual environment may
the backup list. NetBackup affect which virtual machines the query rules choose when the backup runs.
creates the backup list when
Note: If virtual machine changes occur, the virtual machines that are selected for
the backup runs.
backup may not be identical to those listed in your query test results.
Backup
list
Query test
Backup
list
Backup
execution
Configure Hyper-V Intelligent Policies 46
NetBackup requirements for Hyper-V Intelligent Policy
Note! Explanation
The policy does not display a If you select virtual machines manually (with the Browse for Virtual machines screen),
list of the virtual machines the selected virtual machines are listed on the policy Clients tab. But when you use
that are to be backed up. the Query Builder for automatic selection, the selected virtual machines are not listed
on the Clients tab.
Use the Activity Monitor or
OpsCenter. For a list of the backed up virtual machines, use the NetBackup Activity Monitor or the
OpsCenter web interface.
When you save the policy, the When you save a policy, policy validation does not consult the query rules and select
query rules are not validated. virtual machines for backup. Because of the potential for changes in the virtual
environment, virtual machine selection must wait until the backup runs. As a result,
when you save the policy, NetBackup does not check the policy attributes against a
backup list. If the query rules select the virtual machines that are incompatible with a
policy attribute, policy validation cannot flag that fact. The incompatibility becomes
apparent when NetBackup determines the backup list at the time of the backup.
Policy Take for example a policy that is configured for Enable block-level incremental
backup (BLIB). BLIB works only with ESX 4.0 virtual machines at version vmx-07 or
later. If the query rules select a virtual machine at a version earlier than vmx-07, the
policy cannot back up that virtual machine. The mismatch between the policy and the
virtual machine is revealed when the backup runs, not when the policy is validated.
The Activity Monitor's job details log indicates which virtual machines can or cannot
be backed up.
See “Creating a Hyper-V policy from the NetBackup Policies utility” on page 28.
Set rules for virtual machine selection On the policy Clients tab, click Select automatically through Hyper-V
in the policy Query Builder Intelligent Policy query.
Choose a host for virtual machine selection (the default is the Hyper-V server).
Test the rules Click Test Query in the Query Builder on the Clients tab. Virtual machines
are labeled as included or excluded, based on the rules.
Note: The list of virtual machines is not saved in the Clients tab.
Note: The query rules are also displayed in the Backup Selections tab. The
backup selections are pre-set to All_LOCAL_DRIVES (not displayed).
Execute a backup When the policy executes, NetBackup consults the rules in the Query Builder,
creates a list of virtual machines, and backs them up.
Check the backup To see which virtual machines were backed up, use the Activity Monitor, or
run a Virtual Client Summary report in OpsCenter.
Table 5-5 Virtual machine selection options (not available on the Backup
Policy Configuration Wizard panel)
Option Description
■ Enter the name of the cluster (or one of the Hyper-V cluster nodes).
■ Set the NetBackup Legacy Network Service logon to the cluster user.
See “Changing the NetBackup Legacy Network Service logon (vnetd.exe) to the domain
user account” on page 23.
■ The NetBackup master server should not be installed on any Hyper-V nodes in the cluster.
If the master server resides on one of the nodes, you cannot log on to the NetBackup
Administration Console.
Select manually Click this option and click New to manually enter virtual machines names, or to browse and
select them from a list.
Table 5-5 Virtual machine selection options (not available on the Backup
Policy Configuration Wizard panel) (continued)
Option Description
Select automatically Click this option to allow NetBackup to automatically select virtual machines for backup based
through Hyper-V on the rules that you enter in the Query Builder.
Intelligent Policy
query
Option Description
Query Builder (Join, Use these pull-down fields to define rules for automatic selection of virtual machines. From
Field, Operator, left to right, each pull-down refines the rule.
Values)
Click the plus sign to add the rule to the Query pane.
Click the reset icon (curved arrow) to blank out the pull-down fields.
Advanced Places the Query Builder in Advanced Mode for manual entry of rules.
Basic Returns the Query Builder from Advanced Mode to Basic Mode.
Edit Use this option to change an existing query rule when in Basic Mode, as follows:
Remove Deletes a query rule when in Basic Mode. Click on the rule and then click Remove.
Configure Hyper-V Intelligent Policies 50
Creating a Hyper-V policy for automatic virtual machine selection
Option Description
Test Query Click this option to test which virtual machines NetBackup selects based on the rules in the
Query Builder.
Note: This test option does not create the backup list for the policy. When the next backup
runs from this policy, NetBackup re-discovers virtual machines and consults the query rules.
At that time, NetBackup backs up the virtual machines that match the rules.
As an alternative, you can use the nbdiscover command to test a query. Refer to the
NetBackup Commands Reference Guide.
Figure 5-1 Policy Clients tab for automatic selection of virtual machines
3 Click the Clients tab, and select Select automatically through Hyper-V
Intelligent Policy query.
If you selected virtual machines in the Browse for Virtual Machines dialog,
those virtual machines are removed from the policy.
4 Enter the name of the Hyper-V server in the Hyper-V server field.
For a clustered environment, note the following:
■ Enter the name of the cluster (or one of the Hyper-V cluster nodes) in the
Hyper-V server field.
■ Set the NetBackup Legacy Network Service logon to the domain user
account:
See “Changing the NetBackup Legacy Network Service logon (vnetd.exe)
to the domain user account” on page 23.
■ The NetBackup master server should not be installed on any Hyper-V nodes
in the cluster. If the master server resides on one of the nodes, you cannot
log on to the NetBackup Administration Console.
See “Unable to log in to the NetBackup Administration Console” on page 123.
5 To create a rule, make selections from the Query Builder pull-down menus.
■ For the first rule, you can start with the Field pull-down, depending on the
type of rule. For the first rule, the only selections available for the Join field
are blank (none), or NOT.
Select a keyword for Field:
■ Select an Operator:
Configure Hyper-V Intelligent Policies 53
Creating a Hyper-V policy for automatic virtual machine selection
The arrow icon resets the Join, Field, Operator, and Value(s) fields to
blank.
6 Click the plus sign to add the rule to the Query pane.
6 To insert a rule between existing rules, place the cursor where you want the
new rule to start and type it in.
When you create a rule with the drown-down menus, it appears at the end of
the query. You can cut and paste it to a different position.
7 To establish the proper order of evaluation in compound queries, use
parentheses to group rules as needed. Compound queries contain two or more
rules, joined by AND, AND NOT, OR, or OR NOT.
More information is available on the use of parentheses and on the order of
precedence.
See “AND vs. OR in queries” on page 56.
See “Order of operations in queries (precedence rules)” on page 60.
See “Parentheses in compound queries” on page 62.
Note: Do not use AND to join the rules that are intended to include additional virtual
machines in the backup list. For instance, AND cannot be used to mean "include
virtual machine X AND virtual machine Y."
For example: To include the virtual machines that have either "vm1" or "vm2" in
their names, use OR to join the rules:
the result is different: the backup list includes only the virtual machines that have
both vm1 and vm2 in their names (such as "acmevm1vm2"). A virtual machine with
the name "acmevm1" is not included in the backup.
No query rules specified (Query pane is All virtual machines are added to the backup list. Exceptions are those that
empty) do not have a host name, or that have invalid characters in the display name.
Displayname Contains "prod" All virtual machines with the display names that contain the string "prod" are
added to the backup list.
Displayname AnyOf The virtual machines named "grayfox7”and "grayfox9" are added to the
"grayfox7”,"grayfox9" backup list. Note that each value must be enclosed in its own quotes, with
a comma in between.
powerstate Equal "poweredOn" Any virtual machine that is turned on is added to the backup list.
Configure Hyper-V Intelligent Policies 58
The IsSet operator in queries
powerstate Equal "poweredOn" Any virtual machine that is turned on and resides on Hyper-V server
HV_serv1 is added to the backup list.
AND HypervServer Equal "HV_serv1"
IsClustered Equal TRUE Any virtual machine that is in a clustered Hyper-V server is added to the
backup list.
Displayname Contains "pre-prod" Any virtual machine with a display name containing "pre-prod" and that is
not in a clustered Hyper-V server is added to the backup list.
AND IsClustered Equal FALSE
IsClustered Equal TRUE Adds to the backup list any virtual machine in a clustered Hyper-V server if
the virtual machine has "pre-prod" in its Notes field.
AND Notes Contains "pre-prod"
Displayname StartsWith "prod" Adds to the backup list any virtual machine with a display name starting with
"prod" or with Notes that contain "prod."
OR Notes Contains "prod"
Click Advanced to see the query rule in Advanced Mode. Only Advanced Mode
supports the use of parentheses for grouping sets of rules.
Query rules with IsSet operator Effect of the query on virtual machine selection
Displayname Contains "prod" INCLUDED: Any virtual machine with a display name that contains the string
"prod" if the virtual machine also has Notes.
AND Notes IsSet
EXCLUDED: Any virtual machines that do not have Notes.
Without Notes IsSet in this query, virtual machines without Notes cannot be
excluded.
Configure Hyper-V Intelligent Policies 59
About selecting virtual machines by means of multiple policies
Query rules with IsSet operator Effect of the query on virtual machine selection
Cluster Contains "dev" INCLUDED: Any virtual machine in a cluster that has a name that contains
the string "dev" if the virtual machine also has Notes.
AND Notes IsSet
EXCLUDED: Any virtual machines that do not have Notes, and any virtual
machines that have Notes but that are not in a cluster that has a name that
contains “dev”.
Table 5-9 Three policies that back up the virtual machines in phases
First policy Notes IsSet This policy backs up all virtual machines that have a
host name and any Notes. Any virtual machines that
Primary VM identifier
do not have a host name and do not have Notes are
parameter: VM hostname
either excluded from the backup or listed as FAILED.
Configure Hyper-V Intelligent Policies 60
Order of operations in queries (precedence rules)
Table 5-9 Three policies that back up the virtual machines in phases
(continued)
Second policy NOT Notes IsSet This policy backs up all virtual machines that have a
display name, that are clustered, and that do not have
Primary VM identifier AND IsClustered Equal
any Notes. Any virtual machines that have Notes but
parameter: VM display name ‘TRUE’
are not clustered are excluded from the backup.
Third policy NOT Notes IsSet This policy backs up the virtual machines that were not
backed up by the first two policies. This policy selects
Primary VM identifier AND IsClustered NotEqual
the virtual machines that do not have any Notes and
parameter: VM GUID ‘TRUE’
are not clustered, but that do have a GUID.
More information is available on the Primary VM identifier parameter and its effect
on virtual machine selection.
See “Effect of Primary VM identifier parameter on Selection column in Test Query
results” on page 71.
x Equal y Is x equal to y 4
Note: Only the Query Builder's Advanced Mode supports the use of parentheses.
HypervServer Equal "HV-serv1" OR All virtual machines in HV-serv1 (regardless of their power state), and any
IsClustered Equal TRUE AND virtual machines that are turned on in a clustered environment.
powerstate Equal ON
To select only the virtual machines that are turned on both in the Hyper-V
server and in clustered environments, use parentheses (see next example).
(HypervServer Equal "HV-serv1" OR All the virtual machines that are turned on in HV-serv1 and in clustered
IsClustered Equal TRUE) AND environments.
powerstate Equal ON
For example: If the VM's Notes contain the following words with a newline in between
them:
Server Location
Building A
Then the browsing icon returns “Server Location Building A”. The resulting query
rule is:
Since the newline character is not included in the query, the VM may not be backed
up. To include the VM in the backup, create the query manually without using the
browsing icon.
For this example, create the query: Notes Contains “Server Location” AND
Notes Contains “Building A”:
Configure Hyper-V Intelligent Policies 64
Query Builder field reference
Table 5-12 Query Builder drop-down options: Join, Field, Operator, Value(s)
For the first rule, choices are blank (none) or NOT. After you add a rule,
the available connectors are AND, AND NOT, OR, OR NOT.
Allows browsing for values, depending on the selections that are made
in the other drop-down fields. Use the pop-up to select the value(s):
Table 5-12 Query Builder drop-down options: Join, Field, Operator, Value(s)
(continued)
Field (keywords)
Table 5-13 describes the keywords available in the Field drop-down. The table also
indicates whether the values for each keyword (in the Values field) are
case-sensitive.
Note that the Field keyword does not determine by itself the inclusion or exclusion
of virtual machines. Selection of virtual machines depends on the rule you construct:
the combination of Join, Field, Operator, and Value(s).
IsClustered Boolean TRUE if the virtual machine resides in a Hyper-V server that is in a cluster.
Configure Hyper-V Intelligent Policies 66
Query Builder field reference
Notes Alphanumeric A note that was recorded about the virtual machine, in the virtual machine's
string Summary tab in Hyper-V Manager.
Operators
Table 5-14 describes the operators available in the Operator drop-down.
Operator Description
For example: If the display names in the Value(s) field are "vm01","vm02","vm03", AnyOf matches
any VM that has one of those names. If the names of your VMs are not identical to any of the
specified values, no match occurs. A VM that is named "vm01A" is not a match.
Configure Hyper-V Intelligent Policies 67
Query Builder field reference
Operator Description
Contains Matches the value in the Value(s) field wherever that value occurs in the string.
For example: If the Value(s) entry is "dev", Contains matches strings such as "01dev",
"01dev99", "devOP", and "Development_machine".
EndsWith Matches the value in the Value(s) field when it occurs at the end of a string.
For example: If the Value(s) entry is "dev", EndsWith matches the string "01dev" but not
"01dev99", "devOP", or "Development_machine".
Equal Matches only the value that is specified in the Value(s) field.
For example: If the display name to search for is "VMtest27", Equal matches virtual machine
names such as "VMTest27" or "vmtest27" or "vmTEST27", and so forth. The name "VMtest28"
is not matched.
Greater Matches any value that is greater than the specified Value(s), according to the ASCII collating
sequence.
GreaterEqual Matches any value that is greater than or equal to the specified Value(s), according to the ASCII
collating sequence.
IsSet Determines whether a value is returned for the Field keyword. Use IsSet with another rule as a
condition, to ensure that the query selects the appropriate virtual machines.
Note that you do not make an entry under Value(s) for a rule that uses IsSet.
See “Effect of Primary VM identifier parameter on Selection column in Test Query results”
on page 71.
Less Matches any value that is less than the specified Value(s), according to the ASCII collating
sequence.
LessEqual Matches any value that is less than or equal to the specified Value(s), according to the ASCII
collating sequence.
NotEqual Matches any value that is not equal to the value in the Value(s) field.
StartsWith Matches the value in the Value(s) field when it occurs at the start of a string.
For example: If the Value(s) entry is "box", StartsWith matches the string "box_car" but not
"flat_box".
Value(s)
Configure Hyper-V Intelligent Policies 68
Test Query screen for Hyper-V
Table 5-15 describes the characters that can be entered in the Value(s) field. The
Field keyword determines case sensitivity.
Note: The character string you enter in the Value(s) field must be enclosed in single
quotes or double quotes.
For example: "*prod*" matches the string "prod" preceded or followed by any characters.
For example: "prod??" matches the string "prod" followed by any two characters.
Escape character \ (backslash) escapes the wildcard or meta-character that follows it.
For example: To search for a string that contains an asterisk (such as test*), enter "test\*"
Quotation marks Note: The characters you enter in Value(s) must be enclosed in single or double quotes.
To search for a string that contains quotation marks, either escape each quote (\") or enclose
the entire string in the opposite type of quotes.
For example: To search for a string that includes double quotes (such as "name"), enter
'"name"' (enclosing it in single quotes) or "\"name\"".
When the next backup runs from this policy, the following events occur: NetBackup
re-discovers virtual machines, consults the query rules, and backs up the virtual
machines that match the rules.
The list of backed up virtual machines is saved but the virtual machines are not
displayed in the policy's Clients tab. You can use the Activity Monitor to view the
virtual machine jobs, or you can run a Virtual Client Summary report in OpsCenter.
Note: An alternative to the Test Query screen is the nbdiscover command. For
more information, see the NetBackup Commands Reference Guide.
The Test Query function runs in the background. You can continue to configure
the policy while the test runs. Any changes you make in the Query Builder however
are not included in the currently running test. You must re-initiate the test to see
the results of your Query Builder changes.
Field Description
Test query for Lists the rules in the Query Builder that were used in this test. The rules
policy are specified in the Query Builder on the policy Clients tab.
Test Query VM Name: Shows the display name of all discovered virtual machines.
Results
Selection: Lists the virtual machines that were discovered, as follows:
Included: The bottom of the screen gives a tally of how many virtual machines were
included, excluded, or failed in the test.
Excluded:
Failed:
Configure Hyper-V Intelligent Policies 70
Test Query: Failed virtual machines
Explanation: The virtual machine Win%1 in the example does not have a host name.
In the NetBackup policy, on the Hyper-V tab, the Primary VM identifier parameter
may be set to VM hostname. In that case, NetBackup cannot refer to the virtual
machine by its host name and thus cannot back it up.
Configure Hyper-V Intelligent Policies 71
Effect of Primary VM identifier parameter on Selection column in Test Query results
To fix this problem, use the Hyper-V Manager to configure a host name for the
virtual machine.
See “The IsSet operator in queries” on page 58.
Table 5-17 Effect of Primary VM identifier parameter and query rules on test
query results
VM hostname Displayname Contains INCLUDED: Any virtual machines that have a host name and
"VM" that have a display name that contains "VM".
Table 5-17 Effect of Primary VM identifier parameter and query rules on test
query results (continued)
VM display name Displayname Contains INCLUDED: Any virtual machines with the display names that
"VM" contain "VM". Since the Primary VM identifier parameter tells
NetBackup to select the virtual machine by display name, it
can back up the virtual machines.
The message includes the name of the VM, its virtual machine ID, and related
details.
Configure Hyper-V Intelligent Policies 73
Restoring a VM that was backed up with a Hyper-V Intelligent Policy and that has a pass-through disk
Note: Although the VM does not start, the VM data (including the pass-through disk)
is successfully restored.
When the restored virtual machine is set to high availability, it should start
normally.
4 Right-click on the VM and click Start.
Configure Hyper-V Intelligent Policies 74
Restoring a VM that was backed up with a Hyper-V Intelligent Policy and that has a pass-through disk
■ Hyper-V restore may fail if the VM was created on a CSV and the CSV is a
reparse point on the destination drive
When restoring a clustered virtual machine to its original location, note the following:
■ The restore destination depends on the following: The virtual machine's HA
status at the time of its backup and at the time of restore (if it still exists).
See “Location of the restored virtual machine in a cluster” on page 80.
■ Virtual machines are always restored to a state of non-high-availability. They
can 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 group
must be done manually.
See “Virtual machine maintenance after a restore” on page 81.
Note: On Windows server 2012, cluster nodes can back up the same CSV
simultaneously.
Windows Server 2008 and 2012 failover cluster support 78
Creating a policy for virtual machines in a cluster
For Windows versions before 2012: You can use the Cluster shared volumes
timeout option in the policy to adjust how long NetBackup waits for another
backup of the same CSV to complete.
See “Cluster shared volumes timeout (Hyper-V)” on page 34.
■ A single node containing two virtual machines can back up both virtual machines
simultaneously, even if they use the same CSV. As long as both virtual machines
reside on the same node, simultaneous backups are allowed.
■ For Windows Server 2008 and 2008 R2: If a VM is on a CSV, restoring the VM
fails if the CSV is a reparse point that is specified as the restore destination.
NetBackup may incorrectly assume that the restore destination is not large
enough to contain the VM, and the restore does not start.
See “Hyper-V restore may fail if the VM was created on a CSV and the CSV is
a reparse point on the destination drive” on page 82.
■ For a successful backup of a virtual machine on a CSV, the virtual machine
must use CSV volumes only. If a local disk on the Hyper-V server (not a CSV
volume) is added to the virtual machine, the backup fails with status 156.
Reconfigure the virtual machine to use CSV volumes only, and retry the backup.
Cluster shared Determines how many minutes the backup job waits, in case
volumes timeout another node backs up the same shared volume(s) that this
backup requires.
Note: This option is not used if the cluster is on Windows
2012.
3 On the Clients tab, enter the name of the cluster in the Hyper-V server field.
4 On the Clients tab, click New.
Note: This procedure describes how to select virtual machines manually. For
automatic selection of virtual machines with a Hyper-V Intelligent policy, see
the following topics:
See “Creating a Hyper-V policy for automatic virtual machine selection”
on page 50.
See “Changing the NetBackup Legacy Network Service logon (vnetd.exe) to
the domain user account” on page 23.
5 You can enter the host name, display name, or GUID of the virtual machine to
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 to
the right.
The High Availability column indicates whether the virtual machine is
configured as highly available in the cluster.
Note the following:
■ The host name or display name must appear in the list according to the
Primary VM identifier option on the Hyper-V tab. If you selected VM
hostname for the Primary VM identifier option, and a host name for the
virtual machine does not appear: The virtual machine cannot be added to
the Clients list.
The host name of a virtual machine is available only when the virtual
machine is in the running state. The display name and GUID are always
available. If the host name does not appear, make sure that the virtual
Windows Server 2008 and 2012 failover cluster support 80
Location of the restored virtual machine in a cluster
machine is turned on. To update the cache file and re-display virtual
machines, click the refresh icon to the right of the Last Update field.
■ If the right pane reads "Unable to connect," the highlighted node in the left
pane is down or the NetBackup client service is not running.
Is the virtual Is the virtual Virtual machine is restored to this node (to non-HA state):
machine status HA machine status HA
at time of backup? at time of restore?
Yes Yes Restored to node that owns the virtual machine at the time of restore.
Yes No Restored to node on which the virtual machine resided at the time
of backup.
Yes Virtual machine does Restored to node on which the virtual machine resided at the time
not exist. of backup.
No Yes Restored to node on which the virtual machine resided at the time
of backup.
No Virtual machine does Restored to node on which the virtual machine resided at the time
not exist. of backup.
Windows Server 2008 and 2012 failover cluster support 81
Virtual machine maintenance after a restore
Note: In all cases, the virtual machine is restored to the non-HA state.
Is the HA virtual machine These group resources are removed along with the
based on a CSV volume? existing virtual machine:
Note: NetBackup 7.6.1 fixes this restore issue for VMs on Windows 2012 or later
Hyper-V servers. NetBackup examines the space available on the CSV; if sufficient
CSV space is available, NetBackup restores the VM.
For VMs on Windows 2008 R2 and earlier Hyper-V servers, do the following: For
the restore location, select a drive on the Hyper-V server that has free space at
least equal to the size of the VM.
Chapter 7
Back up and restore
Hyper-V
This chapter includes the following topics:
■ Restore Marked Files dialog for restore of the Hyper-V virtual machine
■ The BAR interface may list Hyper-V snapshot files when you browse to restore
Hyper-V VM files
For further information on NetBackup policies and backup schedules, see the
chapter on creating backup policies in the NetBackup Administrator's Guide, Volume
I.
To create the policy, you can use the Policies option of the NetBackup
Administration Console, or you can use the Policy Configuration Wizard.
See “Creating a Hyper-V policy from the NetBackup Policies utility” on page 28.
See “Creating a Hyper-V policy from the Policy Configuration Wizard ” on page 27.
To back up a virtual machine manually from an existing policy
1 In the NetBackup Administration Console, click on Policies, select the policy
name, and click Actions > Manual Backup.
The Manual Backup dialog appears.
■ The restore fails with NetBackup status 2817 when the files that have
alternate data streams are restored to a FAT or FAT32 file system.
FIFO files and socket files can be restored along with the rest of the virtual
machine data when you recover the entire virtual machine.
■ For Linux virtual machines, NetBackup cannot restore individual files from
software RAID volumes. The files are restored when you restore the entire virtual
machine
■ NetBackup supports backup and restore of Linux LVM2 volumes, including
individual file restore from an LVM2 volume. Note however that NetBackup does
not support individual file restore from a snapshot that was created by means
of the snapshot feature in LVM2. If an LVM2 snapshot exists at the time of the
backup, the data in the snapshot is captured in the backup. The data can be
restored along with the rest of the virtual machine data when you recover the
entire virtual machine.
■ For VMs on a Windows 2012 R2 Hyper-V server, the BAR interface may list
Hyper-V snapshot files when you browse to restore VM files. In some cases,
the snapshot file data is not application consistent and the file should not be
restored.
To identify the snapshot file and to decide whether to restore it:
See “The BAR interface may list Hyper-V snapshot files when you browse to
restore Hyper-V VM files” on page 105.
■ For Linux, additional notes apply.
See “Notes on Linux virtual machines” on page 21.
■ NetBackup for Hyper-V does not support individual file restore by means of
ClientDirect Restore.
is automatically turned off and deleted before the restore. The vhd or vhdx files
of the virtual machine on the Hyper-V server are overwritten by the vhd or vhdx
files from the backup image. If any new vhd or vhdx files were created after the
backup, those files are not removed.
■ When you restore the virtual machine to a different location on the original
Hyper-V server or to a different server, note: The same virtual machine (if it
exists) on the Hyper-V server is automatically turned off and deleted before the
restore if you choose the Overwrite virtual machine option. The .vhd or .vhdx
files of the deleted virtual machine, however, are not deleted. You must delete
those files.
■ When you restore the virtual machine to a Hyper-V server that has a virtual
machine of the same GUID, you must select the Overwrite virtual machine
option. Otherwise, the restore fails.
■ If you restore a virtual machine without the Overwrite virtual machine option,
note: You must remove the current virtual machine and its vhd or vhdx files from
the destination server before you start the restore. If you remove the virtual
machine but leave one or more of its vhd or vhdx files on the destination server,
the vhd or vhdx files from the backup are not restored.
■ (This item is a limitation in VSS and the Hyper-V writer, not in NetBackup.) If
the virtual machine contains Hyper-V snapshot files (avhd or avhdx files),
NetBackup cannot restore the virtual machine to a different location or to a
different Hyper-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 you
restore the virtual machine to its original location on the original Hyper-V
server, or when you restore to a staging location.
Note that NetBackup does not create Hyper-V snapshot files (avhd or avhdx).
■ (This item is a limitation in VSS, not in NetBackup.) Immediately after a full virtual
machine is restored, the virtual machine volume may be larger than it was when
the virtual machine was backed up. The increase is normal: After the restore,
snapshot-related cache files remain on the volume. After about 20 minutes, the
cache files are automatically removed and the volume returns to its original size
Note: A new backup of the restored virtual machine could fail if the virtual
machine volume contains insufficient space to create a snapshot for the backup.
According to Microsoft, this situation should not occur as long as the virtual
machine volume has at least 10 to 15% free space.
■ In the following case a race condition may result:
■ You attempt to do a full restore of two virtual machines at the same time.
Back up and restore Hyper-V 90
About the NetBackup lost and found directory on Linux
■ The two virtual machines also share a virtual hard disk (vhd or vhdx file) that
both restore jobs have selected to restore.
The two jobs may simultaneously attempt to access the same vhd or vhdx file,
but only one job gains access to the file. The other job is denied access, and
that job may fail with error code 185.
See “NetBackup status codes related to Hyper-V” on page 117.
■ If you restore a virtual machine to a different Hyper-V server, the original Hyper-V
server and the target server must have the same number of network adapters
(NICs). You must configure the network adapter(s) for the restored virtual
machine on the target server.
See “Restored virtual machine fails to start” on page 126.
■ A restore of a virtual machine to an alternate location fails if any of its virtual
disks has an ampersand (&) in its path. As a workaround, restore the virtual
machine to its original location, or restore to a staging location and register the
virtual machine manually.
Note: The NetBackup.lost+found directory is not the same as the standard Linux
lost+found directory that Linux maintains in case of an abnormal system shutdown.
In the NetBackup Backup, Archive, and Restore interface, you can search the
NetBackup.lost+found directory for any inconsistent files and restore them. Symantec
recommends that you restore them to an alternate location (not to the original virtual
machine). You can then examine their contents to determine their original names.
Any metadata that was captured at the time of the backup may be helpful in
identifying the inconsistent files or directories. Examples of such metadata are file
size, file owner, and file creation and modification dates.
If the Enable file recovery from VM backup option was not enabled, you can
restore the full virtual machine only.
See “Restoring the full Hyper-V virtual machine” on page 99.
More information is available on the Hyper-V backup options.
See “Creating a Hyper-V policy from the NetBackup Policies utility” on page 28.
You can set up a configuration to restore individual files in any of the following ways:
■ Install a NetBackup client on another computer. Create a share on the virtual
machine to allow that computer to access the virtual machine. (The virtual
machine does not require a NetBackup client.) Specify the UNC path as the
destination for the restore. More information is available on this option:
See “Restoring individual files to a shared location on the virtual machine”
on page 97.
See “Setting up NetBackup Client Service for restore to a shared location on
the virtual machine” on page 98.
■ Install a NetBackup client on the virtual machine where you want to restore the
files. Restore the files to the virtual machine in the same manner as restoring
to any NetBackup client.
See “Restoring individual files to a host that has a NetBackup client” on page 92.
■ Install a NetBackup client on another computer. Restore the files to that computer
and then copy the files to the virtual machine.
To restore encrypted files, you must install a NetBackup client on the virtual
machine and restore the files directly to the virtual machine.
See “Restoring individual files to a host that has a NetBackup client” on page 92.
You can use the NetBackup Backup, Archive, and Restore interface to restore files
and folders from NetBackup for Hyper-V backups.
Important notes on Hyper-V restore are also available.
See “Notes on full virtual machine restore” on page 88.
See “Notes on individual file restore” on page 86.
Server to use for backups Enter the NetBackup master server that performed the
and restores Hyper-V backup.
Source client for restores Enter the Hyper-V virtual machine that was backed up.
(or virtual client for
backups)
Destination client for Enter a physical host or a virtual machine. The host or
restores virtual machine must contain a NetBackup client.
Date / time range The time period within which to search for backups.
3 Click OK.
4 Click Select for Restore > Restore from Normal Backup.
5 Under All folders and Contents, select the files to restore.
6 Click Actions > Restore.
7 Make your selections in the Restore Marked Files dialog box.
Note the following:
■ Restore everything to its original location
Select this option to restore the files to their original paths or folders on the
destination client. If the original volume at the time of backup (such as E:\)
does not exist on the destination client for this restore, the restore fails.
■ Restore everything to a different location (maintaining existing
structure)
Select this option to restore the files to a different path or folder on the
destination client. Specify the folder in the Destination field.
If the original volume at the time of backup (such as E:\) does not exist on
the destination client for this restore, the restore fails.
Back up and restore Hyper-V 94
Restore Marked Files dialog for restore of individual files
Use a different procedure to restore the files to a virtual machine that does
not have a NetBackup client:
See “Restore Marked Files dialog for restore of individual files” on page 94.
See “Restoring individual files to a shared location on the virtual machine”
on page 97.
■ Restore individual folders and files to different locations
Select this option to restore files to particular locations. Each item you
selected to restore appears in the Source column. Double-click on an item
to enter or browse for a restore destination.
Table 7-1 Options for individual file restore on the Restore Marked Files
dialog box
Option Description
Restore everything to Restores the folders and files to the location where they resided
its original location when the backup occurred.
Back up and restore Hyper-V 96
Restore Marked Files dialog for restore of individual files
Table 7-1 Options for individual file restore on the Restore Marked Files
dialog box (continued)
Option Description
Restore everything to Restores the folders and files with their original hierarchy, but to a
a different location different location.
(maintaining existing
Use the Destination field to enter the restore location.
structure)
Click Browse to browse to the restore location.
If the original volume at the time of backup (such as E:\) does not
exist on the destination client for this restore, the restore fails.
Restore individual Restores the folders and files to individually designated locations.
folders and files to To designate a restore destination for each source folder, double
different locations click on its row.
(double-click to
modify)
Restore options Most of these options do not apply to the restore of a Hyper-V virtual
machine.
Overwrite existing If any of the files to restore already exist at the restore destination,
files the restore overwrites the existing files.
Do not restore the file If any of the files to restore already exist at the restore destination,
the restore does not overwrite those files. Restores only the files
that do not already exist at the destination.
Override default job Determines the restore job's priority for restore resources. A higher
priority priority means that NetBackup assigns the first available drive to
the first restore job with the highest priority. Enter a number
(maximum 99999). The default for all restore jobs is 0, the lowest
priority possible. Any restore job with a priority greater than zero
has priority over the default setting.
Media Server You can use this option to select a media server that has access
to the storage unit that contains the backup image. An example of
such an environment is a Media Server Deduplication Pool (MSDP)
with multiple media servers.
Note: If the storage unit that contains the backup image is not
shared with multiple media servers, this option is grayed out.
Back up and restore Hyper-V 97
Restoring individual files to a shared location on the virtual machine
Server to use for backups Specify the NetBackup master server that performed the
and restores Hyper-V backup.
Source client for restores Specify the Hyper-V virtual machine that was backed up.
(or virtual client for
backups)
Destination client for Select the host that has the NetBackup client. The virtual
restores machine to which you want to restore must have a share
for this host.
Date / time range The time period within which to search for backups.
5 Click OK.
6 Click Select for Restore > Restore from Normal Backup.
7 Under All folders and Contents, select the files to restore.
Back up and restore Hyper-V 98
Restoring individual files to a shared location on the virtual machine
NetBackup restores the files to the shared location on the virtual machine.
10 You may have to change the logon for the NetBackup Client Service.
See “Setting up NetBackup Client Service for restore to a shared location on
the virtual machine” on page 98.
Server to use for Enter the NetBackup master server that performed the Hyper-V
backups and restores backup.
Source client for Enter the Hyper-V virtual machine that was backed up.
restores (or virtual
client for backups)
Destination client for This field is ignored when you restore an entire virtual machine.
restores
A later step in this procedure explains how to restore to a
different Hyper-V server.
Date / time range The time period within which to search for backups.
3 Click OK.
4 Click File > Select Files and Folders to Restore > From Virtual Machine
Backup.
A restore window displays the backups available for restore.
Back up and restore Hyper-V 100
Restore Marked Files dialog for restore of the Hyper-V virtual machine
5 Select the backup of the virtual machine that you want to restore.
In the NetBackup History pane, click on the Hyper-V backup, then click the
check box under All Folders. You must select the entire virtual machine.
6 Click the Start Restore of Marked Files icon.
7 Select restore options and the restore destination on the Restore Marked
Files dialog.
See “Restore Marked Files dialog for restore of the Hyper-V virtual machine”
on page 100.
8 Click Start Restore.
When the restore is complete, the restored virtual machine is placed in the
Saved or Off state. The state after restore depends on its state at the time of
the backup and the type of Hyper-V backup that occurred.
See “About Hyper-V online and offline backups” on page 133.
Option Description
Hyper-V virtual Shows the Hyper-V GUID (globally unique identifier) of the virtual machine that was backed up.
machine GUID Use this value to verify that this backup represents the virtual machine that you want to restore.
The GUID is a unique string for a virtual machine in addition to the host name.
Restore to Hyper-V Restores the virtual machine to its original location on the original Hyper-V server.
server
Restore to different Restores the virtual machine to a different location on the original Hyper-V server, or restores
locations on same it to a different Hyper-V server.
/ different Hyper-V
server
Restore to staging Restores the virtual machine files to the staging location on the server that you specify under
location Hyper-V server and Restore everything to different directory. Use this option if:
For instance, you can use this option to add restored files as a vhd or vhdx volume to a virtual
machine other than the one from which they were backed up.
Overwrite virtual If you selected Restore to Hyper-V server or Restore to different locations on same / different
machine Hyper-V server, note the following:
(If you selected ■ If a virtual machine with the same GUID exists at the destination server, that virtual machine
Restore to staging is removed with its configuration files and snapshot files. Any existing vhd or vhdx files for
location, this option the virtual machine on the destination server are overwritten. The virtual machine that you
is Overwrite selected to restore is restored from the backup.
existing files) ■ If the Overwrite virtual machine option is not selected and a virtual machine with the same
GUID exists on the destination server, the restore fails.
■ If the Overwrite virtual machine option is not selected and vhd or vhdx file(s) for the virtual
machine still exist on the destination: The vhd or vhdx file(s) from the backup are not restored.
See “Problems with restore of the full virtual machine” on page 129.
If you selected Restore to staging location, note the following:
■ If the vhd or vhdx file already exists on the destination server in the specified restore location,
that file on the destination server is overwritten.
■ If the Overwrite existing files option is not selected and any file you want to restore already
exists in the restore location, the file is not overwritten. Any other files that are selected for
restore are restored. The restore is reported as a partial success.
Table 7-2 Options on the Restore Marked Files dialog box (continued)
Option Description
Hyper-V server If you selected Restore to Hyper-V server (to restore to the original location), note: the restore
destination is the name of the Hyper-V server from which the virtual machine was backed up.
In this case, the destination cannot be changed.
For the other restore options (restore to a different location, or restore to a staging location),
enter the destination Hyper-V server for the restore.
List of backed up Lists the Hyper-V virtual machine files as they existed when the virtual machine was backed
files (Source) 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 on the
destination server, uncheck those files. Leave a check mark next to the files that you want to
restore. The files that are not checked are not restored. Note that the following virtual machine
configuration files are not de-selectable in restores other than staging restores:
Caution: Replacing common files with earlier versions can be problematic for the virtual machines
that rely on the common files. If you do not want to overwrite the common files on the Hyper-V
server, uncheck the common files that you do not want to restore.
■ If you do not select any vhd or vhdx files, NetBackup tries to find them in their original location.
If they are absent from the original location, the restore fails. If a parent vhd or vhdx file was
in E:\myVhds\ on the original virtual machine and is not selected during restore, NetBackup
looks for the parent file in E:\myVhds\ on the target virtual machine. If the file does not exist,
the restore fails.
■ For Restore to Hyper-V server or Restore to different locations on same / different
Hyper-V server, you can uncheck any vhd or vhdx files in this list. All other files are
pre-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 restored when you
restore the full virtual machine.
Restore everything This field is disabled if you selected Restore to Hyper-V server.
to different
For restore to a different location or to a staging location: Enter the path on the server or other
directory
computer that you specified under Hyper-V server or Staging machine name. NetBackup
creates the appropriate subdirectories.
View Paths Displays the directories on the destination server in which the Hyper-V files are to be restored.
You must specify a destination path in the Restore everything to different directory field.
Back up and restore Hyper-V 104
About restoring common files
Table 7-2 Options on the Restore Marked Files dialog box (continued)
Option Description
Override default Determines the restore job's priority for restore resources. A higher priority means that NetBackup
job priority assigns the first available drive to the first restore job with the highest priority. Enter a number
(maximum 99999). The default for all restore jobs is 0, the lowest priority possible. Any restore
job with a priority greater than zero has priority over the default setting.
Media Server You can use this option to select a media server that has access to the storage unit that contains
the backup image. An example of such an environment is a Media Server Deduplication Pool
(MSDP) with multiple media servers.
Note: If the storage unit that contains the backup image is not shared with multiple media
servers, this option is grayed out.
Caution: Use care when restoring common files. If you restore an earlier version of
the common files (overwriting the current version), the virtual machines that rely on
those files may experience problems.
■ To keep the common files that are currently on the server, uncheck the common
vhd files or vhdx files on the Restore Marked Files dialog box under List of
backed up files. The restore does not replace the files on the destination
Hyper-V server that are not selected in the Restore Marked Files dialog box.
■ To overwrite the existing common files, check all the vhd files or vhdx files from
the List of backed up files. However, if the common files are in use on the
destination server, the restore fails. For the restore to succeed, the virtual
machines that use the common files must be in the Off or Saved state.
■ To restore common files without overwriting any common files that exist on the
destination server: Specify a different location on the Restore Marked Files
dialog box under Restore everything to different directory.
However, in the following case you must decide whether to restore the Hyper-V
snapshot file or to exclude it from the restore:
■ In the BAR interface you select Restore from Virtual Machine Backup.
■ And on the Restore Marked Files dialog, you select Restore to staging
location.
In this case, use the following criteria (based on Hyper-V server version) to identify
the snapshot file and to decide whether to restore it:
Note: In the snapshot’s parent file (apvm.vhd in the example) and in the other VM
files, the data is complete. To restore the VM data, you should restore those files.
Back up and restore Hyper-V 107
The BAR interface may list Hyper-V snapshot files when you browse to restore Hyper-V VM files
Note: In the snapshot’s parent file (apvm.vhd in the example) and in the other VM
files, the data is complete. To restore the VM data, you should restore those files.
■ Best practices
Best practices
Symantec recommends the following for NetBackup for Hyper-V:
■ For a more efficient backup, the NetBackup media server should be installed
on the same host as the Hyper-V server. In an off-host configuration, install the
NetBackup media server on the same host as the alternate client. In this
configuration, the backup data can be sent to storage without traveling over the
network.
■ When creating virtual machines, use the same name for both host name and
display name. If the NetBackup policy's Primary VM identifier option is changed,
the existing entries on the policy Clients tab still work.
See “Primary VM identifier option (Hyper-V)” on page 33.
More information is available on NetBackup and Hyper-V.
■ For a list of supported Hyper-V servers, see the Symantec NetBackup Enterprise
Server and Server 7.7 - 7.7.x OS Software Compatibility List available from the
following location:
NetBackup Master Compatibility List
■ 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
Chapter 9
Troubleshooting
This chapter includes the following topics:
■ When backing up the virtual machines that reside on the same CSV, Windows
warning 1584 can be ignored
■ Problem with a restart of a restored virtual machine: Why did the computer shut
down unexpectedly?
Table 9-1 NetBackup logs that pertain to Hyper-V backup and restore
Table 9-1 NetBackup logs that pertain to Hyper-V backup and restore
(continued)
\Program Files\Common Files\Symantec Snapshot creation and VSS NetBackup client on the
Shared\VxFI\4\logs\ APIs. Hyper-V server
Note: These log folders must already exist in order for logging to occur. If these
folders do not exist, you must create them.
To create most of these log folders, run the following command on the NetBackup
servers and on the Hyper-V server:
Windows:
install_path\NetBackup\logs\mklogdir.bat
For more 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 NetBackup
Troubleshooting Guide.
Note: VxMS logging may require significant resources on the Hyper-V server.
Troubleshooting 113
NetBackup logs and how to create them
Note: If you have run the NetBackup mklogdir.bat command, the VxMS log
directory already exists.
See “NetBackup logs and how to create them” on page 110.
0 No logging.
1 Error logging.
4 Same as level 3.
You can set the logging level for the VDDK messages.
Note: Log levels higher than 5 cannot be set in the Logging Assistant.
Note: Log levels higher than 5 should be used in very unusual cases only. At
that level, the log files and metadata dumps may place significant demands
on disk space and host performance.
Note: You can use NTFS compression on VxMS log folders to compress the
log size. The new logs are written in compressed form only.
Note: If the VxMS log location is changed, the Logging Assistant does not
collect the logs.
Troubleshooting 115
Errors during policy creation
Windows VxMS-thread_id-user_name.mmddyy_tag.log
For example:
VxMS-7456-ALL_ADMINS.070214_core.log
VxMS-7456-ALL_ADMINS.070214_provider.log
For example:
VxMS-27658-root.log.081314_core
VxMS-27658-root.log.081314_provider
In either case, the NetBackup client service is not running on the current owner
(node) of the cluster. Start the NetBackup client service on the cluster node and
create the policy again.
Create a virtual machine name entry in either the DNS server or in the hosts
file 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.
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
42, network read The Windows shadow storage for the volume may have insufficient space to hold all required
failed snapshots. A larger shadow storage area may be required.
The virtual machine is either not running, or it is starting up. Make sure that the virtual
machine is running and then rerun the backup.
156, snapshot error See “Snapshot error encountered (status code 156)” on page 118.
encountered
Troubleshooting 118
NetBackup status codes related to Hyper-V
185, tar did not find If you attempt to do a full restore of two VMs at the same time, note: If the two VMs share a
all the files to be virtual hard disk that contains a file that both restore jobs must restore, a race condition may
restored result. The two jobs may simultaneously attempt to access the same file, but only one job gains
access to the file. The other job is denied access, and that job may fail with status code 185.
After the first restore job successfully completes, retry the second job.
Hyper-V policy ■ In a full virtual machine restore, the Overwrite virtual machine option was not selected:
restore error A virtual machine with the same GUID exists on the destination server. If a virtual machine
with the same GUID exists on the destination server, you must select Overwrite virtual
machine.
■ 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 that has a
NetBackup client. (This issue does not apply to recovery of the full virtual machine.)
■ In a restore of common files, the virtual machines that use the common files were in the
Running or Paused state. The virtual machines that use the common files must be in the
Off 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 machine is
not the restore server (the node that performs the restore).
See “Problems with restore of the full virtual machine” on page 129.
■ The virtual machine restore job fails but the virtual machine is nonetheless registered in the
Hyper-V server.
See “Problems with restore of the full virtual machine” on page 129.
■ A redirected restore failed because the virtual machine had *.avhd or *.avhdx file(s)
when it was backed up. The restore system is earlier than Windows Server 2008 R2.
The tar log contains the following:
■ A redirected restore failed because the virtual machine is configured in a volume GUID and
its differencing disk is configured in another volume GUID.
See “Restored virtual machine fails to start” on page 126.
The virtual A mismatch may exist between the virtual machine names that are specified on the policy Clients
machine name is tab and the actual names on the Hyper-V server. Check the actual names as listed in the Hyper-V
incorrectly Manager on the Hyper-V server.
specified in the The following are the recommended actions:
NetBackup policy.
■ In the NetBackup policy, the virtual machines must be specified as fully qualified names.
■ In the NetBackup policy, the virtual machine name may have been entered incorrectly.
If you browsed for the virtual machines on the Clients tab and selected names from the list,
the list may be out of date. (The list is derived from a cache file.) Refresh the list by clicking
on the icon next to the Last Update field.
Volumes on the Volumes on the virtual machine do not have enough free space for the snapshot. Microsoft
virtual machine are recommends that at least 10% of the virtual machine volume is available for the snapshot.
almost full.
Recommended action: create more space on the volume.
The Hyper-V The Hyper-V integration component is not properly installed in the virtual machine.
integration
Recommended action:
component is
absent. See “The Hyper-V integration component is not installed” on page 122.
Troubleshooting 120
NetBackup status codes related to Hyper-V
The VSS The following application error event may be written to the virtual machine during backup:
framework in the
virtual machine Event Type: Error
does not work Event Source: VSS
properly Event Category: None
Event ID: 12302
Date: 1/8/2009
Time: 1:36:21 AM
User: N/A
Computer: ARTICTALEVM8
Description:
If no writer is listed in the output and a similar error is logged, refer to the following to resolve this
issue:
http://support.microsoft.com/kb/940184
One or more or the required cluster shared volumes (CSV) cannot be prepared in the specified
timeout period. A current backup that started from another node needs one or more of the same
CSVs.
Increase the Cluster shared volumes timeout period and rerun backup, or try the backup at
another time.
A local disk has For a successful backup of a virtual machine on a CSV, the virtual machine must use CSV
been added to a volumes only. If a local disk on the Hyper-V server (not a CSV volume) is added to the virtual
VM that is on CSV machine, the backup fails.
Reconfigure the virtual machine to use CSV volumes only, and rerun the backup.
NetBackup is not allowed to perform an offline backup of the virtual machine, because the Enable
offline backup for non-VSS VMs option is disabled.
See “Enable offline backup for non-VSS VMs (Hyper-V)” on page 34.
If additional space is not available for shadow storage, reschedule backups so they
do not occur at the same time.
To view or resize Windows NTFS shadow storage
1 To list the current shadow storage settings, run the following on the virtual
machine:
vssadmin list shadowstorage
You must restore the controller type of the .vhd disk to the controller type originally
assigned before the LDM volume was created. Then retry the backup.
Troubleshooting 123
Hyper-V snapshots (avhd or avhdx files) and status code 1
For this case, Microsoft has acknowledged that message 1584 is a false alarm. For
NetBackup backups of the virtual machines that reside on the same CSV, this
warning can be safely ignored.
Note: To use the following procedure, only vshadow.exe needs to be copied to the
host. You do not have to install the VSS SDK.
Troubleshooting 125
Problems with alternate client backup
This command creates a bcd.xml file in the location that the -t option specifies.
The following is example output:
...
The important lines in the output are shown in italics, for emphasis:
The * Writer line should include Microsoft Hyper-V VSS Writer.
The Add component line should show the virtual machine GUID.
More information is available about the vshadow command:
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.
Troubleshooting 126
Restored virtual machine fails to start
where c:\bcd1.xml specifies the location of the bcd.xml file on the alternate
client.
If these vshadow commands run successfully on the primary client and alternate
client, the VSS snapshot provider supports transportable snapshots with the
Hyper-V writer.
■ 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 virtual
machine 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
In this case, you must delete the virtual machine's saved state file after the
restore and then start the virtual machine. In the Hyper-V Manager interface,
right-click on the restored virtual machine and select “Delete Saved State.”
■ After a redirected restore of the virtual machine on Windows 2008 SP2 and
Windows 2008 R2, the virtual machine unexpectedly enters the Saved state. It
Troubleshooting 127
Restored virtual machine fails to start
also fails to start. If the virtual machine was backed up in the Online state, the
expected state after restore is Off. But due to a Hyper-V error, the virtual machine
incorrectly enters the Saved state.
During the restore, the Hyper-V-VMMS writes the event ID 12340. The following
is a sample message:
In the Hyper-V Manager, you must delete the virtual machine's saved state after
the restore and then start the virtual machine.
■ For the virtual machines that are configured in a volume GUID with a differencing
disk in another volume GUID, redirected restores are not supported. Note that
redirected restores are supported if the virtual machine's vhd or vhdx file is
configured in a drive-letter volume rather than a volume GUID.
A virtual machine restore to an alternate location may fail in the following case:
■ The virtual machine's vhd or vhdx file is in a GUID-based volume, and
■ A differencing disk for the same vhd or vhdx is in another GUID-based
volume.
In this case, the attempt to restore the virtual machine to an alternate location
fails. The cause of the failure is in the Microsoft Hyper-V Writer. The vhd or vhdx
files and other configuration files are restored to the correct location, but
registration of the virtual machine fails. As a result, Hyper-V is unable to start
the restored virtual machine. A Hyper-V writer event log similar to the following
may appear:
After the restore, you must configure a new virtual machine and attach the
restored vhd or vhdx files to the new virtual machine. The restored .xml file
contains information on the original configuration of the virtual machine.
■ When a virtual machine is restored to a different Hyper-V server: The location
of a virtual CD or DVD drive may prevent the virtual machine from restarting.
The problem occurs in the following case:
Troubleshooting 128
Problem with a restart of a restored virtual machine: Why did the computer shut down unexpectedly?
■ The original virtual machine had a CD ISO image that is attached to a virtual
CD or DVD drive.
■ On the Hyper-V server where the virtual machine was restored: The ISO
image is not on the same path as on the original Hyper-V host during backup.
For example: The virtual machine originally had E:\cd1.iso attached to its
virtual DVD drive. But E:\cd1.iso does not exist on the target Hyper-V host,
or it exists at a different location, such as F:\cd1.iso. In either case, the
restored virtual machine does not turn on.
Files are selected from For example: The original virtual machine had two drives (C:\ and D:\), and files from each
multiple drives (volumes) drive are selected in the same restore operation. Messages similar to the following appear
on the virtual machine. in the job progress log:
Select files from a single drive at a time. Selecting files from multiple drives is not supported.
You have attempted to Restore the files by means of a shared location on the virtual machine (with a UNC path)
restore the files into a rather than by means of a mapped drive.
mapped drive on the
See “Restoring individual files to a shared location on the virtual machine” on page 97.
virtual machine. The
restore fails with
NetBackup status code
185.
The snapshot contains Windows Hyper-V provides no mechanism for quiescing file system activity on Linux virtual
invalid inodes. machines. As a result, invalid inodes may be present in the snapshot. A backup that was
made with the Enable file recovery from VM backup option may have file-mapping failures
if the virtual machine experiences heavy I/O. The failures are reported in the NetBackup
Administration Console in this form:
Note that the backup succeeds, but any files with metadata errors cannot be restored
individually.
For the backups that enable individual restore of all files, schedule the backup when the
I/O activity is lower. If metadata errors persist, shut down the virtual machine during the
backup.
■ The Overwrite virtual machine option was not selected and vhd or vhdx file(s)
for the virtual machine still exist on the destination. In that case, the vhd or vhdx
file(s) from the backup are not restored. You must select Overwrite virtual
machine for the restore, or remove the current virtual machine and vhd or vhdx
files from the destination server before you start the restore. If you remove the
virtual machine but leave one or more vhd or vhdx files at the destination, the
vhd or vhdx files from the backup are not restored.
■ The virtual machine restore job fails but the virtual machine is nonetheless
registered in the Hyper-V server. The Hyper-V-VMMS writes the following
warnings in the events log:
Event ID: 10127, 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 ")
\\?\Volume{1a2b74b1-1b2a-11df-8c23-0023acfc9192}\
\\?\Volume{1a2b74b1-1b2a-11df-8c23-0023acfc9192}\
The virtual machine is then restored to a different volume GUID, such as:
\\?\Volume{2a3b70a1-3b1a-11df-8c23-0023acfc9192}\
If the restored virtual machine is backed up and you do a redirected restore from
the backup, the restore may fail.
To avoid this problem in a redirected restore, restore the virtual machine to a
subdirectory of the volume GUID, such as to the following:
\\?\Volume{1a3b70a1-3b1a-11df-8c23-0023acfc9192}\REDIR_subdirectory\
Failed to update the configuration with the new location of virtual hard disk
'F:\REDIR_VM\f\ADD_VHD\IDE_1_DISK.vhd' for virtual machine
Troubleshooting 132
Linux VMs and persistent device naming
This issue is due to a Microsoft limitation. See the following Microsoft link for
more information:
http://technet.microsoft.com/en-us/library/dd440865.aspx
To find the device UUIDs, you can use either of the following commands:
blkid
ls -l /dev/disk/by-uuid/
Note: NetBackup also supports the by-LABEL method for persistent device naming.
Appendix A
Hyper-V online and offline
backups
This appendix includes the following topics:
Online Specifies that a virtual machine that is in the Running state is briefly quiesced
for the backup. User access during the backup continues without interruption.
Offline Specifies that a virtual machine that is in the Running or Paused state is
rendered temporarily inactive. It is returned to its original state before the
backup completes. User access during the backup is interrupted.
The following table shows the possible combinations of virtual machine state and
the type of backup.
Hyper-V online and offline backups 134
Conditions that determine online vs. offline backup
■ The VSS integration component of Hyper-V is not running in the virtual machine.
The VSS integration component is part of the Hyper-V integration services that
are installed in the virtual machine.
■ The virtual machine is running an operating system that does not support
Windows 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:
■ The virtual machine has one or more disks that are configured as dynamic
disks in the operating system. Note that dynamic disks are not a type of
virtual hard disk. Dynamic disks and basic disks are disk types defined by
Microsoft for certain Windows operating systems.
■ The virtual machine has the volumes that do not support Volume Shadow
Copy Service (VSS).
If the virtual machine has a non-NTFS formatted volume (such as FAT or
FAT32), the virtual machine enters the Saved state during the backup.
Appendix B
Hyper-V pass-through disks
This appendix includes the following topics:
Note: The NetBackup for Hyper-V feature and Hyper-V snapshot method (as
described in other chapters of this guide) do not back up pass-through disks.
■ For alternate client backup, the virtual machine and alternate client must be
running the same operating system, volume manager, and file system. For each
of these I/O system components, the alternate client must be at the same level
as the primary client, or higher level.
For complete requirements on alternate client backup, refer to the Policy
configuration chapter of the NetBackup Snapshot Client Administrator's Guide.
Note: The requirements for the NetBackup for Hyper-V feature do not apply to
backups of the disk arrays that are configured as pass-through disks. The NetBackup
for Hyper-V feature (using the Hyper-V snapshot method as described in other parts
of this guide) does not back up pass-through disks.
9 In the policy Clients tab, select the virtual machine that has a pass-through
disk configured.
10 In the policy’s Backup Selections tab, specify the pass-through disk that you
want to back up. Or specify the files or volumes that reside on the pass-through
disk.
■ The alternate client handles the backup I/O processing; the backup has little or
no effect on the virtual machine. The media server reads the snapshot data from
the alternate client and writes the data to storage.
9 Click Options.
The Snapshot Options dialog box appears.
10 Select the VSS snapshot method.
The Hyper-V method does not apply to alternate client backup and is not
available in the list.
The array may require additional OS and NetBackup configuration as described
in the disk arrays chapter of the NetBackup Snapshot Client Administrator's
Guide.
11 Specify snapshot options for VSS.
Select the following:
■ Provider Type: For disk arrays, select 3-hardware as the provider type.
Depending on your array and on the snapshot attribute you select, certain
preconfiguration of the array may be required. In the NetBackup Snapshot
Client guide, see the chapter on snapshot methods for disk arrays, for the
appropriate topic for your disk array and the VSS method.
For pass-through disks, note: Instant Recovery point-in-time rollback is not
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 configuration parameter” on page 35.
See “Restrictions for Hyper-V pass-through disks” on page 138.
See “Important note on VSS and disk arrays” on page 142.
■ Snapshot Attribute: Select 1-differential (for a copy-on-write type of
snapshot) or 2-plex (for a clone type or mirror type of snapshot). The choice
depends on the hardware provider that is used with the disk array.
■ Maximum snapshots (Instant Recovery only): This option sets the
maximum number of Instant Recovery snapshots to be retained at one
time.
For more information on this option, refer to the topic on the Maximum
Snapshots parameter in the NetBackup Snapshot Client Administrator's
guide.
12 On the Clients tab, specify the virtual machine that has a pass-through disk
configured.
13 On the Backup Selections tab, specify the pass-through disk that you want
to back up, or the files or volumes that reside on the pass-through disk.
Hyper-V pass-through disks 142
Important note on VSS and disk arrays
UNIX or Linux:
usr/openv/netbackup/bin/admincmd
Note: To run virtual machine backups, a NetBackup client must be installed on the
Hyper-V server.
For example:
bppolicynew HVpolicy1
For the -st option, the available schedule types are FULL (full), INCR (differential
incremental), or CINC (cumulative incremental).
For example:
bpplsched policy1 -add Full -st FULL
On this command, specify one virtual machine at a time. Specify the virtual
machine's display name, host name, or GUID. You can use the Hyper-V
management console to obtain the display name or GUID.
For example:
bpplclients policy1 -add prodvm1.acme.com
Windows:
install_path\Veritas\NetBackup\bin\admincmd
UNIX or Linux:
usr/openv/netbackup/bin/admincmd
Note: To run virtual machine backups, a NetBackup client must be installed on the
Hyper-V server.
To use NetBackup commands to create a Hyper-V policy for auto selection of VMs
1 Create a policy.
bppolicynew policy_name
For example:
bppolicynew p1_auto_select_VMs
This example allows offline backup of the virtual machines if an online backup
cannot be performed. The following are some of the options used in the
example:
NetBackup commands to back up and restore Hyper-V virtual machines 147
Using NetBackup commands to create a Hyper-V Intelligent Policy
■ Virtual_machine_backup=1
The full virtual machine can be recovered from the backup, but not individual
files.
Note that Virtual_machine_backup=2 enables individual file recovery.
■ nameuse=1
When browsing to restore from the backup, you must use the VM's display
name to identify the backup image. Other options are available: nameuse=0
uses the VM host name to identify the backup image. nameuse=2 uses the
VM GUID to identify the backup image.
■ allow_offline_backup=1
Allows the offline backup of any non-VSS virtual machine.
For the -st option, the available schedule types are FULL (full), INCR (differential
incremental), or CINC (cumulative incremental). For example:
bpplsched p1_auto_select_VMs -add Full -st FULL
Note: To allow the policy to search all nodes of the cluster, you must set
the NetBackup Legacy Network Service logon to the domain user account.
See “Changing the NetBackup Legacy Network Service logon (vnetd.exe)
to the domain user account” on page 23.
To find the hardware type and operating system for your server, run the
following on the NetBackup master server:
bpplclients
For example:
bpplinclude p1_auto_select_VMs -add "hyperv:/?filter=Displayname
Contains 'Production'”
To test the bpplinclude query rule (hyperv:/?filter) before you run the backup
◆ Run the following:
Windows:
install_path\NetBackup\bin nbdiscover -noxmloutput -policy
policy_name -noreason
UNIX, Linux:
/usr/openv/netbackup/bin nbdiscover -noxmloutput -policy
policy_name -noreason
A + sign appears before the virtual machines that the query rule selects for the
backup: these virtual machines are included in the backup when the policy
runs.
The virtual machines to be excluded from the backup appear with a - sign.
The -noreason option omits explanations as to why the query excluded a
virtual machine or why the query failed. For explanations, do not include
-noreason.
For more details on most of the command options, see the man page or the
NetBackup Commands Reference Guide.
-use_virtual_machine 2 Y
-snapshot_method Hyper-V_v2 Y
NetBackup commands to back up and restore Hyper-V virtual machines 150
bpplinfo options for Hyper-V policies
snapshot_method_args keyword=value,keyword=value,... N
Table C-2
nameuse= 0 Use VM host name to identify backup image Hyper-V tab > Primary VM
identifier
1 Use VM display name to identify backup image
allow_offline_ 0 Do not allow offline backup of non-VSS virtual machines Hyper-V tab > Enable offline
backup= backup of non-VSS VMs
1 Allow offline backup of non-VSS virtual machines
NetBackup commands to back up and restore Hyper-V virtual machines 151
bpplinclude options for modifying query rules in Hyper-V policies
csv_timeout= Determines how many minutes the backup job waits, in case Hyper-V tab > Cluster
another node in the cluster backs up the same shared volume shared volumes timeout
at the same time.
prov_type= 0 Automatic selection of provider. Allows VSS to use the best Hyper-V tab > Advanced >
possible provider for the snapshot. Provider Type
Option Description
-addtoquery query_string ... Adds the specified query string to the end of the policy query rules, or creates a query
if none exists.
Examples:
-addtoquery -f file_name Adds the entries to the query rules from the specified file, or creates a query if none
exists.
Example:
Note: You can place entries on multiple lines in the file. All entries are added to the
end of the query (if a query already exists).
NetBackup commands to back up and restore Hyper-V virtual machines 153
Examples of nbrestorevm for restoring VMs to Hyper-V
Option Description
-deletefromquery query_string Deletes the specified query string from the policy query rules.
...
Examples:
To delete vm27 from the list of values in the query rule of policy1:
This example also deletes the comma preceding vm27 if such a comma exists in the
query rules.
Note: The -deletefromquery option deletes a comma if: the phrase in the query_string
does not begin or end with a comma and the character preceding the deleted string
is a comma.
-deletefromquery -f file_name Deletes the file entries from the query rules.
Example:
The following nbrestorevm options are used in the examples in this topic:
■ –vmhv
Indicates a restore to the original location.
■ -vmhvnew
Indicates a restore to a different location (instead of –vmhv).
■ -vmhvstage
Indicates a restore to a staging or temporary location.
■ -vmncf
For a VM that uses files in common with other VMs, this option restores the VM
but does not restore the common files.
■ -C virtual_machine_to_restore
Identifies the VM to restore. The VM name must match the type of name that
was selected in the Primary VM identifier option of the backup policy. For
example, if the VM was backed up by its VM display name, use the VM's display
name on the -C option.
■ -R absolute_path_to_rename_file
For a restore to a different location, describes the path to a text file (the rename
file) that contains directives for restoring the VM's files. The rename file specifies
the original paths and the new paths for the restored VM files (xml, bin, vsv,
vhd). The rename file must specify paths for all four VM file types.
See example E in this topic.
Further notes are available on the rename file:
See “The nbrestorevm -R rename file for Hyper-V” on page 156.
■ -vmserver Hyper-V_server
Specifies a different server as the target for the restore. The default is the
Hyper-V server that backed up the VM. To restore to the Hyper-V server that
backed up the VM, omit this option.
■ –S master_server
Specifies the master server that made the backup (if different from the current
master).
■ -O
Overwrites the VM and the associated resources if they already exist. This option
is required if the VM exists in the target location.
NetBackup commands to back up and restore Hyper-V virtual machines 155
Examples of nbrestorevm for restoring VMs to Hyper-V
■ -w [hh:mm:ss]
The nbrestorevm command waits for completion of the restore before it returns
to the system prompt.
Without the -w option, nbrestorevm initiates the restore and exits. You can check
the job completion status in the Activity Monitor of the NetBackup Administration
Console.
■ -L progress_log_file [-en]
Specifies an existing file to contain debug information about the restore. If the
server where you run nbrestorevm is configured for a non-English locale, the
-en option creates an additional log file in English.
The -O option overwrites the existing VM. This option is required if the VM already
exists.
On the -R option, enter the full path to a text file that contains the following kinds
of entries:
Make sure to include all four change entries to specify locations for the VM's files
(xml, bin, vsv, vhd). If any of the VM file paths are omitted, the restore may not
succeed.
The -vm_server option specifies the target server for the restore.
See example E for a description of the rename file.
The -vm_server option specifies the host for the staging location.
See example E for a description of the rename file.
Note: The -R option and rename file are not required when you restore the VM to
its original location with all its original settings.
■ Each change directive in the -R rename file must end with a carriage return.
■ The change directives can be in any order in the rename file.
■ The change directives take the following form:
change /original_VM_file_path to /target_VM_file_path
Use forward slashes (/) in the paths. See Table C-4.
■ Unlike the Backup, Archive, and Restore interface, nbrestorevm does not validate
its command options and rename file directives before the restore job begins.
Make sure to include all required options and rename file change directives.
change /original_VM_GUID.xml_path to The path to the VM's original .xml file and to the restored
/new_VM_GUID.xml_path .xml file.
change /original_VM_GUID.bin_path to The path to the VM's original .bin file and to the restored
/new_VM_GUID.bin_path .bin file.
change /original_VM_GUID.vsv_path to The path to the VM's original .vsv file and to the restored
/new_VM_GUID.vsv_path .vsv file.
change /original_VM.vhd_path to The path to the VM's original vhd file and to the restored
/new_VM.vhd_path vhd file.
23, socket The time span that is specified on the –w option is earlier than the time
read failed of the restore.
You can use -w without time values. The nbrestorevm job waits for the
restore to complete and then exits.
135, client The media server or recovery host where you are running nbrestorevm
is not is not allowed to access the NetBackup master server.
validated to
Add the media server or recovery host to the master server's Additional
perform the Servers list. In the NetBackup Administration Console, click Host
requested Properties > Master Servers > double-click the master server > Servers.
operation
190, found A name or value that is supplied with nbrestorevm does not match the
no images or VM's actual name or value.
media
The VM name as specified on nbrestorevm must match the type of name
matching the that was selected in the Primary VM identifier option of the backup
selection policy. For example, if the VM was backed up by its VM display name,
criteria use the VM's display name on the -C option.
Note: Spaces in the VM name must be represented as %20 on the
nbrestorevm -C option. For example, if the VM's name is acme vm1,
enter acme%20vm1 on the -C option.
Linux, UNIX
/usr/openv/netbackup/logs/bprd
A backups
administrator tasks Hyper-V online and offline 133
NetBackup 16 Basic Mode
Advanced Mode edit rule in Query Builder 55
Query Builder 55 Query Builder 50
alternate client backup basic phases
issues 124 in NetBackup backup of a Hyper-V virtual
of pass-through disks 139 machine 14
of virtual machines best practices 108
prerequisites 38
alternate client backup of pass-through disks C
configuring 140 cached names
alternate client backup of virtual machines for virtual machine backup 37
configuring 38 client connect timeout value
AND vs OR 60 increase 116
Join field in Query Builder 56 Clients tab
automatic selection of virtual machines automatic selection of virtual machines 48
about 42 description of fields for queries 64
Advanced Mode 55 cluster resources
Basic Mode 50 removal during restore 81
Clients tab 48 Cluster Shared Volume (CSV)
examples 42, 57 backup of virtual machines that reside on same
notes on 44 CSV 123
Query Builder fields 64 Cluster Shared Volumes (CSV)
requirements 46 backup and restore 77
task overview 47 common files
testing 68 restore 104
with multiple policies 59 compound query rules 62
conditions
B that determine online vs offline backup 134
backing up pass-through disks configuration
configurations 137 of auto selection of virtual machines 48, 50
requirements 137 configurations for backing up pass-through disks 137
restrictions 138 configuring
backup a Hyper-V policy 28
Hyper-V virtual machines 84 alternate client backup of virtual machines 38
backup and restore an alternate client backup of pass-through
Cluster Shared Volumes (CSV) 77 disks 140
backup job hangs local snapshot backup of pass-through disks 138
for multiple virtual machines 121 Cumulative Incremental Backup 29
Index 161
M P
maintenance after a restore parentheses
virtual machine 81 for grouping rules in Query Builder 55
multiple policies for rules in Query Builder 62
for auto selection of VMs 59 pass-through disks
multiple virtual machines alternate client backup 139
backup job hangs 121 Hyper-V 136
policy
N configure for auto VM selection 50
multiple, for auto VM selection 59
nbdiscover command 69
Policy Configuration wizard
to test a query 45, 47, 50
creating a backup policy 27
NetBackup
policy creation
administrator tasks 16
errors 115
NetBackup backup of a Hyper-V virtual machine
for virtual machines in a cluster 78
basic phases 14
with the Policies utility 28
NetBackup client
with the Policy Configuration wizard 27
inside the virtual machine 40
Policy dialog box 28
NetBackup for Hyper-V
precedence 60
environment 12
prerequisites
NetBackup logs
Hyper-V 18
creating 110
Primary VM identifier parameter
NetBackup lost and found directory
and IsSet operator 58
on Linux 90
and multiple policies 59
NetBackup policies
and testing query rules 70–71
more information 84
and VM Name column in Test query 72
NetBackup policy validation
Provider Type
failed 115
configuration parameter 35
NetBackup status codes
related to Hyper-V 117
NetBackup.lost+found 90 Q
notes Query Builder
Linux virtual machines 21 and Primary VM identifier parameter 71
notes and restrictions configuration in Advanced Mode 55
Hyper-V 19 configuration in Basic Mode 50
description of fields 64
O edit rule in 55
enter rules manually 55
offline backups
escape character 68
additional notes 134
examples 57
online vs offline backup
IsSet operator examples 58
conditions 134
keywords 65
operators
operators 66
in Query Builder 66
order of operations 60
order of operations
quotation marks 68
Query Builder 60
testing rules for 68, 70
rules in Query Builder 55
to select virtual machines for backup 42
values 68
wildcards 68
with multiple policies 59
Index 163
quick reference S
troubleshooting 17 select automatically through query
quotation marks virtual machines 42
use of in Query Builder 68 setting up NetBackup Client Service
for restore to a shared location on the virtual
R machine 98
requirements snapshot
for backing up Hyper-V pass-through disks 137 in inconsistent state 90
restart Snapshot Attribute
of a restored virtual machine configuration parameter 36
unexpected shutdown message 128 snapshot error encountered
restore status code 156 118
common files 104 snapshot parameter values
full virtual machine 88, 99 VSS and disk arrays 142
individual file 86 status code 1
individual files 91 and Hyper-V snapshots (avhd or avhdx files) 123
individual files to a host that has a NetBackup and LDM volumes 122
client 92 status code 156
individual files to a shared location on the virtual snapshot error encountered 118
machine 97
problems with full virtual machine 129 T
problems with individual files 128 terminology
removal of cluster resources 81 Hyper-V terms related to backup 15
setting up NetBackup Client Service to a shared Test Query screen 68
location on the virtual machine 98 and Primary VM identifier parameter 71–72
Restore Marked Files failed virtual machines 70
dialog box (Hyper-V) 100 nbdiscover as alternative 45, 47, 50
restored timeout occurs when browsing for virtual machines
virtual machine location in a cluster 80 if cluster nodes not accessible 116
restored virtual machine troubleshooting
fails to start 126 quick reference 17
restart 128
restrictions
for backing up pass-through disks 138
V
rules in Query Builder values
about 43 in Query Builder 68
configuring 50 verifying support for transportable snapshots
editing 55 using the vshadow command 124
examples 43 view or resize
examples with parentheses 62 Windows NTFS shadow storage 121
IsSet operator examples 58 virtual machine
manual entry of 55 maintenance after a restore 81
order of evaluation 55 NetBackup client inside 40
order of operations 60 virtual machine backup
testing 68 cached names 37
testing failued 70 virtual machines
alternate client backup 38
backup on the same CSV 123
configure for auto selection of 50
Index 164
W
wildcards
use of in Query Builder 68
Windows 2008 failover clusters
virtual machines on 76
Windows NTFS shadow storage
insufficient space for snapshots 121