NetBackup83 AdminGuide VMware
NetBackup83 AdminGuide VMware
VMware Administrator's
Guide
Release 8.3
Veritas NetBackup™ for VMware Administrator's
Guide
Last updated: 2020-07-28
Legal Notice
Copyright © 2020 Veritas Technologies LLC. All rights reserved.
Veritas, the Veritas Logo, and NetBackup are trademarks or registered trademarks of Veritas
Technologies LLC or its affiliates in the U.S. and other countries. Other names may be
trademarks of their respective owners.
This product may contain third-party software for which Veritas is required to provide attribution
to the third party (“Third-party Programs”). Some of the Third-party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the Third-party Legal Notices document accompanying this
Veritas product or available at:
https://www.veritas.com/about/legal/license-agreements
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 Veritas Technologies
LLC and its licensors, if any.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.
Technical Support
Technical Support maintains support centers globally. All support services will be delivered
in accordance with your support agreement and the then-current enterprise technical support
policies. For information about our support offerings and how to contact Technical Support,
visit our website:
https://www.veritas.com/support
You can manage your Veritas account information at the following URL:
https://my.veritas.com
If you have questions regarding an existing support agreement, please email the support
agreement administration team for your region as follows:
Japan [email protected]
Documentation
Make sure that you have the current version of the documentation. Each document displays
the date of the last update on page 2. The latest documentation is available on the Veritas
website:
https://sort.veritas.com/documents
Documentation feedback
Your feedback is important to us. Suggest improvements or report errors or omissions to the
documentation. Include the document title, document version, chapter title, and section title
of the text on which you are reporting. Send feedback to:
You can also see documentation information or ask a question on the Veritas community site:
http://www.veritas.com/community/
https://sort.veritas.com/data/support/SORT_Data_Sheet.pdf
Contents
About installing and configuring Network File System (NFS) for Granular
Recovery Technology (GRT) ................................................... 355
About configuring services for NFS on Windows 2012 or 2016
(NetBackup for VMware) ........................................................ 356
Enabling Services for Network File System (NFS) on a Windows
2012 or 2016 media server (NetBackup for VMware) ............. 356
Enabling Services for Network File System (NFS) on a Windows
2012 or 2016 restore host (NetBackup for VMware) ............... 360
About configuring services for NFS on Windows 2008 and 2008 R2
(NetBackup for VMware) ........................................................ 363
Enabling Services for Network File System (NFS) on Windows
2008 or 2008 R2 (NetBackup for VMware) ........................... 364
Disabling the Server for NFS (NetBackup for VMware) ....................... 368
Disabling the Client for NFS on the media server (NetBackup for
VMware) ............................................................................. 369
Configuring a UNIX media server and Windows backup or restore host
for Granular Recovery Technology (NetBackup for VMware) .......... 371
Configuring a different network port for NBFSD (NetBackup for
VMware) ............................................................................. 372
Component Description
Backup host NetBackup for VMware uses a special host that is called a VMware backup host (formerly called
the VMware backup proxy server). The backup host is a NetBackup client that performs backups
on behalf of the virtual machines. The backup host must have access to the datastores of the
virtual machines.
The backup host is the only host on which NetBackup client software is installed. No NetBackup
client software is required on the VMware virtual machines.
Note that the backup host is referred to as the recovery host when it performs a restore.
The backup host can be configured in any of the following ways:
■ As a NetBackup client (Windows or Linux) with a connection to separate master and media
servers. The master servers and media servers can be Windows, UNIX, or Linux.
■ As a NetBackup client that is installed on the media server (see Backup media server).
■ The NetBackup client and master and media server can all reside on the same host (Windows
or Linux).
For a list of supported platforms for the backup host, see the NetBackup Enterprise Server
and Server OS Software Compatibility List available from the following location:
NetBackup Master Compatibility List
Discovery host Used for the automatic selection of virtual machines for backup. This host discovers virtual
machines and filters them by means of the selection rules in the policy Query Builder. The
resulting list determines which virtual machines are backed up.
The discovery host can be on any platform that NetBackup supports for master or media servers.
It can also be the same host as the backup host.
You specify this host on the policy Clients tab: Click Select automatically through VMware
Intelligent Policy query, then NetBackup host to perform automatic virtual machine
selection.
Introduction 16
NetBackup for VMware components
Component Description
Backup media server A media server that can operate as the backup host.
NetBackup master Manages the backups of virtual machines, by means of the NetBackup client that is installed
server on the backup host.
NetBackup media Performs the backups to storage on behalf of the NetBackup client.
server
Virtual machine Virtual machines provide complete guest operating systems on virtualized hardware. In a
NetBackup policy, a virtual machine is configured as a NetBackup client, even though NetBackup
client software is not installed on the virtual machine.
ESX server The VMware ESX server presents a virtualized hardware environment to multiple virtual
machines; each virtual machine runs an independent operating system. Users can run
applications in the virtualized OS as if the OS was installed in its own physical computer.
vCenter Server The VMware vCenter Server (or VirtualCenter server) coordinates multiple ESX servers and
workloads. It can migrate virtual machines from one ESX server to another. It also provides the
ability to back up the virtual machines that are turned off.
Figure 1-1 shows a NetBackup for VMware environment on a local network. The
backup host accesses the VMware datastore through the ESX servers.
Introduction 17
NetBackup for VMware components
vCenter
server
NetBackup media server
UNIX, Linux, or Windows
ESX
Backup host servers
NetBackup Windows or Linux
client. Can be combined with a
master or media server. VMware
Virtual machines datastore
VM VM VM
VM VM VM
Figure 1-2 shows a NetBackup for VMware environment on a SAN. The backup
host accesses the VMware datastore directly over the SAN.
vCenter
server
NetBackup media server
UNIX, Linux, or Windows
SAN
ESX
Backup host VMware datastore servers
NetBackup Windows or Linux (Must be available to
client. Can be combined with a VMware backup host)
master or media server. Virtual machines
VM VM VM
VM VM VM
Introduction 18
Appliance as backup host: component overview
LAN / WAN
Media
server
storage
VM VM VM
NetBackup can use media servers as backup hosts and as discovery hosts.
Media servers acting as backup or discovery hosts can provide the following
advantages:
■ Host redundancy: If one media server goes down, another media server takes
over.
■ Faster backup: The media server can read the data from the datastore and send
the data straight to the storage device. Without media server access to storage
devices, an ordinary backup host must send the backup data over the local
network to the media server.
Figure 1-4 shows a group of media servers that can also act as backup or discovery
hosts. The media servers can discover virtual machines for automatic selection,
and perform off-host backups and send the backup data directly to storage.
vCenter
storage
server
ESX
Media servers servers
Each has a NetBackup client
Vmware
Virtual machines datastore
VM VM VM
VM VM VM
You can combine the flexibility of backup media servers with a standard feature of
NetBackup: storage unit groups. Create a storage unit group that contains the
storage units that your media servers can access. Any of the media servers can
operate as a backup host.
Note the following requirements:
■ To configure media servers as backup hosts: Set the policy VMware backup
host field on the VMware tab to Backup Media Server.
See “VMware backup host” on page 74.
Introduction 20
Overview of the VMware backup process
■ To configure media servers as discovery hosts: Set the policy NetBackup host
to perform automatic virtual machine selection field on the Clients tab to
Backup Media Server.
See “Options for selecting VMware virtual machines” on page 109.
Phase Description
Phase 2 The NetBackup client on the VMware backup host initiates a VMware
snapshot on the virtual machine.
Phase 3 Windows: VSS synchronizes the file system on the virtual machine.
Linux: If snapshot quiesce is enabled in the Linux guest OS, the file system
is synchronized on the virtual machine. (Contact your operating system
vendor and VMware for additional information on how to enable snapshot
quiesce.)
Phase 4 The VMware server creates a snapshot on the virtual disk datastore.
Phase 5 The NetBackup client reads the snapshot from the datastores and writes
the data to the NetBackup storage unit.
Term Definition
backup host The backup host is a NetBackup client that performs backups on
behalf of the virtual machines. (This host was formerly known as
the VMware backup proxy server.) The backup host is the only host
on which NetBackup client software is installed.
datastore In NetBackup for VMware, the datastore is a disk that contains the
virtual machines files.
discovery host Discovers the virtual machines, filters them by the rules in the Query
Builder, and returns a list of virtual machines to be selected for
backup. The discovery host is used only for automatic selection of
virtual machines.
hotadd The backup or restore transport mode when the backup host is
installed in a virtual machine.
Term Definition
Query Builder For creating filtering rules for automatic selection of virtual machines
for backup. The Query Builder is on the Clients tab of the
NetBackup policy.
Raw device mapping Allows a virtual machine to directly access physical disks (on Fibre
(RDM) Channel or iSCSI). RDM allows the OS and applications in the
virtual machine to have pass-thru access to raw devices.
transport mode Determines how the snapshot data travels between the VMware
datastore and the backup host.
Term Definition
virtual machine An execution environment that the hypervisor creates for the
computer hardware. The resulting virtualized environment allows
different operating systems to run simultaneously on the same
physical computer.
virtual network A logical network that allows the exchange of data between virtual
machines. A virtual network uses a virtual switch (VMware vSwitch).
A virtual network can be connected to a physical network.
vmdk file In a VMware ESX server, one or more vmdk files make up the disk
image or virtual drive in a virtual machine. The .vmdk files contain
the operating system, applications, and data in the virtual machine.
VMware Tools Installed inside each VMware virtual machine. Enhances the virtual
machine performance and adds backup-related functionality.
vStorage VMware vStorage APIs enable data protection features for more
efficient use of storage capacity. NetBackup can use vStorage to
back up the latest vSphere environments as well as to back up
earlier VMware environments.
Chapter 2
Required tasks: overview
This chapter includes the following topics:
Sequence Tasks
Phase 1 Ensure that the hardware and the SAN are configured properly. The VMware
datastore where the target virtual machine files exist must be accessible to
the VMware backup host.
A SAN connection between the backup host and the datastore is optional
if you use the NBD transfer type or NBDSSL transfer type.
To use the SAN transport type, set up the datastore on Fibre Channel or
iSCSI. In this configuration, the VMware backup host must be able to access
the datastore over the SAN.
Phase 3 Install VMware Tools on the virtual machines that you plan to back up.
Sequence Tasks
It is recommended that the NetBackup media server and the VMware backup
host be installed on the same host.
Phase 2 Install the NetBackup Enterprise Client license on the master server, and
install NetBackup client software on the VMware backup host.
NetBackup for VMware requires an Enterprise Client license for each ESX
Server. To protect an application or database, note: an additional license
for the appropriate NetBackup package is needed for each ESX server that
hosts the application or database.
Phase 4 Enter NetBackup access credentials as needed: for VMware vCenter, for
vCloud Director, and for individual ESX servers.
See “Configuring a VMware policy from the Policies utility” on page 68.
■ In the policy Query Builder, display names, resource pool names, and vApp
names are case-sensitive
■ Notes and limitations for tag usage in VMware Intelligent Policy queries
■ Notes and limitations for the backup and restore of VMware tag associations
■ The VMware backup host must run on Windows or Linux. The supported
hardware types are the same as for any NetBackup client. For the supported
platforms for the backup host, see the NetBackup Enterprise Server and Server
OS Software Compatibility List available from the following location:
NetBackup Master Compatibility List
■ To use the hotadd transfer type for backup or restore, the VMware backup or
restore host is installed in a virtual machine.
See “Notes on the hotadd transport mode” on page 40.
Note: Replication Director backups allow more than 31 snapshots per virtual
machine.
■ If the number of snapshot delta files for a VM's vmdk exceeds 32, snapshot
creation fails. A message similar to the following appears in the NetBackup
detailed status:
Delta files can accumulate if the VM's snapshots are not deleted or consolidated.
Consolidate or delete the existing snapshots, then rerun the backup.
■ NetBackup for VMware cannot back up the data on an independent disk, because
an independent disk cannot be captured with a snapshot. The backup succeeds
but the backup image contains no data for the independent disk.
To back up the data on an independent disk, install a NetBackup client on the
virtual machine. You can configure NetBackup to back up the virtual machine
and any independent disks as if the client was installed on a physical host. You
can restore the virtual machine and then restore the independent disk as a
separate job.
■ NetBackup for VMware does not back up standard iSCSI LUNs that are
connected to the virtual machine. If the virtual machine has an iSCSI LUN, the
backup succeeds but the drive that represents the LUN is not backed up.
Note: NetBackup for VMware supports datastores over iSCSI.
Notes and prerequisites 29
NetBackup for VMware: notes and restrictions
Note: When you restore the entire VM from a block-level incremental backup,
the file metadata is updated and the moved or renamed files reflect the updated
metadata.
■ VMware virtual machine templates are for cloning virtual machines: They cannot
be turned on and used as functioning VMs. As a result, VMware has imposed
the following restrictions on backup and restore of virtual machine templates:
■ A virtual machine template cannot be captured in a snapshot. NetBackup
backs up the template to the designated storage unit.
■ Block level incremental backup (BLIB) cannot be used when backing up a
virtual machine template.
Note: You can use the Query Builder in the NetBackup policy to create rules
for automatic selection of virtual machine templates.
■ To support the following exclude disk options, the backup host must be at release
level 8.1 or later:
■ Perform custom attribute based exclusion
Custom Attribute based disk exclusion requires that you enter in NetBackup
the credentials for the vCenter server or servers that host the VMs. ESXi
server credentials are not sufficient.
Notes and prerequisites 31
NetBackup for VMware: notes and restrictions
■ NetBackup does not support the following exclude disks options for Replication
Director backups:
■ Exclude boot disk
■ Exclude all data disks
■ Perform custom attribute based exclusion
■ Specific disk(s) to be excluded
■ If you remove a disk from exclusion, the individual files that were last modified
before the most recent backup cannot be restored. To restore those files, restore
the entire virtual disk or the virtual machine. After the next full backup, those
files are available to restore individually.
■ NetBackup fails the backups of virtual machines that are empty. A VM may be
empty because all of its disks are empty or because disk exclusion excludes all
disks.
■ To back up a virtual machine while Storage vMotion migrates its files, NetBackup
must conduct the backup through the vCenter server.
See “Conflict between NetBackup and VMware Storage vMotion with vSphere
5.0 or later” on page 307.
■ Several notes and limitations apply to the automatic selection of virtual machines
for backup (Virtual Machine Intelligent Policy).
See “NetBackup requirements for automatic virtual machine selection”
on page 108.
■ For hotadd backup or restore: The virtual machine to back up (or restore) and
the virtual machine that contains the hotadd backup host must reside in the
same VMware data center.
See “Notes on the hotadd transport mode” on page 40.
■ NetBackup for VMware supports Windows NTFS file encryption and compression,
for backup and restore. However, NetBackup for VMware does not support
NetBackup’s compression or encryption options (in the NetBackup policy
attributes).
For Windows, UNIX, or Linux guest operating systems: NetBackup for VMware
does not support any type of compression or encryption, whether they are set
in NetBackup or in the guest OS (such as BitLocker).
Notes and prerequisites 32
NetBackup for VMware: notes and restrictions
Note: The compressed Windows NTFS files are backed up and restored as
compressed files.
The same backup behavior occurs if the policy’s VM selection is switched from
query-based to manual selection: The second backup is a regular full backup.
■ For the virtual machines that vSphere 6.5 hosts, NetBackup fails the backup if
a snapshot exists while NetBackup tries to enable VMware Change Block
Tracking. Because the VMware Change Block Tracking API behavior changed
beginning in vSphere 6.5, NetBackup fails the backup.
NetBackup enables CBT on a VM if Block Level Incremental Backups is
enabled in the backup policy and CBT is not enabled already on the VM.
Notes and prerequisites 33
Notes on VMware Virtual Volumes (VVols)
■ In vSphere, if your virtual environment has IPv6 addresses, use only fully qualified
domain names (FQDNs) that are mapped to IPv6 addresses on the DNS server.
■ The Test query operation fails for a VMware policy in the following condition:
There is no direct connectivity between the NetBackup master server and the
ESX server (for example, ESX server in NAT environment) where a virtual
machine is to be backed up and the NetBackup host to perform automatic
virtual machine selection option is set to Backup Media Server (for example,
NAT media server).
If the NetBackup master server and the backup host are the same host, configure
the support on that host only. If the NetBackup master server and the backup host
are separate hosts, configure the support on each host.
For more information about the IP Address Family Support host property, see
the NetBackup Administrator's Guide, Volume I:
http://www.veritas.com/docs/DOC5332
■ The NetBackup policy’s Enable file recovery from VM backup option is not
supported for the disks inside a Linux guest OS that are configured as follows:
■ The disks are divided into logical volumes by means of the Linux Logical
Volume Manager (LVM), and
■ The LVM volumes were created with thin-provisioning.
NetBackup The NetBackup appliance (beginning with the 2.6.0.2 release) supports
appliance SAN dynamic multi-pathing for VMware backups. I/O is redirected
through the volume manager dynamic multi-pathing node.
http://www.veritas.com/docs/DOC2792
Notes and prerequisites 36
NetBackup for VMware support for SAN multi-pathing
Non-appliance NetBackup supports backups and restores for multi-pathing under the
Linux host following conditions:
■ The virtual disk SAN transport whitelist specifies the device node
paths that you want to use for multipathing. The virtual disk
vixDiskLib.transport.san.whitelist API function defines
the whitelist. For NetBackup purposes, Veritas recommends that
you include the DMP nodes in the whitelist; the following is an
example:
vixDiskLib.transport.san.whitelist = /dev/vx/dmp/
hitachi_usp-v0_00a0,/dev/vx/dmp/hitachi_usp-v0_00
a0s1,/dev/vx/dmp/hitachi_usp-v0_00a0s2,/dev/vx/dm
p/hitachi_usp-v0_00a0s3,/dev/vx/dmp/hitachi_usp-v
0_00a0s4,/dev/vx/dmp/hitachi_usp-v0_00a0s5
■ The virtual disk SAN transport blacklist specifies the device node
paths you want to exclude from multipathing. The virtual disk
vixDiskLib.transport.san.blacklist API function defines
the blacklist. For NetBackup purposes, Veritas recommends that
you set the blacklist to all; the following is an example:
vixDiskLib.transport.san.blacklist = all
Specify the whitelist and the blacklist in the following file on the backup
host:
/usr/openv/lib/shared/vddk/lib64/vixDiskLib.ini
For more information about the whitelist and the blacklist, see the
appropriate VMware documentation. For example, for Virtual Disk
Development Kit 6.0 the whitelist and the blacklist function descriptions
are in the VMware Virtual Disk Programming Guide.
Note: This support or limitation does not affect NetBackup support for VMware’s
Native Multipathing, which is multi-pathing between the ESXi host and storage.
This support or limitation does not affect NetBackup for VMware on Windows backup
hosts. The Windows operating system has integrated multi-pathing support. The
following Microsoft guide contains more information:
http://microsoft.com/mpio
Notes and prerequisites 37
NetBackup for VMware support for fault tolerant VMs
Additional character restrictions for VM names can be found in the NetBackup Cloud
Administrator's Guide, available from this location:
http://www.veritas.com/docs/000003214
See “NetBackup for VMware: notes and restrictions” on page 27.
See “In the policy Query Builder, display names, resource pool names, and vApp
names are case-sensitive” on page 39.
vmware-ted
VMware-charles
VMWARE-john
vmWARE-jason
■ NetBackup only recognizes the tags that are associated with virtual machines,
not other vCenter objects such as Datastores.
■ vCenter Server 6.0 or later is required.
■ Any Windows host with only the NetBackup Client Software installed that is also
defined in the VMware policy's Client tab as the NetBackup host to perform
automatic virtual machine selection must have NetBackup Java installed.
Install the NetBackup Remote Administration Console to install NetBackup Java.
■ Be aware of a known bug in vSphere 6.0 when the system time of the discovery
host and the vCenter Server are not synchronized. This issue is known to cause
backups to fail with a NetBackup Status Code 4263.
VMware knowledge base article: http://kb.vmware.com/kb/2125193
■ In large VMware environments, consider increasing the Maximum bearer token
lifetime from the default value. Veritas has observed issues with discovery jobs
Notes and prerequisites 42
Notes and limitations for the backup and restore of VMware tag associations
timing out because the default value is too small. The Maximum bearer token
lifetime is a vCenter Server setting. More information on this issue is available.
See “Troubleshooting VMware tag usage” on page 318.
Note: This procedure is not needed for the media servers that operate as backup
hosts with the policy Backup Media Server option. With that option, NetBackup
automatically enables media servers as backup hosts.
Note: Enter the server name in the same format in which it is registered in
DNS and in the VMware server (whether short or fully-qualified).
See “Using the VMware Managed Object Browser to verify the server name”
on page 50.
Configure NetBackup communication with VMware 46
Adding NetBackup credentials for VMware
Note: The vCenter name that you enter here must match the name that is set
on the vCenter for VimApiUrl name and Runtime name. For assistance in
setting those names on the vCenter, and for additional vCenter naming
requirements relating to the NetBackup plug-ins for vSphere: See the topic on
consistent vCenter naming in the NetBackup Plug-in for VMware vSphere Web
Client Guide:
http://www.veritas.com/docs/000003214
Note: It is recommended the use of fully qualified names. The entire name
must be properly formed without empty or null elements. For example, a
fully-qualified name must include the domain name and not end in a period (.).
Note: The ESX server name is case-sensitive. Enter the ESX server name
exactly as it is in the VMware environment. If the case is wrong, the credential
validation fails and states "...expecting <correct_name_of_server>."
NetBackup needs access to this server for either of the following reasons:
■ To browse the server's virtual machines and back them up.
■ To use the server as a target for restoring virtual machines.
Use the next dialog to identify the type of this server (vCenter, ESX, or ESX
for restore only).
4 In the Credentials pane of the New Virtual Machine Server dialog, enter the
following:
Virtual machine server type
Select the type of VMware server that NetBackup needs to access:
■ VMware Virtual Center server
Designates a vCenter (or VirtualCenter) server that manages ESX servers.
When you create a policy to back up this server's virtual machines,
NetBackup can browse this server and list its virtual machines. If the
credentials provide full access privileges to the vCenter server, you can
restore virtual machines to this server.
Note: Do not enter logon credentials for the individual ESX servers that this
vCenter server manages. NetBackup needs credentials for the vCenter
only. If you enter credentials for both an ESXi server and a vCenter that
manages it, problems such as the following may occur:
■ A VMware Intelligent Policy (VIP) may fail due to discovery of duplicate
VMs.
Configure NetBackup communication with VMware 47
Adding NetBackup credentials for VMware
■ For manual selection of VMs (not VIP): Tags and custom attributes
(which require a vCenter) may cause intermittent problems if NetBackup
attempts to back up the VM using the ESXi server.
Note: NetBackup accesses this type of server for restores only, not for
backups.
Note: VMware does not support the restore of virtual machines directly to
an ESX 5.x or later server that vCenter manages. To restore the virtual
machine, select the vCenter server as the destination. As an alternative,
you can set up an independent ESX server to be used for restores. You
must add NetBackup restore credentials for that ESX server by means of
the VMware Restore ESX Server type.
For further information on the restore ESX server, refer to the following
Veritas tech note:
http://www.veritas.com/docs/000007351
Configure NetBackup communication with VMware 48
Adding NetBackup credentials for VMware
Note: For backup and restore to vCloud Director, both vCloud and vCenter
credentials are required (VMware Virtual Center server).
User name
Enter the user name for the virtual machine server. Note that spaces in user
names are not allowed.
To enter a domain name with a user name, separate them with a backslash
as follows:
domain\username
Password
Enter the password for the virtual machine server.
For backup host
You can select a particular backup host for which to validate the credentials.
Note that the hosts that appear in the pull-down list can be the following: media
servers, or NetBackup clients that have been added under Host Properties,
VMware Access Hosts.
For a list of supported backup host platforms, see the NetBackup Software
Compatibility List available from the following location:
NetBackup Master Compatibility List
See “Adding the VMware backup host to NetBackup” on page 44.
Configure NetBackup communication with VMware 49
Adding NetBackup credentials for VMware
If For backup host is set to <Any> (the default), NetBackup attempts to validate
the credentials using each backup host in turn. NetBackup continues checking
only until validation succeeds for a particular backup host or the list of backup
hosts is exhausted.
During validation: An invalid user name or password is deleted if you have
entered it for the first time and you do not select a backup host. If validation
fails for any reason, the entry is removed.
If your VMware backup host is running a version of NetBackup that is earlier
than 6.5.4, the credentials cannot be validated. An error message is displayed.
You must verify that the credentials you entered are correct for the VMware
server. If the credentials are correct, you can ignore the error message.
Connect using port number
If the default port number has not been changed on the VMware server, no
port specification is required. In that case, make sure that the Connect using
port number box is not checked.
If the VMware server has been configured to use a different port, click the
Connect using port number box and specify that port number.
5 Click OK.
6 If your site has multiple standalone ESX servers, use the Virtual Machine
Server dialog to enter credentials for each ESX server.
7 If the NetBackup master server is clustered, do the following on the other
master server nodes to verify the credentials for each backup host.
■ Fail over to the next master server node, to make it the active node.
■ On the active node, click on Media and Device Management > Credentials
> Virtual Machine Servers and double-click on the virtual machine server
credential.
■ In the For backup host field, select a particular backup host (do not select
Any).
If the backup host does not appear in the list, you must add the correct
credentials for the backup host. (Click Actions > New > New Virtual
Machine Server.)
■ Click OK.
NetBackup validates the credentials.
■ Double-click the same virtual machine server credential and validate the
credentials for another backup host (if any).
■ For other master server nodes, repeat step 7.
Configure NetBackup communication with VMware 50
Changing the host name of a VMware server in NetBackup
See “Setting global limits on the use of VMware resources” on page 52.
http://www.veritas.com/docs/DOC5332
See “Setting privileges for posting events to vCenter” on page 51.
For each resource type, the default is 0, (No Limit). A resource limit of 4 for
Datastore means that NetBackup policies can perform no more than four
simultaneous backups on any particular datastore.
Table 4-1 describes the limits:
The following procedure is applicable for the NetBackup master server and all
VMware access hosts.
Configure NetBackup communication with VMware 56
Validating VMware virtualization server certificates in NetBackup
See
“VIRTUALIZATION_HOSTS_SECURE_CONNECT_ENABLED
for servers and clients” on page 63.
VIRTUALIZATION_HOSTS_CONNECT_TIMEOUT Lets you specify the duration (in seconds) after which
the connection between NetBackup and vCloud
Director server ends.
See
“VIRTUALIZATION_HOSTS_CONNECT_TIMEOUT
for servers and clients” on page 62.
Usage Description
Usage Description
Note: For validating the revocation status of a virtualization server certificate, the
VIRTUALIZATION_CRL_CHECK option is used.
Usage Description
Usage Description
Usage Description
Usage Description
Usage Description
Table 4-6
Usage Description
Usage Description
How to use Use the nbgetconfig and the nbsetconfig commands to view,
add, or change the option.
VIRTUALIZATION_HOSTS_CONNECT_TIMEOUT = Time-out
value in seconds
VIRTUALIZATION_HOSTS_SECURE_CONNECT_ENABLED for
servers and clients
The VIRTUALIZATION_HOSTS_SECURE_CONNECT_ENABLED option enables the
validation of virtualization server certificates using its root or intermediate certificate
authority (CA) certificates.
Before you enable the option, review the steps from the 'Validating VMware
virtualization server certificates in NetBackup ' section in the NetBackup for VMware
Administrator's Guide.
Usage Description
Usage Description
How to use Use the nbgetconfig and the nbsetconfig commands to view,
add, or change the option.
By default, the
VIRTUALIZATION_HOSTS_SECURE_CONNECT_ENABLED is set to
UNDEFINED, but the security certificate validation is enabled for RHV
and Nutanix AHV servers and disabled for VMware servers.
Use the following format to enable certificate validation for the RHV,
VMware, or Nutanix AHV servers:
VIRTUALIZATION_HOSTS_SECURE_CONNECT_ENABLED = YES
Usage Description
Usage Description
Table 4-9
Usage Description
Usage Description
How to use Use the nbgetconfig and the nbsetconfig commands to view, add,
or change the option.
VMWARE_TLS_MINIMUM_V1_2 = YES | NO
If the option is set to YES, TLS 1.2 version and the following cipher suites
are used for communication with VMware servers:
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384,
TLS_DHE_DSS_WITH_AES_256_GCM_SHA384,
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,
TLS_DHE_DSS_WITH_AES_128_GCM_SHA256,
TLS_RSA_WITH_AES_256_GCM_SHA384,
TLS_RSA_WITH_AES_128_GCM_SHA256
If the option is set to NO, the TLS 1.2 or earlier version with the default
cipher suite is used for communication between NetBackup and VMware
server. The cipher suite is used based on the TLS and cipher suite
configuration that are set on the respective VMware server.
■ Limiting the VMware servers that NetBackup searches when browsing for virtual
machines
■ Virtual machine host names and display names should be unique if VMs are
selected manually in the policy
Note: To configure a policy for Replication Director, see the NetBackup Replication
Director Solutions Guide.
Configure NetBackup policies for VMware 69
Configuring a VMware policy from the Policies utility
10 Click the Clients tab to select the virtual machines to back up.
The options for selecting virtual machines are as follows:
Select manually, and The Browse for VMware Virtual Machines screen appears. You can type the host name in
click New. the Enter the VMware hostname field, or click Browse and select virtual machine.
Note: The Backup Selections tab is set to ALL_LOCAL_DRIVES. Individual drives cannot
be specified.
Select automatically With this option, NetBackup can automatically select virtual machines for backup based on
through VMware the filtering criteria that you enter. The following topics explain how to specify the criteria:
Intelligent Policy
See “About automatic virtual machine selection for NetBackup for VMware” on page 102.
query
See “Configuring automatic virtual machine selection” on page 112.
Note: The Backup Selections tab is filled in with the filtering rules from the query. NetBackup
uses the ALL_LOCAL_DRIVES directive to back up the virtual machines.
Enable vCloud Enables backup of the virtual machines that reside in a vCloud environment. Requires the
Director integration automatic selection of virtual machines.
With this option, the policy selects for backup only the virtual machines that vCloud manages:
it skips the virtual machines that are not in vCloud.
NetBackup host to This option appears when you click Select automatically through VMware Intelligent
perform automatic Policy query.
virtual machine
This host discovers virtual machines and automatically selects them for backup based on
selection
the query rules.
See “About automatic virtual machine selection for NetBackup for VMware” on page 102.
11 When you click OK, a validation process checks the policy and reports any
errors. If you click Cancel, no validation is performed.
Option Description
Backup Media Server This option allows a media server that is selected in the policy to operate as the backup
host. (The storage unit determines the selection of the media server.) To operate as the
backup host, the media server must contain NetBackup client software.
Note: The storage unit that is specified in the policy must be unique to the media servers
that NetBackup supports as VMware backup hosts. If the storage unit is available on a
media server that is not a supported VMware backup host, the snapshot may not succeed
(status 20). For a list of supported platforms for the VMware backup host, see the NetBackup
Software Compatibility List (SCL) available from the following location:
Note: When the Backup Media Server option is selected, NetBackup cannot determine
a host to perform policy validation. To validate the policy, temporarily select one of the
possible media servers as the backup host (do not select Backup Media Server). When
the policy validates successfully, reset the backup host to Backup Media Server.
The pull-down list contains any media servers that are supported as backup host. It also
contains any NetBackup clients that have been added in the Administration Console under
Host Properties, VMware Access Hosts.
For a list of supported platforms for the backup host, see the NetBackup Software
Compatibility List available from the following location:
See “Backup options on the VMware tabVMware backup options” on page 73.
Option Description
Enable file recovery This option allows restore of individual files from the backup. With or without this option,
from VM backup you can restore the entire virtual machine.
You can also use this option for incremental backups: in the policy schedule, select
differential incremental backup or cumulative incremental backup.
To perform a VMware backup to a deduplication storage unit, select this option. This option
provides the best deduplication rates.
To back up a virtual machine that contains Veritas Storage Foundation Volume Manager
volumes, disable this option. Also make sure that the Exclude deleted blocks option is
disabled.
Note: For a Linux virtual machine, the name of an LVM volume can include any of the
following special characters: . (period), _ (underscore), - (hyphen). No other special
characters are supported. If other special characters are in the volume name, the Enable
file recovery from VM backup option does not work. As a result, you cannot restore
individual files from that volume.
Note: During an incremental backup, any files that had been moved or renamed are not
backed up. Those files are not available when you browse to restore individual files from
the incremental backup. However, when you restore the entire VM from a block-level
incremental backup, note: the file metadata is updated and the moved or renamed files in
the restored VM reflect the updated metadata.
Enable block-level For block-level backups of the virtual machine. This option reduces the size of the backup
incremental backup image.
For the Exchange, SQL, and SharePoint Agents, this option is selected and grayed out if
you enable Use Accelerator.
On the Attributes tab, Perform block level incremental backups is automatically selected
and grayed out.
Exclude deleted blocks Reduces the size of the backup image by excluding any unused or deleted blocks within
the file system on the virtual machine. This option supports the following file systems:
Windows NTFS, and Linux ext2, ext3, and ext4.
This option uses proprietary mapping technology to identify vacant sectors (allocated but
empty) within the file system.
To back up a virtual machine that contains Veritas Storage Foundation Volume Manager
volumes, disable this option. Also make sure that the Enable file recovery from VM
backup option is disabled.
Configure NetBackup policies for VMware 76
Backup options on the VMware tabVMware backup options
Option Description
Exclude swap and Reduces the size of the backup image by excluding the data in the guest OS system paging
paging files file (Windows) or the swap file (Linux).
Note: This option does not exclude the swapping and paging files from the backup: it only
excludes the data in those files. If the files are restored, they are restored as empty files.
Note: For a Linux virtual machine, this option disables the swap file when you restore the
virtual machine. You must reconfigure the swap file after the virtual machine is restored.
To allow the virtual machine to be restored with its swap file enabled, do not select Exclude
swap and paging files.
See “Backup options on the VMware tabVMware backup options” on page 73.
Option Description
VM hostname The network host name for the virtual machine. (This option is the default.) NetBackup
obtains the host name by means of a reverse lookup on the virtual machine's IP address.
Note: For NetBackup to look up the IP address, the virtual machine must already be
turned on.
If no host name can be found, the IPv4 address is used as the host name. In case of
an IPv6 address, the field remains blank.
Option Description
VM display name The name of the virtual machine as displayed in the VMware interface. A display name
is assigned to the virtual machine when the virtual machine is created.
When virtual machines are included in a NetBackup policy, restrictions apply to the
characters that are allowed in the virtual machine display name.
See “NetBackup character restrictions for the Primary VM identifier” on page 37.
Note: The restrictions also apply to other vSphere objects, such as floppy image
name, parallel port or serial port file name, and CD-ROM ISO name.
VM BIOS UUID The ID assigned to the virtual machine when the virtual machine is created. This ID
may or may not be unique, depending on whether the virtual machine has been
duplicated. This option is included for compatibility with the policies that use the older
VM UUID identifier.
VM DNS Name The VMware DNS Name of the virtual machine. In vSphere Client, this name appears
on the virtual machine's Summary tab.
Note: This name may or may not be associated with the virtual machine’s IP address.
VMware Tools obtains this name from the host name that is configured in the virtual
machine. For further information on this name, refer to the documentation for the guest
operating system.
VM instance UUID The globally unique ID assigned to the virtual machine when the virtual machine is
created. This ID uniquely identifies the virtual machine within a vCenter server. Even
if the virtual machine has been duplicated (such as within a vCloud), only the original
virtual machine retains this instance ID. (The virtual machine duplicates are assigned
different instance UUIDs.)
See “Backup options on the VMware tabVMware backup options” on page 73.
Option Description
Continue backup NetBackup ignores any existing virtual machine snapshots (including snapshots
previously created by NetBackup) and proceeds with snapshot creation and the
backup.
Abort if any snapshot(s) exist If any snapshot exists on the virtual machine, NetBackup aborts the job for that
virtual machine only.
Remove NetBackup snapshot(s) If a virtual machine snapshot exists that a NetBackup backup previously created:
and continue backup NetBackup removes the old snapshot, creates an updated snapshot, and proceeds
with the virtual machine backup.
Abort if NetBackup snapshot(s) If a virtual machine snapshot exists that a NetBackup backup previously created,
exist NetBackup aborts the job for that virtual machine only.
(This option is the default.)
See “Backup options on the VMware tabVMware backup options” on page 73.
Mode Description
hotadd Lets you run the VMware backup host in a virtual machine.
For instructions on this transport mode and on installing the backup host in a VMware
virtual machine, refer to your VMware documentation.
nbd For unencrypted transfer over a local network that uses the Network Block Device (NBD)
driver protocol. This mode of transfer is usually slower than Fibre Channel.
nbdssl For encrypted transfer (SSL) over a local network that uses the Network Block Device
(NBD) driver protocol. This mode of transfer is usually slower than Fibre Channel.
Move Up, Move Down Use these options to change the order in which NetBackup tries each selected mode.
Highlight a mode and click Move Up or Move Down.
For example: assume that all four transport modes are selected, and the order is SAN,
hotadd, nbd, and nbdssl. If one of the virtual disks cannot be accessed using SAN, the
SAN transport mode is not used for any of the virtual machine’s disks. NetBackup then
tries to use the hotadd mode for all the disks. NetBackup continues to try each mode until
it finds one that succeeds for all the disks.
See “Backup options on the VMware tabVMware backup options” on page 73.
Enable Exchange This option enables recovery of the Exchange databases or mailbox messages from the
Recovery virtual machine backups. If this option is disabled, you can recover the entire virtual machine
from the backup, but you cannot recover the databases or mailbox messages individually.
To use the Enable Exchange Recovery option, you must enable the Enable file recovery
from VM backup option. If you choose to exclude disks on the Exclude disks tab, ensure
that the disks do not contain Exchange Server data.
For more information, refer to the NetBackup for Exchange Server Administrator's Guide.
Truncate logs For Exchange, this option truncates the transaction logs when the snapshot of the virtual
machine is complete. Truncating the logs frees up disk space in the virtual machine.
Note: To use this option, install the Veritas VSS Provider on the virtual machine. For
instructions on how to install this provider, refer to the NetBackup for Exchange Server
Administrator's Guide.
If you do not select Truncate logs, the logs are not truncated.
Enable SQL Server This option enables recovery of individual files from SQL Server data in the virtual machine
Recovery backup. If this option is disabled, you can recover the entire virtual machine from the backup,
but you cannot recover the SQL Server files individually.
To use the Enable SQL Server Recovery option, you must enable the Enable file recovery
from VM backup option. If you choose to exclude disks on the Exclude disks tab, ensure
that the disks do not contain SQL Server data.
For more information, refer to the NetBackup for SQL Server Administrator's Guide.
Truncate logs For SQL Server, this option truncates the transaction logs when the backup occurs. Truncating
the logs frees up disk space in the virtual machine.
Note: To use this option, install the Veritas VSS Provider on the virtual machine. For
instructions on how to install this provider, refer to the NetBackup for SQL Server
Administrator's Guide.
If you do not select Truncate logs, the logs are not truncated.
Enable SharePoint This option enables recovery of SharePoint objects from the virtual machine backup. If this
Recovery option is disabled, you can recover the entire virtual machine from the backup, but you cannot
recover the SharePoint objects individually.
To use the Enable SharePoint Recovery option, you must enable the Enable file recovery
from VM backup option. If you choose to exclude disks on the Exclude disks tab, ensure
that the disks do not contain SharePoint Server data.
For more information, refer to the NetBackup for SharePoint Server Administrator's Guide.
See “Backup options on the VMware tabVMware backup options” on page 73.
Configure NetBackup policies for VMware 81
Backup options on the VMware tabVMware backup options
Configuration Description
parameter
Virtual machine This option is enabled by default. In the great majority of cases, you should accept the default.
quiesce
I/O on the virtual machine is quiesced before NetBackup creates the snapshot. Without quiescing
file activity, data consistency in the snapshot cannot be guaranteed. If not consistent, the
backed-up data may be of little or no value.
If this option is disabled, the snapshot is created without quiescing I/O on the virtual machine. In
this case, you must perform your own analysis for data consistency in the backup data.
Caution: Veritas does not recommend that you disable quiesce. In most cases, this option should
be enabled.
Note: To use this option, VMware Tools must be installed on the virtual machine.
Note: To use this option with Linux virtual machines, snapshot quiesce must be enabled in the
Linux guest OS.
Note that virtual machines without vmdk files can occur in a vCenter SRM environment. If a
replicated virtual machine has never been active, it is in passive mode and may have no vmdk
file(s).
Note: If this option is enabled and NetBackup does not have access to the vCenter where the
active virtual machine runs: the Query Builder policies run without error; no attempt is made to
back up the virtual machine. For the policies that use manual selection of virtual machines,
backups fail with status 156, because the virtual machine cannot be located.
NetBackup attempts to back up a virtual machine regardless of whether it has vmdk files. If the
virtual machine has no vmdk files, the backup fails with status 156.
Configure NetBackup policies for VMware 82
Backup options on the VMware tabVMware backup options
Configuration Description
parameter
Post vCenter Enables NetBackup to send backup related events to the vCenter server. The events appear in
events vSphere Client under Home > Inventory > Hosts and Clusters, Tasks & Events tab.
See “Viewing NetBackup activity in vSphere Web Client or vSphere Client (HTML5)” on page 155.
The following options are available:
■ All Events: NetBackup posts an event to the vCenter server on each backup success or
failure. This setting is the default.
■ No Events: Disables the Post vCenter events option. NetBackup does not post any events
to the vCenter server.
■ Error Events: NetBackup posts an event to the vCenter server only for backup failures.
See “About the Post vCenter events option (VMware Advanced Attributes)” on page 85.
Multiple This option is disabled by default. If it is enabled, the query rules can select virtual machines from
organizations per different vCloud Director organizations and back them up to the same storage unit.
policy
If you do not want backups of virtual machines from different organizations to be stored on the
same drive, leave this option disabled.
Ignore Instant If this option is enabled (the default): NetBackup skips any virtual machine that was restored with
Recovery VMs Instant Recovery for VMware if the virtual machine is running from a NetBackup NFS datastore.
When the virtual machine data files have been migrated to the production datastore, the virtual
machine can be backed up.
NetBackup identifies Instant Recovery virtual machines according to the following criteria:
If the virtual machine meets all these criteria, it is not backed up if this option is enabled.
If this option is disabled: NetBackup backs up the virtual machine even if it is running from the
NetBackup NFS datastore.
Snapshot retry Sets the number of times the snapshot is retried. The default is 10. The range is 0 to 100.
count
This option and the snapshot time-out and snapshot creation interval provide flexibility in the
creation of snapshots. For most environments, the default values are usually best. In special
circumstances, it may be helpful to adjust these settings. Example considerations are the size
of the virtual machine and the processing load on the VMware server.
Configure NetBackup policies for VMware 83
Backup options on the VMware tabVMware backup options
Configuration Description
parameter
Snapshot timeout Sets a time-out period (in minutes) for completion of the snapshot. The default is 0, which means
(minutes) no time-out.
If snapshots do not complete, set this option to a specific period to force a time-out. Consider
using the snapshot creation interval to retry the snapshot at a later time.
Snapshot Determines the wait time (in seconds) before the snapshot is retried. The default is 10 seconds.
creation interval The range is 0 to 3600.
(seconds)
VMware server Specifies a colon-delimited list of virtual machine servers that NetBackup communicates with for
list this policy. In large virtual environments, you can use this list to improve backup performance:
NetBackup communicates only with the servers that are in this list. For example, exclude from
the list any vCenter or vCloud servers that do not contain virtual machines to be backed up by
this policy. Also, if a duplicate of the virtual machine exists on a different server: the duplicate is
not backed up if it resides on a server that is not included in this list.
Important: IPv6 addresses are not supported in the VMware server list field. Use fully qualified
domain names or host names.
Note: Each host name must match exactly the name as configured in the NetBackup credentials.
Note: Separate the names with a colon (:) not a comma (,).
This option does not affect either of the following: the list of all possible values in the Query Builder
for automatic selection of virtual machines, or browsing of virtual machines for manual selection.
If the list is blank (the default), NetBackup communicates with any servers in the virtual
environment.
Configure NetBackup policies for VMware 84
Backup options on the VMware tabVMware backup options
Configuration Description
parameter
Treat Tags as Tags were introduced with VMware vCenter Version 5.1. The APIs to interface with the tagging
unset if unable to service were not released until VMware vCenter Version 6.0. NetBackup for VMware supports
evaluate the tags that are assigned to virtual machine objects starting with VMware vCenter Version 6.0.
If you have a mixed vCenter environment, such as 5.1, 5.5, and 6.0: you can use this configuration
parameter to modify how NetBackup treats tags for vCenter Version 5.1/5.5. This configuration
parameter also applies to all versions of ESXi hosts whose credentials were added to the Virtual
Machine Servers list.
This option is disabled by default. If you use the tag field in the VMware Intelligent Policy query
and your policy searches for virtual machines across a mixed vCenter environment, note:
NetBackup reports the virtual machines that are discovered from vCenter Server 5.1/5.5 and
ESXi hosts as failed if it needs to evaluate the tag portion of the query to make an include or
exclude decision.
When you enable this option NetBackup treats tags as unset. If you use the tag field in the
VMware Intelligent Policy query and your policy searches for virtual machines across a mixed
vCenter environment, note: NetBackup evaluates the tag part of the query as if no tags were set
on the virtual machines that are discovered from vCenter Server 5.1, 5.5, and ESXi.
Continue VIP
Note: This option applies to VMware Intelligent Policies (VIP) only.
discovery if one
vSphere login When this option is set to Yes: For a VIP policy's discovery job, NetBackup ignores a failed logon
fails to a vCenter and attempts to log on and discover VMs on other vCenters. On any vCenter that
NetBackup can log on to, the VMs that match the VIP policy's query are backed up.
When this option is set to No (the default): If the attempt to log on to a vCenter fails, the discovery
job fails and no VMs are backed up for any vCenters.
See “Using the Activity Monitor to monitor virtual machine backups” on page 153.
Perform snapshot This option is disabled by default. If it is enabled and a quiesced snapshot cannot be created,
without quiescing the snapshot is created without quiescing I/O on the virtual machine. The resulting snapshot is
if quiesced referred to as crash consistent. In this case, you must perform your own analysis for data
snapshots fail consistency in the backed-up data.
Warning: In most cases, Veritas does not recommend enabling this option. NetBackup cannot
guarantee that all required data has been flushed to disk when the snapshot occurs. The data
that is captured in the snapshot may be incomplete.
If this option is disabled, the backup fails if a quiesced snapshot cannot be created.
Configure NetBackup policies for VMware 85
Backup options on the VMware tabVMware backup options
Configuration Description
parameter
VMDK Used to specify the VMDK compression method. When this option is set to none (default)
Compression compression is not used during the backup job.
NetBackup uses the preferred VMDK compression method when it opens VMDKs. Backup jobs
automatically set the compression method to none if NetBackup is unable to read the VMDK
with the preferred method.
See “About the exclude disk options for virtual disk selection” on page 88.
See “Backup options on the VMware tabVMware backup options” on page 73.
See “Configuring a VMware policy from the Policies utility” on page 68.
Note: To post events to vCenter, NetBackup must perform the backup through a
vCenter server. If NetBackup accesses the ESX server directly, the backup
information cannot be displayed in vSphere Client.
Post vCenter events also records the date and time of the last successful backup
of the virtual machine:
Configure NetBackup policies for VMware 86
Exclude Disks tab
■ The date and time appear in vSphere Client on the Summary tab as a custom
attribute under Annotations. The attribute is labeled NB_LAST_BACKUP.
■ The date and time appear in vSphere Web Client on the Virtual Machines
display.
The events can also be viewed with the NetBackup vSphere Web Client plug-in
and the NetBackup vSphere Client (HTML5) plug-in:
See “Viewing NetBackup activity in vSphere Web Client or vSphere Client (HTML5)”
on page 155.
For instructions on installing and using the NetBackup plug-in, see the following
guides:
NetBackup Plug-in for VMware vSphere Web Client Guide
NetBackup Plug-in for VMware vSphere Client (HTML5) Guide
http://www.veritas.com/docs/DOC5332
Option Description
No disks Backs up all virtual disks that are configured for the virtual machine.
excluded
Exclude boot disk The virtual machine's boot disk (for example the C drive) is not included
in the backup. Any other disks (such as D) are backed up. Consider
this option if you have another means of recreating the boot disk, such
as a virtual machine template for boot drives.
See “About the exclude disk options for virtual disk selection”
on page 88.
Note: A virtual machine that is restored from this backup cannot start.
Data files are available in the restored data disks.
Configure NetBackup policies for VMware 87
Exclude Disks tab
Table 5-8 Options on the Exclude Disks tab of the policy (continued)
Option Description
Exclude all data The virtual machine's data disks (for example the D drive) are not
disks included in the backup for this policy. Only the boot disk is backed up.
Consider this option only if you have a different policy that backs up
the data disks.
See “About the exclude disk options for virtual disk selection”
on page 88.
Note: When the virtual machine is restored from the backup, the virtual
machine data for the data disk may be missing or incomplete.
Perform custom Exclude disks by a VMware Custom Attribute that is applied to a virtual
attribute based machine. The VMware Custom Attribute identifies the disks that you
exclusion want to exclude from backups. If you select this option, also enter the
name of the Custom Attribute. NetBackup then excludes the disks that
are defined in that attribute. The attribute must have comma separated
values of device controllers for the disks to be excluded. For example:
scsi0-0,ide0-0,sata0-0,nvme0-0
http://www.veritas.com/docs/DOC5332
Configure NetBackup policies for VMware 88
Exclude Disks tab
Table 5-8 Options on the Exclude Disks tab of the policy (continued)
Option Description
Specific disks to Exclude a specific disk by selecting the disk controller type and device
be excluded numbers that represent the virtual device node of the disk. Then click
Add. NetBackup adds the controller ID to the list of nodes to be
excluded. Repeat for each disk that you want to exclude.
To delete a disk from the list of disks to exclude, select the disk controller
type and device numbers, and then click Delete. The list is a
comma-separated collection of controller IDs.
Alternatively, you can add or delete specific disks by editing the contents
of the text box in which the excluded disks appear. Wildcard characters
are not supported.
Note: NetBackup does not support the exclude disks options for Replication Director
backups.
Important! The exclude disk options are meant only for the following cases:
■ Exclude boot disk: Consider this option if you have another means of recreating
the boot disk, such as a virtual machine template for boot drives. If Exclude
boot disk is enabled, the policy does not back up the boot disk.
Note: When the virtual machine is restored from the backup, the virtual machine
data for the boot disk may be missing or incomplete.
■ Exclude all data disks: Consider this option if you have a different policy or
other backup program that backs up the data disks. If Exclude all data disks
is enabled in a policy, that policy does not back up the data disks.
Note the following about excluding data disks:
■ If the virtual machine has only one disk (such as C:), that drive is backed
up. It is not excluded.
■ If the virtual machine's boot disk is an independent disk, and the virtual
machine has a separate data disk, the boot disk is backed up. The restored
boot disk however contains no data, because NetBackup cannot back up
the data in an independent disk.
Note: When the virtual machine is restored from the backup, the virtual machine
data for the data disk may be missing or incomplete.
Configure NetBackup policies for VMware 90
Exclude Disks tab
Note: When a virtual machine is restored from the backup, the virtual machine
data for the excluded disk may be missing or incomplete.
■ The attribute on the virtual machine must be populated with comma separated
values of controller IDs for the disks to be excluded.
■ If the custom attribute is not populated or does not exist on the virtual
machine, none of the disks (except independent disks) is excluded.
■ If you remove disks from the custom attribute value between the differential
backups, only those files that changed since the last backup are available
to restore individually. You can restore the entire virtual disk or the VM, in
which case all files are restored including those you cannot restore
individually. After the next full backup, you can restore any of the files
individually.
■ If you add disks to the custom attribute value between the differential
backups, those disks are excluded from the next backup.
Note: When a virtual machine is restored from the backup, the virtual machine
data for the excluded disk may be missing or incomplete.
Caution: Use of the exclude disk options can have unintended consequences if
these rules are not followed.
The following topics contain important guidance on the exclude disk options:
See “Restoring data from the backups that excluded the boot disk or data disks”
on page 91.
Restoring data from the backups that excluded the boot disk or data
disks
If the policy's Excludes Disks option excluded the boot disk or data disks, you can
restore the backed-up data as follows:
■ If Enable file recovery from VM backup was enabled on the backup policy:
You can restore individual files from those portions of the virtual machine that
the Virtual disk selection option did not exclude.
See “Restoring individual filesRestoring individual VMware virtual machine files”
on page 224.
■ If the Excludes Disks option was set to Exclude boot disk: You can restore
the virtual machine and move the restored data disk(s) to another virtual machine.
Note: The type of name to enter depends on the Primary VM identifier setting
on the VMware tab of the policy.
To enter a name, make sure that Browse for Virtual Machines is not selected.
■ Browse for Virtual Machines
Click this option to discover vCenter servers, clusters, data centers, vApps, and
ESX servers (shown in the left pane). You can select virtual machines from a
list (in the right pane).
NetBackup uses the following icons for vSphere objects:
vCenter server
Datacenter
Cluster
Configure NetBackup policies for VMware 93
Browse for VMware virtual machines
vApp
ESX server
The virtual machines that are contained in a VMware vApp are displayed in the
right pane along with other virtual machines.
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 NetBackup cannot obtain the IP address of the virtual machine, the host name
and IP address are displayed as NONE.
Note that virtual machine host names or display names must be unique within
a master server's policies:
See “Virtual machine host names and display names should be unique if VMs
are selected manually in the policy” on page 97.
■ 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.
For NetBackup to access the virtual machines, note the following:
■ The NetBackup master server must have credentials for the VMware vCenter
or ESX server(s).
See “Adding NetBackup credentials for VMware” on page 45.
■ DNS problems may prevent or slow down discovery of the virtual machines.
See “Preventing browsing delays caused by DNS problems” on page 297.
■ To limit the search to particular vCenter or ESX servers, you can create a
BACKUP registry entry as an exclude list. Excluding unneeded servers can
dramatically speed up the search for virtual machines.
Configure NetBackup policies for VMware 94
Browse for VMware virtual machines
See “Limiting the VMware servers that NetBackup searches when browsing
for virtual machines” on page 95.
■ The browsing time out value must not be set too low.
See “Changing the browsing timeout for virtual machine discovery”
on page 299.
Operating System The guest OS system as defined when the virtual machine
was created.
Configure NetBackup policies for VMware 95
Limiting the VMware servers that NetBackup searches when browsing for virtual machines
Powered The power on/off status of the virtual machine when it was
last discovered.
RDM Status Shows whether the virtual machine has a physical disk in
raw device mapping mode (RDM) or has an independent
drive.
Change Tracking Support Shows whether the virtual machine supports the VMware
Changed Block Tracking feature (for BLIB). Changed
Block Tracking requires ESX server 4.0 and a virtual
machine at vmx-07 or later.
Virtual Center Name The vCenter server that manages the ESX server (also
appears in the left pane).
The virtual machines you selected are listed in the Clients tab.
machines on one of the ten vCenter servers, browsing virtual machines on all ten
servers is unnecessary.
To speed up browsing, you can exclude particular VMware servers from the search.
When it probes the network for virtual machines, NetBackup queries only the
VMware servers that are not named in the exclude list for the backup-host.
Use one of the following procedures, depending on the platform of the backup host
(Windows or Linux).
To limit the VMware servers that NetBackup discovers, per Windows backup
host
1 On the Windows desktop of the backup host, click Start > Run and enter
regedit.
2 To be on the safe side, make a backup of the current registry (File > Export).
3 Go to HKEY_LOCAL_MACHINE > SOFTWARE > Veritas > NetBackup >
CurrentVersion > Config and create a key called BACKUP.
4 Right-click in the right pane and click New > String Value. Enter
excludeVMservers as the name.
Note: The exclude list is used on the next backup. If any bpfis processes are
running, the exclude list has no effect on them.
The exclude list applies only to this backup host. The servers are not queried
when NetBackup browses for virtual machines to list on the policy's Browse
for Virtual Machines dialog of the NetBackup Administration Console.
Configure NetBackup policies for VMware 97
Virtual machine host names and display names should be unique if VMs are selected manually in the policy
To limit the VMware servers that NetBackup discovers, per Linux backup host
1 On the Linux backup host, create (or open) the following file:
/usr/openv/netbackup/virtualization.conf
[BACKUP]
"excludeVMservers"="server1,server2,server3"
virtual machine named VM1 can exist in datacenter A. Another virtual machine
(also named VM1) can exist in datacenter B, on the same vCenter server.
Identically named virtual machines can present a problem for any policies that are
configured as follows:
■ The master server's policies use the Select manually option on the Clients tab
to select the VMs for backup.
■ The Primary VM identifier option on the VMware tab identifies VMs by their
host names or display names.
These policies may back up a different but identically named VM, instead of the
VM that you selected. In that case, the VM that you selected is not backed up. For
these policies to work, the virtual machines' display names or host names must be
unique.
Consider the following options:
■ For manual policies that identify VMs by display name or host name, change
the VM names so that each VM has a unique host name or display name.
■ As an alternative, configure the policies' Primary VM identifier option to identify
the VMs by their UUIDs instead of by host name or display name. Use the type
of UUID that is appropriate for your virtual machine environment.
See “Primary VM identifier options (VMware)” on page 76.
■ Instead of policies with manual-selection, use VMware Intelligent policies to
select the VMs through a query. Even if the Primary VM identifier option is set
to host name or display name, NetBackup identifies each VM by its UUID.
See “Browse for VMware virtual machines” on page 91.
■ The display names of the virtual machines are different from the host names.
In this case, delete the host name entries on the Clients tab and browse the network
to select the virtual machines by display name.
See “Browse for VMware virtual machines” on page 91.
Note: When creating virtual machines, use the same name for both host name and
display name. If the Primary VM identifier is changed, the existing entries on the
Clients tab still work.
If the policy selects virtual machines automatically, refer to the following topic:
See “Effect of Primary VM identifier parameter on Selection column in Test Query
results” on page 142.
Note: Individual file recovery is supported from full backups and from incremental
backups, as long as the Enable file recovery from VM backup policy option is
enabled.
Note: Make sure that the virtual machines to back up are time synchronized with
the backup host. Otherwise, some changed data may not be included in the backup,
depending on the clock differential between the backup host and the virtual machine.
Note: For incremental backups, you do not have to configure the client on the
VMware backup host for timestamps. The VMware policies automatically default
to the use of timestamps.
Note: Restore of selected files from a backup of the full virtual machine is not
supported if the virtual machine contains Storage Foundation Volume Manager
volumes.
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.
Limit the backup list to the virtual If some of your virtual machines are occasionally
machines that are currently turned on turned off, NetBackup can be configured to
automatically exclude those from the backup list.
Among the virtual machines it discovers,
NetBackup backs up only the virtual machines that
are turned on.
Back up virtual machines based on Examples of logical boundaries are folders, vApps,
logical boundaries templates, and resource pools. For example, a
query rule can select all the virtual machines in a
particular folder, so the policy backs up only those
virtual machines.
Back up virtual machines based on NetBackup can include or exclude virtual machines
VMware tags based on the user assigned tags.
that virtual machine. If those tags exist on the vCenter Server, they are recreated
when the virtual machine is restored. More information about this feature is available.
See “Notes and limitations for the backup and restore of VMware tag associations”
on page 42.
See “How NetBackup handles VMware tag associations at restore” on page 230.
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 a VMware Intelligent Policy 105
Important notes on automatic virtual machine selection
Rule Description
Powerstate Equal poweredOn NetBackup selects only the virtual machines that are
currently turned on.
Powerstate Equal poweredOn NetBackup selects only virtual machines that are
AND Tag Equal "Production" currently powered on with the "Production" tag.
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.
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 inadvertently 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.
Note! Explanation
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
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.
See “Using the Activity Monitor to monitor virtual machine backups” on page 153.
Note! Explanation
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 “NetBackup requirements for automatic virtual machine selection” on page 108.
See “Configuring a VMware policy from the Policies utility” on page 68.
Set rules for virtual machine selection On the policy Clients tab, click Select automatically through VMware
in the policy Query Builder Intelligent Policy query.
Choose a host for virtual machine selection (default is the VMware backup
host).
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.
See “Using the Activity Monitor to monitor virtual machine backups” on page 153.
A procedure is available.
See “Configuring automatic virtual machine selection” on page 112.
Option Description
Select manually Click this option and click New to manually enter virtual machines names, or to browse and
select them from a list.
Select automatically Click this option to allow NetBackup to automatically select virtual machines for backup based
through VMware on the rules that you enter in the Query Builder.
Intelligent Policy
query
Enable vCloud Enables backup of the virtual machines that reside in a vCloud environment. Requires the
Director integration automatic selection of virtual machines.
With this option, the policy selects for backup only the virtual machines that vCloud manages:
it skips the virtual machines that are not in vCloud.
NetBackup host to This host discovers virtual machines and automatically selects them for backup based on
perform automatic your query rules. The resulting list determines which virtual machines are backed up.
virtual machine
To designate your media servers as discovery hosts, select Backup Media Server from the
selection
pull-down.
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 further defines 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 Mode Places the Query Builder in Advanced Mode for manual entry of rules.
Option Description
Basic Mode 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.
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.
Reuse VM selection Sets the refresh rate of an internal cache of the query results. NetBackup uses the cache to
query results for: determine which virtual machines to select at the time of the backup. The cache speeds up
the selection of virtual machines without burdening the vCenter server at each scheduled
backup.
A faster cache refresh rate synchronizes the cache with the changes recorded in vCenter,
such as the addition or removal of virtual machines. However, each cache refresh consumes
vCenter resources.
With a slower refresh rate, new virtual machines may not be included immediately in the next
backup. New or changed virtual machines are included when the cache is refreshed. Note
that fewer vCenter resources are consumed with a slower refresh rate.
The default is 8 hours. For 8 hours, NetBackup uses the cache and does not attempt to
rediscover virtual machines. Changes to the virtual environment do not affect the cache
during that period. After 8 hours, the next execution of the policy causes NetBackup to
rediscover virtual machines. If any changes match a rule in the query, the list of selected
virtual machines is modified accordingly.
Note: The cache is refreshed before the next scheduled backup whenever the policy is
changed and saved.
More information is available on the Reuse VM selection query results for: option:
See “About the Reuse VM selection query results option” on page 373.
Configure a VMware Intelligent Policy 112
Configuring automatic virtual machine selection
Figure 6-1 Policy Clients tab for automatic selection of virtual machines
For the Value(s) field: Click the folder icon to browse for values, enter the value
manually, or in some cases use the Value(s) drop-down (as in this example).
The characters you enter manually in the Values field must be enclosed in
single quotes or double quotes. Note that browsing for values may take some
time in large virtual environments.
See “Query Builder field reference” on page 129.
7 Click the plus sign to add the rule to the Query pane.
Configure a VMware Intelligent Policy 115
Editing an existing query in Basic Mode
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 into the proper location.
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 117.
See “Order of operations in queries (precedence rules)” on page 122.
See “Parentheses in compound queries” on page 124.
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.
Table 6-7 provides the examples with AND and OR.
Query Description
Displayname Contains "vm1" This query selects any virtual machine that has either vm1 or vm2 in its
display name. For example, this query selects both "seabizvm1" and
OR Displayname Contains "vm2"
"seabizvm2" for backup.
vCenter Equal "vCenterServer_1" This query is very specific. Virtual machines with the host names that contain
"manu" are included in the backup only if: they reside in vCenter server
AND Datacenter Equal "dc_A"
"vCenterServer_1", datacenter "dc_A", and ESX server "prod".
AND ESXserver Equal "prod"
The virtual machines that do not reside in that hierarchy are not included.
AND VMHostName Contains "manu" For example: if a virtual machine resides in "vCenterServer_1" and datacenter
"dc_A", but not in ESX server "prod", that virtual machine is not included.
vCenter Equal "vCenterServer_1" This query uses the same keywords and values, but combines them with
OR. The result may be a much larger list of virtual machines.
OR Datacenter Equal "dc_A"
A virtual machine that meets any of these rules is included:
OR ESXserver Equal "prod"
■ Any virtual machines in vCenter "vCenterServer_1". Their host names,
OR VMHostName Contains "manu"
datacenter, or ESX server do not matter.
■ Any virtual machines in datacenter "dc_A". Their host names or server
do not matter.
■ Any virtual machines in ESXserver "prod". Their host names, datacenter,
or vCenter server do not matter.
■ Any virtual machines with a host name that contains "manu". Their server
or datacenter do not matter.
To use the Query Builder, you must click Select automatically through VMware
Intelligent Policy query on the Clients tab.
Another topic is available on the difference between AND and OR in a query.
See “AND vs. OR in queries” on page 117.
No query rules specified (Query pane is empty) All virtual machines are added to the backup list. Exceptions are
those that 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.
powerstate Equal "poweredOn" Any virtual machine that is turned on is added to the backup list.
VMGuestOS Equal "windows7Guest" All virtual machines with a guest OS of Windows 7 are added to the
backup list.
DisplayName AnyOf "grayfox7”,"grayfox9" The virtual machines named "grayfox7”and "grayfox9" are added to
the backup list. (Note that each value must be enclosed in its own
quotes, with a comma in between.)
powerstate Equal "poweredOn" In datastore Storage_1: any virtual machine that is turned on and
has a guest OS of Red Hat Linux 4 is added to the backup list.
AND Datastore Equal "Storage_1"
vCenter Equal "vCenterServer_1" In the vCenter server vCenterServer_1, virtual machines that are in
ESX servers with names containing "prod" are added to the backup
AND ESXserver Contains "prod"
list.
Cluster Equal "VMcluster_1" In cluster VMcluster_1, all virtual machines with the host names that
contain "Finance", in ESX servers ESX_1, ESX_2, ESX_3, are added
AND ESXserver AnyOf
to the backup list.
"ESX_1","ESX_2","ESX_3"
VMFolder StartsWith "Prod" For any folder whose name starts with "Prod" or whose name is not
"VM_test", add its virtual machines to the backup list.
OR VMFolder NotEqual "VM_test"
Configure a VMware Intelligent Policy 120
The IsSet operator in queries
Examples with IsSet See “The IsSet operator in queries” on page 120.
Datacenter Contains "prod" AND Tag Equal This query selects any virtual machine where the Datacenter contains
"Finance" "prod" and the user-specified tag is "Finance".
Datacenter Equal "prod" AND NOT Tag Equal Selects virtual machines where Datacenter is "prod" but excludes
"Test" any virtual machines that have the user-specified tag "Test".
Click Advanced to see the query rule in Advanced Mode. Only Advanced Mode
supports the use of parentheses for grouping sets of rules.
See “Using the Query Builder in Advanced Mode” on page 116.
See “Configuring automatic virtual machine selection” on page 112.
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 a VMware DNS name.
AND VMDNSName IsSet
EXCLUDED: Any virtual machines that do not have a VMware DNS Name.
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 a host name.
AND VMHostName IsSet
EXCLUDED: Any virtual machines that do not have host names.
First policy VMHostName IsSet This policy backs up all virtual machines that have a
host name. Any virtual machines that do not have a
Primary VM identifier
host name are excluded from the backup.
parameter: VM hostname
Second policy NOT VMHostName IsSet This policy backs up all virtual machines that do not
have a host name but that do have a valid display name.
Primary VM identifier AND VMHasVDSName Equal
Any virtual machines that do not have a host name or
parameter: VM display name 'TRUE'
a valid display name are excluded from the backup.
Third policy NOT VMHostName 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 NOT VMHasVDSName
the virtual machines that do not have a host name or a
parameter: VM UUID Equal 'TRUE'
valid display name, but that do have a UUID.
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 142.
See “The basics of a NetBackup query rule” on page 104.
x Equal y Is x equal to y 4
Note: Only the Query Builder's Advanced Mode supports the use of parentheses.
ESXServer Equal "ESX001" OR Folder All virtual machines under ESX001 (regardless of power state), and virtual
Equal "FolderEngA" AND powerstate machines under FolderEngA that are turned on
Equal ON
To select only the virtual machines that are turned on in the ESX server and
in the folder, use parentheses (see next example).
(ESXServer Equal "ESX001" OR Folder All the virtual machines that are turned on in ESX001 and in FolderEngA.
Equal "FolderEngA") AND powerstate
Equal ON
Res/ResourcePool_1
VM1
VM2
/ResourcePool_2
VM3
VM4
/ResourcePool_3
VM5
VM6
where ResourcePool_1 contains virtual machines VM1 and VM2, and so forth.
The following table shows the query results with the Contains, Equal, StartsWith,
and EndsWith operators. (Other operators can be used.)
Note: If you want the query to include all virtual machines in a hierarchy of nested
resource pools, do not use Equal as the Operator.
Resourcepool Contains "Res/ResourcePool_1" Includes all the virtual machines in the three resource
pools (VM1 through VM6).
Resourcepool Equal "Res/ResourcePool_1" Includes only the virtual machines that are in
ResourcePool_1 (VM1, VM2). Virtual machines in the
sub-pools are not included (VM3 through VM6).
Resourcepool Equal "Res/ResourcePool_1/ResourcePool_2" Includes only the virtual machines that are in
ResourcePool_2 (VM3, VM4).
Configure a VMware Intelligent Policy 126
Query rules for datacenter folders (host folder)
Resourcepool StartsWith "Res/ResourcePool" Includes all the virtual machines in the three resource
pools (VM1 through VM6).
Folder_1
ESX1
ESX2
subfolder_A
ESX3
ESX4
subfolder_B
ESX_5
ESX_6
If you want NetBackup to select all the virtual machines within the top-level folder
and any subfolders, use the Contains or StartsWith operator. For example:
HostFolder Contains "Folder_1"
Configure a VMware Intelligent Policy 127
Query rules for duplicate names
Note: If you want the query to include all virtual machines in the hierarchy of folders,
do not use Equal as the Operator.
If you want NetBackup to select the virtual machines within a subfolder only (such
as subfolder_A), use the Contains or Equal operator. For example:
HostFolder Equal "Folder_1/subfolder_A"
In this case, NetBackup includes only the virtual machines that reside on servers
ESX3 and ESX4.
For host folders, these operators work the same as they do for resource pools. For
further query builder examples, refer to the following topic (substitute host folder
for resource pool in the examples):
See “Query rules for resource pools” on page 125.
Note: If an ESX cluster is not contained within a folder and you click the browse
for values button: The ESX cluster name appears in the Select From List dialog.
Folder_1
ESXi_prod
VM_1
Folder_2
ESXi_mrkt
VM_1
Note: To back up both of these virtual machines from the same policy, include both
of these rules in the policy, as follows:
Instead of Equal, you can use other field values, such as Contains.
See “Query rules for datacenter folders (host folder)” on page 126.
from a vCenter Server and tags are not used in the query then tag metadata is
not collected from that vCenter Server.
■ Example 1: Tag Equal "Production" OR Powerstate Equal poweredOn
■ Example 2: Powerstate Equal poweredOn OR Tag Equal "Production"
In Example 1, NetBackup retrieves virtual machine data as well as tag data from
each virtual server for which it has credentials.
In Example 2, NetBackup retrieves virtual machine data for each virtual server
for which it has credentials. But NetBackup only needs to retrieve tag data for
virtual machines where the Powerstate is not equal to poweredOn.
Table 6-14 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.
Field Selects a parameter on which to build the rule. Select one from the list
(scroll down for additional parameters).
You can type the first character to speed up selection. For example,
on entering “d”, the list moves to first entry starting with "d". Another
entry of "d" moves through the list to the next entry starting with "d".
The selected entry is automatically filled in.
Table 6-14 Query Builder drop-down options: Join, Field, Operator, Value(s)
(continued)
Field (keywords)
Table 6-15 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 inclusion or exclusion of virtual machines is not determined by the
Field keyword alone, but depends on the rule you construct: the combination of
Join, Field, Operator, and Value(s).
Annotation Alphanumeric The text that is added to virtual machine annotations in vSphere Client.
string
Values are case-sensitive.
Configure a VMware Intelligent Policy 131
Query Builder field reference
Cluster Alphanumeric The name of the cluster (a group of ESX servers) that the virtual
string machine is configured in.
Note also that in VMware, a cluster name need only be unique within
a datacenter path.
DatacenterPath Alphanumeric The folder structure that defines the path to a datacenter. Use this
string option if the datacenter name that you want to filter on is not unique
in your environment.
DatastoreCluster Alphanumeric The name of the datastore cluster that contains the datastores.
string
Values are not case-sensitive.
DatastoreFolder Alphanumeric The name of the folder that contains the datastores.
string
Values are not case-sensitive.
DatastoreNFSPath Alphanumeric The folder structure that defines the path to an NFS datastore. Use
string this option if the NFS host name of the datastore that you want to filter
on is not unique in your environment.
DatastoreType Alphanumeric The type of the datastore. Values are NFS, NFS41, VMFS, vsan, and
string VVOL.
The ESX host name must match the name as defined in the vCenter
server.
HostFolder Alphanumeric The folder path between the datacenter level and a cluster, ESX hosts,
string or a subfolder.
If an ESX cluster is not contained within a folder and you click the
browse for values button, note: The ESX cluster name appears in the
Select From List dialog.
See “Query rules for datacenter folders (host folder)” on page 126.
Network Alphanumeric The name of the network switch (on an ESX server) or distributed
string switch.
NetworkFolder Alphanumeric The name of the folder that contains the network.
string
Values are not case-sensitive.
Resourcepool Alphanumeric The name of the resource pool. (A resource pool is similar to a vApp.)
string
Values are case-sensitive.
if vapp1 has a sub vApp named "vapp2", any virtual machines in vapp1
or vapp2 are included. You cannot make a rule that refers specifically
to vapp2.
vCDIsExpired Alphabetic Expired if the vCloud Director vApp or vApp template is expired.
vCDOrgvDC Alphanumeric The name of the organization virtual datacenter in vCloud Director.
string
Values are not case-sensitive.
The vCenter name that is specified in the Query Builder must match
the name as entered in the Administration Console for NetBackup
credentials. (Media and Device Management > Credentials > Virtual
Machine Servers.)
vCenterVersion Alphanumeric The version of the vCenter Server. For example: 5.1.0, 5.5.0, 6.0.0
string
The possible values of this field are automatically updated and
populated based on the environment. Only the versions of the vCenter
servers that are registered with NetBackup are shown.
VMFolder Alphanumeric The name of the VM folder (within a datacenter), including the path to
string the folder that contains the VMs.
VMGuestOS Alphanumeric The virtual machine guest OS type that is recorded in vSphere Client.
string
Values are case-sensitive.
You can use this keyword to select any virtual machine that is
configured to use more than one datastore.
VMHasRDM Boolean TRUE if the virtual machine uses Raw Device Mapping (RDM).
VMHasSnap Boolean TRUE if a VMware snapshot of the virtual machine is currently active.
VMHasVDSName Boolean TRUE if the virtual machine has a display name that is valid for use
as the host name.
VMHostName Alphanumeric The virtual machine name that is derived from a reverse lookup of its
string IP address.
VMXDatastore Alphanumeric The name of the vmx datastore (sometimes called the vmx directory
string or configuration datastore).
VMXDatastoreFolder Alphanumeric The name of the folder that contains the vmx datastores.
string
Values are not case-sensitive.
VMXDatastoreNFSPath Alphanumeric The folder structure that defines the path to a vmx NFS datastore. Use
string this option if the NFS host name of the datastore that you want to filter
on is not unique in your environment.
VMXDatastoreType Alphanumeric The type of the vmx datastore. Values are NFS or VMFS.
string
Values are not case-sensitive.
Configure a VMware Intelligent Policy 137
Query Builder field reference
[vSphere custom attributes] Alphanumeric The value of a custom attribute that is set in vSphere Client for one or
string more virtual machines.
Note: in vSphere Client, the attribute must have a value for at least
one virtual machine. The attribute type must be Virtual Machine.
Operators
Table 6-16 describes the operators available in the Operator drop-down.
Operator Description
For example: If the ESX servers in the Value(s) field are "ESX01","ESX02,"ESX03", AnyOf
matches any ESX server that has one of those names. If the names of your servers are not
identical to any of the specified values, no match occurs. A server named ESX01A is not a match.
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 UTF-8 collating
sequence.
GreaterEqual Matches any value that is greater than or equal to the specified Value(s), according to the UTF-8
collating sequence.
Configure a VMware Intelligent Policy 138
Query Builder field reference
Operator Description
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 142.
Less Matches any value that is less than the specified Value(s), according to the UTF-8 collating
sequence.
LessEqual Matches any value that is less than or equal to the specified Value(s), according to the UTF-8
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
"flatbox".
Value(s)
Table 6-17 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.
Configure a VMware Intelligent Policy 139
Test Query screen for VMware
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\""
Note: An alternative to the Test Query screen is the nbdiscover command. For
more information, see the NetBackup Commands Reference Guide.
See “Using the Activity Monitor to monitor virtual machine backups” on page 153.
See “Using OpsCenter to report on virtual machine backups” on page 157.
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
Configure a VMware Intelligent Policy 140
Test Query: Failed virtual machines
are not included in the currently running test. You must re-initiate the test to see
the results of your Query Builder changes.
Table 6-18
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: Gives a tally of how many virtual machines were included, excluded, or
failed in the test.
Excluded:
Failed:
See “Using the Activity Monitor to monitor virtual machine backups” on page 153.
See “About automatic virtual machine selection for NetBackup for VMware”
on page 102.
See “Configuring automatic virtual machine selection” on page 112.
If the query rules cannot exclude a virtual machine, and that virtual machine cannot
be selected for backup, it is marked as FAILED. The virtual machine is listed as
not run in the job details log.
For example: the virtual machine does not have the type of name specified by the
Primary VM identifier parameter (such as host name or display name). Or the
virtual machine name contains invalid characters. In any case, a virtual machine
that is listed as FAILED should be investigated: it may be one that you want to back
up.
To see the reason for the failure, click on the virtual machine in the Test Query
Results. An explanation appears at the bottom of the screen.
For example:
Explanation: The virtual machine that is listed as Ubuntu-vS in the example does
not have a VMware host name. In the NetBackup policy, on the VMware 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.
You can fix this problem in a couple of ways:
■ Use vSphere Client to configure a host name for the virtual machine.
■ To exclude the virtual machines that have no host name, construct a query with
the IsSet operator.
Configure a VMware Intelligent Policy 142
Effect of Primary VM identifier parameter on Selection column in Test Query results
Table 6-19 Effect of Primary VM identifier parameter and query rules on test
query results
VM hostname VMHostName Contains "VM" INCLUDED: Any virtual machines with a host name that
contains "VM". Since the Primary VM identifier parameter tells
NetBackup to select the virtual machine by host name, it can
back up the virtual machines.
Table 6-19 Effect of Primary VM identifier parameter and query rules on test
query results (continued)
VM hostname Displayname Contains "VM" INCLUDED: Any virtual machines that have a host name and
that have a display name that contains "VM".
VM hostname Displayname Contains "VM" INCLUDED: Any virtual machines that have a host name and
that have a display name that contains "VM".
AND VMHostName IsSet
EXCLUDED: All other virtual machines. The IsSet rule means
that if a virtual machine does not have a host name, it is
excluded.
AND VMHostName IsSet ■ Any virtual machines that have a host name and that have
a display name that contains "VM".
OR Annotation Contains "test"
■ Any virtual machines without a host name that have an
AND NOT VMHostName annotation that contains "test".
IsSet
EXCLUDED: All other virtual machines.
VM display name Displayname Contains "VM" INCLUDED: Any virtual machines with the display names that
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.
VM display name VMHostName Contains "VM" INCLUDED: Any virtual machines that have a display name
and that have a host name that contains "VM".
Note: The Query Builder's Reuse VM selection query results for option does not
affect the display of virtual environment changes in the Query Builder. The reuse
option determines how long NetBackup reuses the current backup list for future
executions of the policy.
2 Enter a new dword line under [BACKUP] to set the number of seconds for the
refresh. For example:
[BACKUP]
"xmlCacheLimit"=dword:15
Note: If the file already contains a [BACKUP] line, do not add another [BACKUP]
line. Any other lines that already exist under [BACKUP] should remain as they
are.
Table 7-1 Options for reducing the virtual machine backup size
Option Description
Block level BLIB reduces the size of backups (full and incremental) by tracking block-level changes. Only
incremental backup the blocks that have changed since the last full or incremental are included in the backup. For
(BLIB) incremental backups, this option applies to cumulative and to differential backups.
BLIB works with VMware’s Changed Block Tracking in vSphere to track block-level changes
in the virtual machine.
The Enable block-level incremental backup option is enabled by default on the NetBackup
policy VMware tab. NetBackup uses BLIB for storage optimization when the backup runs.
Note: The first backup you run with BLIB must be a full backup.
Note: If you used vSphere Client to manually create a VM snapshot and that snapshot is
currently active, you may have to delete the snapshot.
Exclusion of deleted Reduces the size of virtual machine backups by excluding any deleted sectors in the file system
blocks. on the virtual machine.
To enable this option, click Exclude deleted blocks on the policy VMware tab.
Backup of entire virtual Backs up only the blocks that have changed since the .vmdk was
machine, with full created. Note that the blocks that are not initialized are excluded
schedule from the backup.
Backup of entire virtual Backs up only the blocks that have changed since the last backup,
machine, with as follows:
incremental schedule
■ For cumulative incrementals, BLIB backs up only the blocks
that changed since the last full backup.
■ For differential incrementals, BLIB backs up only the blocks
that changed since the previous backup of any kind.
In this case, NetBackup cannot enable BLIB for the virtual machine. You must
delete the vSphere Client snapshot. Then, when the NetBackup policy runs, BLIB
is enabled.
More information is available on NetBackup block-level backups:
See “About reducing the size of VMware backups” on page 147.
See “Block-level backup (BLIB): full vs incremental” on page 148.
To delete a vSphere Client snapshot
1 In the vSphere Client interface, right-click on the virtual machine and select
Snapshot > Snapshot Manager.
2 Select the snapshot and click Delete.
3 To back up the virtual machine with BLIB, you can now run a NetBackup policy
that uses Enable block-level incremental backup.
NetBackup backups from this policy continue to use storage optimization, even
if you manually create a snapshot of the virtual machine using vSphere Client.
See “Configuring a VMware policy from the Policies utility” on page 68.
Chapter 8
Back up virtual machines
This chapter includes the following topics:
3 To trace the discovery job to the virtual machine backup jobs, note the Job ID
and the Parent Job ID columns.
In this example, the discovery job is 119. Job 119 started job 120 (Snapshot).
Job 120 started job 121 (Backup).
4 Right-click on the job row and click Details.
On the Job Details screen, click the Detailed Status tab for more information
on the job.
5 If a column is not displayed in the Activity Monitor, or to re-arrange the columns,
do the following:
■ Right-click anywhere in the Jobs pane and click Columns > Layout.
■ Click the row for the heading that you want to display, hide, or re-arrange
(such as Parent Job ID).
See “Limit jobs per policy on the Attributes tab (for VMware)” on page 72.
See “Restarting jobs individually in the Activity Monitor” on page 155.
Back up virtual machines 155
Restarting jobs individually in the Activity Monitor
Make sure that the policy's Post vCenter events option is enabled:
See “VMware - Advanced Attributes dialog” on page 81.
To view backup events and the last backup time in vSphere Web Client
1 Open vSphere Web Client or vSphere Client (HTML5).
2 Go to Home > Events.
Back up virtual machines 156
Viewing NetBackup activity in vSphere Web Client or vSphere Client (HTML5)
Type The types are Information for a successful operation, and Error
for a failed operation.
4 To view backup events for a particular object (such as ESX host or VM), select
the object and do the following:
■ Click the Monitor tab.
Back up virtual machines 157
Using OpsCenter to report on virtual machine backups
http://host.domain/opscenter
See “Using the Activity Monitor to monitor virtual machine backups” on page 153.
See “Backing up virtual machines” on page 151.
Chapter 9
Use Accelerator to back
up virtual machines
This chapter includes the following topics:
■ About reporting the amount of Accelerator backup data that was transferred
over the network
made within a virtual machine. Only the changed data blocks are sent to the
NetBackup media server, to significantly reduce the I/O and backup time. The media
server combines the new data with previous backup data and produces a traditional
full NetBackup image that includes the complete virtual machine files.
Note: Accelerator is most appropriate for virtual machine data that does not
experience a high rate of change.
See “How the NetBackup Accelerator works with virtual machines” on page 161.
VMware CBT may occasionally reset tracking of file changes, such as after a
power failure or hard shutdown. In that case, for the next backup NetBackup
reads all the data from the vmdk files and the backup takes longer than expected.
If deduplication is enabled, the deduplication rate is lower than expected.
For more information on CBT, see the following VMware article:
Changed Block Tracking (CBT) on virtual machines (1020128)
■ Supports the disk storage units that have the following storage destinations:
■ Cloud storage. Storage that a supported cloud storage vendor provides.
■ NetBackup Media Server Deduplication Pool. In addition to NetBackup media
servers, NetBackup 5200 series appliances support Media Server
Deduplication Pool storage.
■ Qualified third-party OpenStorage devices.
To verify that your storage unit supports Accelerator, refer to the NetBackup
hardware compatibility list for the currently supported OST vendors:
NetBackup Master Compatibility List
■ It is recommended that you not enable Expire after copy retention for any
storage units that are used with storage lifecycle policies (SLP) in combination
with Accelerator. The Expire after copy retention can cause images to expire
while the backup runs. To synthesize a new full backup, the SLP backup needs
the previous backup image. If the previous image expires during the backup,
the backup fails.
■ Update the NetBackup device mapping files if needed.
The NetBackup device mapping files contain all storage device types that
NetBackup can use. To add support for the new devices or upgraded devices
that support Accelerator, download the current device mapping files from the
website.
See the NetBackup Administrator's Guide Volume I for information on the device
mapping files and how to download them.
■ Storage unit groups are supported only if the storage unit selection in the group
is Failover.
■ Supports the full backups and incremental backups. Every Accelerator backup
(from a full schedule or incremental schedule) results in a complete image of
the virtual machine.
■ You can use incremental backups (cumulative or differential) as follows: To
reduce the file-mapping overhead and to reduce the number of files that are
recorded in the NetBackup catalog. Cumulative backups may involve more
file-mapping because they do not use the random indexing method to determine
Use Accelerator to back up virtual machines 163
Accelerator forced rescan for virtual machines (schedule attribute)
which files have changed. In some cases, differential backups may be faster
than cumulative backups.
■ If a backup of the virtual machine does not exist, NetBackup performs a full
backup. On the backup host it also accesses the VMware CBT information. This
initial backup occurs at the speed of a normal (non-accelerated) full backup.
Subsequent Accelerator backups of the virtual machine use VMware Changed
Block Tracking to accelerate the backup.
Note: When you first enable a VMware policy to use Accelerator, the next backup
(whether full or incremental) is in effect a full backup: It backs up all the virtual
machine files that are selected in the policy. If that backup is an incremental, it
may not complete within the backup window. When you upgrade policies to
NetBackup 7.6 or later and enable Accelerator, make sure that the next full
backup completes in the time that is required.
■ If the storage unit that is associated with the policy cannot be validated when
you create the policy, note: The storage unit is validated later when the backup
job begins. If Accelerator does not support the storage unit, the backup fails. In
the bpbrm log, a message appears that is similar to one of the following:
When Accelerator forced rescan is used, all the data on the virtual machine is
backed up. This backup is similar to the first Accelerator backup for a policy. For
the forced rescan job, the optimization percentage for Accelerator is 0. The duration
of the backup is similar to a non-Accelerator full backup.
See “Accelerator messages in the backup job details log” on page 165.
...
When subsequent backups of the virtual machine use Accelerator, the following
messages appear in the job details log:
...
This message is a key trace for Accelerator. In this example Accelerator was
successful at reducing the backup data by 98.7%.
Windows: install_path\NetBackup\logs\bptm
Windows: install_path\NetBackup\logs\bpbkar
Windows: install_path\NetBackup\logs\bpfis
To create the log directories, run the following command on the NetBackup servers
and backup host:
On Windows:
install_path\NetBackup\logs\mklogdir.bat
On UNIX/Linux:
/usr/openv/netbackup/logs/mklogdir
For Accelerator backups, the network-transferred data can appear in the output of
the following NetBackup commands: bpdbjobs, bpimagelist, and bpclimagelist.
Table 9-2 lists the default location of these commands.
bpdbjobs, Windows:
bpimagelist
install_path\NetBackup\bin\admincmd\
UNIX, Linux
/usr/openv/netbackup/bin/admincmd/
bpclimagelist Windows:
install_path\NetBackup\bin\
UNIX, Linux
/usr/openv/netbackup/bin/
The following example uses the bpimagelist command to show the results of a
backup of acmevm2:
bpimagelist -backupid acmevm2
Example output:
In this example, the backup image size in kilobytes is 7799632, and the amount of
data that was transferred over the network is 225792.
You can use the following commands to show the amount of data that was
transferred over the network for an Accelerator backup.
Use Accelerator to back up virtual machines 168
About reporting the amount of Accelerator backup data that was transferred over the network
bpimagelist
bpimagelist -backupid backup_id [-l | -L | -json | -json_compact]
Brackets [ ] indicate optional elements, and the vertical bars | indicate that you can
choose only one of the options within the brackets.
Table 9-3 describes how the network-transferred data field appears in the
bpimagelist output.
"kilobytes_data_transferred": 225792,
"kilobytes_data_transferred":225792,
bpdbjobs
bpdbjobs –jobid job_id -report –most_columns
or
bpdbjobs –jobid job_id -report –all_columns
bpclimagelist
bpclimagelist -client client_name
This command can only show the network-transferred data in the field that normally
shows the Accelerator backup image size. To show the network-transferred data
with this command, you must configure a NetBackup setting:
See “Replacing the Accelerator image size with the network-transferred data in
NetBackup command output” on page 169.
Use Accelerator to back up virtual machines 169
Replacing the Accelerator image size with the network-transferred data in NetBackup command output
Note: The same change occurs in the labeled output of the commands (such as
with the -L option of bpimagelist). For example, the Kilobytes field shows the
transferred data value (225792 in the example) rather than the Accelerator backup
image size.
Incremental Windows
VMware
Accelerator echo REPLACE_IMAGE_SIZE_WITH_DATA_TRANSFERRED = REPLACE_IMAGE_SIZE_
backups FOR_ACCL_INC_VMWARE | install_path\NetBackup\bin\admincmd\bpsetconfig
UNIX, Linux
UNIX, Linux
Incremental Windows
Accelerator virtual
machine backups echo REPLACE_IMAGE_SIZE_WITH_DATA_TRANSFERRED = REPLACE_IMAGE_SIZE_
(VMware and FOR_ACCL_INC_VIRTUAL | install_path\NetBackup\bin\admincmd\bpsetconfig
Hyper-V)
UNIX, Linux
UNIX, Linux
echo "REPLACE_IMAGE_SIZE_WITH_DATA_TRANSFERRED =
REPLACE_IMAGE_SIZE_DISABLED" |
/usr/openv/netbackup/bin/admincmd/bpsetconfig
The following topic provides background on the Accelerator image size vs. the
amount of data that was transferred over the network:
See “About reporting the amount of Accelerator backup data that was transferred
over the network” on page 166.
Chapter 10
Restore virtual machines
This chapter includes the following topics:
■ Restoring VMware virtual machine disks by using Backup, Archive, and Restore
■ If the recovery host is not at the same NetBackup release level as the backup
host
You can ignore the error and click Start Recovery, but note: The restore may
succeed but the folder that contains the vmx file for the newly restored VM has
a different name than the vmx folder of the existing VM. VMware does not
rename this folder when the VM is renamed, but continues to use the existing
folder.
As an alternative, restore the VM to a different location.
■ NetBackup supports backup and recovery of VMware NVRAM files and the
vTPM devices that are associated with virtual machines.
■ A NetBackup 8.3 or later backup or recovery host is required for NVRAM
and vTPM protection. Supported recovery methods include Full VM recovery
and VMware Instant Recovery.
■ NetBackup does not support the backup or restore of NVRAM and vTPM
for the virtual machines whose display names begin with a period ('.'). An
existing VMware limitation prevents downloading or uploading data store
files beginning with a period ('.') to a virtual machine's working directory as
these appear as hidden files.
■ If the virtual machine was backed up by its display name or UUID, and the
display name differs from the host name, note: You must specify the correct
destination client for the restore. Use the Specify NetBackup Machines and
Policy Type dialog in the NetBackup Backup, Archive, and Restore interface.
Restore virtual machines 175
Restore notes and restrictions
See “Invalid client error when you restore files using NetBackup BAR interface
installed on the virtual machine” on page 311.
■ Restore of individual files from a backup of the full virtual machine is not
supported if the virtual machine contains Storage Foundation Volume Manager
volumes.
■ To restore Windows NTFS-encrypted files individually, you must install a
NetBackup client on the virtual machine.
See “NetBackup for VMware best practices” on page 283.
■ If the attempt to restore a full virtual machine fails while using the SAN transport
type, try the NBD transport type instead.
■ Restoring a virtual machine with a transport mode of NBD or NBDSSL may be
slow in the following cases:
■ The virtual machine had many small data extents due to heavy fragmentation.
(A file system extent is a contiguous storage area defined by block offset
and size.)
■ The restore is from a block-level incremental backup and the changed blocks
on the disk were heavily fragmented when the incremental backup occurred.
For faster restores in either of these cases, use the hotadd transport mode
instead of NBD or NBDSSL.
■ VMware does not support the restore of virtual machines directly to an ESX 5.x
server that vCenter manages. To restore the virtual machine, select the vCenter
server as the destination.
As an alternative, you can set up an independent ESX server to be used for
restores. You must add NetBackup restore credentials for that ESX server by
means of the VMware restore ESX server server type.
See “Adding NetBackup credentials for VMware” on page 45.
■ For the SAN transport mode, the job may be slow when you restore to a vCenter
Server. For greater speed, designate a VMware restore ESX server as the
destination for the restore.
See “Adding NetBackup credentials for VMware” on page 45.
■ For the SAN transport mode and a restore host on Windows 2008 R2 or later,
the restore fails if the datastore’s LUN is offline. The detailed status log contains
messages similar to the following:
■ Make sure the status of the SAN disk on the restore host is online (not offline).
Disk status can be checked or changed using the Windows diskpart.exe
utility or the Disk Management utility (diskmgmt.msc). When the disk status
reads online, retry the restore.
■ If multipathing is enabled, make sure all the paths are online.
■ If the virtual machine display name contains unsupported characters, the backup
may succeed but the restore fail. To restore the virtual machine, you must change
the display name to contain supported characters only and retry the restore.
See “NetBackup character restrictions for the Primary VM identifier” on page 37.
■ NetBackup for VMware does not support individual file restore by means of
client-direct restore.
■ On a restore, NetBackup recreates the linking between a hard link and its original
file only in this case: The link file and its target file are restored in the same job.
If each file is restored individually in separate restore jobs, they are restored as
separate files and the link is not re-established.
■ If you restore a VM in vCloud to an expired vApp, the vApp is automatically
renewed and added back into the vCloud organization. If the expired vApp
contained other VMs, all those VMs are also removed from the expired list and
added to the organization.
Note that in vCloud Director, an expired vApp must be renewed before you can
import a VM into that vApp.
■ With a remote connection from a Windows Java GUI that uses the English locale,
the restore of files that have non-ASCII characters may fail.
See the following tech note for further information on how to restore the files:
http://www.veritas.com/docs/TECH75745
■ In VMware vSphere 6.0 U1b and later, a full restore of a virtual machine may
trigger an alarm if the original VM was not deleted. The alarm is a VM MAC
address conflict alarm. This VMware alarm behavior is by design. If there is a
MAC address conflict, VMware eventually changes the MAC address of the new
VM. If you do not want to receive alarms, disable the VM MAC address conflict
alarms in vCenter.
■ See “NetBackup for VMware: notes and restrictions” on page 27.
See “Restore notes and restrictions on Linux” on page 177.
See “If the recovery host is not at the same NetBackup release level as the backup
host” on page 236.
■ To migrate an ext2 or ext3 file system to ext4, note: Make sure to follow the
instructions under "Converting an ext3 file system to ext4" on the following page
of the Ext4 wiki:
https://ext4.wiki.kernel.org/index.php/UpgradeToExt4
If you do not follow these instructions, data in a newly created ext4 file is not
promptly flushed from memory to disk. As a result, NetBackup cannot back up
the data of recently created files in the ext4 file system. (The NetBackup snapshot
captures the file as zero length.)
As a workaround for the file systems that were not correctly migrated, do one
of the following:
■ Run the Linux sync command on the ext4 file system before starting each
backup.
■ Make sure that snapshot quiesce is enabled in the Linux guest OS. Contact
your operating system vendor and VMware for additional information.
■ For Linux virtual machines, NetBackup cannot restore individual files from
software RAID volumes. The files are restored when you restore the entire virtual
machine.
■ The Linux ext4 file system includes a persistent pre-allocation feature, to
guarantee disk space for files without padding the allocated space with zeros.
When NetBackup restores a pre-allocated file (to any supported ext file system),
the file loses its preallocation and is restored as a sparse file. The restored
sparse file is only as large as the last byte that was written to the original file.
Note also that subsequent writes to the sparse file may be non-contiguous.
■ 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.
■ NetBackup supports backup of Linux FIFO files and socket files. NetBackup
does not support restoring FIFO files and socket files individually. 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, the ext2, ext3, and ext4 file systems are supported
for individual file restore. If a partition uses some other file system, the backup
succeeds but files in that partition cannot be individually restored. To allow
NetBackup to present mount points for restore in the Backup, Archive, and
Restore interface, note: The "/" (root) partition must be formatted with ext2, ext3,
or ext4.
Restore virtual machines 179
Restoring the full VMware virtual machine
See “Mount points not available when restoring files from a Linux virtual machine”
on page 311.
■ When you restore Linux files individually to an NFS-shared device on a Linux
virtual machine, NetBackup can only restore the file data and attributes. The
extended attributes cannot be restored to NFS-shared devices.
■ For a virtual machine that is running a Linux guest operating system: When you
restore a virtual machine, the ESX server may assign the virtual machine a new
(virtual) MAC address. After you restart the virtual machine, you may have to
configure its MAC address. For instance, the original MAC address of the virtual
machine may be in a configuration file that has to be updated.
Refer to your VMware documentation for more details.
■ For Linux, additional notes apply.
See “NetBackup for VMware: notes on Linux virtual machines” on page 34.
See “Restore notes and restrictions” on page 173.
See “Restoring the full VMware virtual machine” on page 179.
See “If the recovery host is not at the same NetBackup release level as the backup
host” on page 236.
Server to use for The NetBackup master server that directed the backup
backup and
restores
Source client for The VMware virtual machine that was backed up.
restores
Click Search VM Clients to search or browse for a virtual
machine. Use this option to locate a virtual machine in a large,
multi-layered virtual environment.
Or enter the type of name that was selected for the Primary VM
identifier option on the policy VMware tab. For example, if the
Primary VM identifier option is set to VM host name, enter the
virtual machine's host name.
Destination client This field is ignored. The destination for the restore is specified
for restores in a different screen as explained in a later procedure.
Policy type for The type of policy that made the backup (VMware).
restores
4 Click OK.
5 For the Restore type, select Virtual Machine Backups.
6 You can use the Start date and End date icons to select the date range within
which the backup occurred.
Restore virtual machines 181
Restoring the full VMware virtual machine
8 Click Restore.
The type of dialog that appears depends on whether or not the backup was
enabled for vCloud.
vSphere (not vCloud) See “Virtual Machine Recovery dialog boxes (restore to original location)” on page 182.
See “Virtual Machine Recovery dialogs boxes (restore to alternate location)” on page 188.
vCloud See “Virtual machine recovery dialog boxes for vCloud Director” on page 276.
Note: This information is included for recovery to vSphere only (not for vCloud).
■ 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.
■ Transport modes
Determines how the restore data is sent from the recovery host to the VMware
datastore. The appropriate option depends in part on the type of network that
connects the VMware datastore to the recovery host.
The default is the type that the backup used.
Move Up, Move Down Use these options to change the order in which
NetBackup tries each selected mode. Highlight a mode
and click Move Up or Move Down.
■ If you do not want to keep the existing virtual machine, you can do one of
the following: Remove the existing virtual machine, or log into the ESX server
and remove the directory where the virtual machine resides.
Thin provisioning saves disk space through dynamic growth of the vmdk file.
The vmdk files are no larger than the space that the data on the virtual machine
requires. The virtual disks automatically increase in size as needed.
Verify vSphere server Verifies that NetBackup has the correct credentials to access the vSphere server for the
credential restore.
Verify datacenter path Verifies that NetBackup can access the datacenter that is designated for the restore.
Verify folder path Verifies that NetBackup can access the VM folder that is designated for the restore.
Unsupported non-ASCII Checks for unsupported characters in the VM display name, datastore name, or network
characters name.
Restore virtual machines 188
Restoring the full VMware virtual machine
VM exists overwrite If the original VM exists at the restore destination, verifies that the Overwrite the existing
virtual machine option is selected. If the VM exists and the overwrite option is selected,
the VM is overwritten with the restored VM.
If the original VM does not exist at the restore destination, verifies that the original VM's
vmx configuration file directory does not exist. If the original VM does not exist but the vmx
directory exists, specify a different display name for the restored the VM.
Adequate space on Verifies that the datastore (or datastore cluster) for the restore has enough space for the
datastore (or datastore restored VM's vmx configuration file.
cluster) for configuration
file
VMware connectivity test Verifies that the NetBackup restore host can communicate with the vCenter server.
Datastore/Datastore Verifies that the datastore (or datastore cluster) for the restore has enough space for the
Cluster space available restored VM files.
SAN datastore Verifies that the selected datastore has a compatible block size.
compatibility
For example, this check fails if it detects the following problem: The VM’s vmdk files are
not a multiple of the VMFS block size. In that case, the last partial-block write may fail
during the restore, and the restore job fails with status 2820. The NetBackup job details
log contains messages similar to the following:
In this case, use the NBD or the NBDSSL transport mode when you restore the VM.
Verify unique BIOS UUID If only the SAN transport mode is selected for the restore, determines if a VM with the same
BIOS UUID exists on the specified vCenter.
See “Recovery Destination dialog box (restore to alternate location)” on page 189.
See “Recovery Options dialog box (restore to alternate location)” on page 189.
to use the SAN transport mode, the recovery host must have access to the
appropriate LUNs in the datastore.
■ 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.
■ Transport modes
Determines how the data is sent from the recovery host to the VMware datastore.
The appropriate mode depends on the type of connection between the
NetBackup recovery host and the VMware datastore.
More information is available about these options.
See “Recovery Options dialog box” on page 182.
■ vCenter Server
Specifies the vCenter server for the restored virtual machine. To use the original
vCenter Server (the default), verify that the original vCenter server still exists.
To use a different vCenter Server, consider whether it is compatible with the
virtual machine you want to restore. If you attempt to restore to an earlier vSphere
server that does not support the virtual machine’s hardware version, note: The
VMware Tools component converts the virtual machine to an earlier hardware
version. But the restore may fail if the virtual machine uses devices that only
the later hardware version supports.
In other cases, you can use the Retain original hardware version option on
the Virtual Machine Options dialog.
The restore may finish faster if you use the SAN transport mode with a restore
ESX server (bypassing any vCenter servers).
When choosing a target host for the restore, note the following:
■ If NetBackup has credentials to a vCenter server but does not have
credentials to a restore ESX server, you can perform the restore. NetBackup
uses the vCenter credentials to access the ESX server but does not send
the virtual machine data through the vCenter.
Note: If you use the SAN transport mode for the restore, the restore job
may take longer than expected.
Restore virtual machines 191
Restoring the full VMware virtual machine
The credentials must give NetBackup full access privileges to the vCenter
server.
See “Adding NetBackup credentials for VMware” on page 45.
■ If NetBackup has credentials to a vCenter server as well as to a VMware
restore ESX server, the restore may complete faster. In this case, by default
NetBackup communicates with the restore ESX server during data transfer.
You can select a vCenter folder in which to place the restored virtual machine.
The credentials must give NetBackup full access privileges to the restore
ESXi server.
Select the vCenter Server, and click Change to select the VMware restore
ESXi server.
Note: NetBackup uses the selected vCenter to create the virtual machine.
NetBackup then writes the .vmdk files directly to the ESX server using the
Restore ESX Server credentials to that server.
■ If NetBackup has credentials to an ESX server, you can designate that server
as the target for the restore. The credentials must give NetBackup full access
privileges to the ESX server.
Select None for the vCenter Server, and click Change to select the ESX
server.
■ ESX Server/Cluster
Specifies the ESX server or cluster on which the restored virtual machine is to
reside. To use the original ESX server or cluster (the default), verify that the
original ESX server or cluster still exists.
Click Change to browse for a different ESX server or cluster.
See “Select ESX server dialog box (restore to alternate location)” on page 193.
■ Datacenter
Shows the VMware data center containing the selected ESX server.
■ Folder
A folder is a logical entity within the vCenter that contains VMware objects, such
as datastores, networks, and virtual machines.
Restore virtual machines 192
Restoring the full VMware virtual machine
By default, this field shows the VMware folder that contained the virtual machine
when the virtual machine was backed up. If you select a different ESX server
to which to restore the virtual machine, this field changes to None. You must
then click Change to select a folder within the data center for the restored virtual
machine.
See “Select Folder dialog box (restore to alternate location)” on page 193.
■ Display Name
Specifies the VMware display name for the restored virtual machine. The default
is the display name that the virtual machine had when it was backed up.
The display name must be unique for the vCenter Server where the virtual
machine is restored.
Note: If a virtual machine with this display name already exists at this location
(or at the original location), you are prompted to click Overwrite the existing
virtual machine. You cannot restore the virtual machine if the result is two
virtual machines with the same display name on the same vCenter server.
■ Resource Pool/vApp
Use this option to have the restored virtual machine assigned to either a VMware
resource pool or to a vApp. Resource pools manage the host's CPU and memory.
vApps are logical containers for virtual machines, and also share some
functionality with virtual machines.
■ Datastore/Datastore Cluster
Specifies the VMware datastore or datastore cluster that contains the virtual
machine configuration files. Click Change to make a selection.
This datastore (sometimes called the vmx directory) contains the configuration
files that describe the virtual machine, such as *.vmx files. Active snapshots of
vmdk files are also stored on this datastore.
Note: The Datastore field shows the name of the datastore that contained the
virtual machine data when the virtual machine was backed up. Even if the
datastore was in a datastore cluster, the field shows the name of the datastore,
not the datastore cluster. When the virtual machine is restored, NetBackup
determines how the datastore is currently configured (in a cluster or not) and
configures the virtual machine accordingly.
If this option is not selected, you assign the VMDKs to specific datastores or
datastore clusters in a later dialog (the Storage Destination dialog).
See “Select ESX server dialog box (restore to alternate location)” on page 193.
See “Select Folder dialog box (restore to alternate location)” on page 193.
See “Storage Destination dialog box (restore to alternate location)” on page 194.
Note: Some older ESX servers may not support the version of the virtual machine
that you want to restore. Verify that the ESX server is compatible with the virtual
machine.
See “Select Folder dialog box (restore to alternate location)” on page 193.
See “Storage Destination dialog box (restore to alternate location)” on page 194.
Note: Only datastores and clusters visible to the ESX server are displayed.
Specify Datastore
Type a name and click Search. The list of available datastores and datastore
clusters automatically expands and the nearest match is highlighted.
See “Recovery Options dialog box (restore to alternate location)” on page 189.
Insufficient space The datastore or datastore cluster does not have enough
space to contain the selected .vmdk file.
See “Network Connections and Other Recovery Options dialog box (restore to
alternate location)” on page 195.
Note: On the restored virtual machine, the network adapters are not configured.
Note: Click the Network Names check box to select or unselect all the networks
in the list.
Restore virtual machines 196
About VMware virtual machine disk restore
Use Move Up and Move Down to reorder the networks. The order in the list
determines the order of the corresponding virtual network adapters (NIC cards)
for the virtual machine.
When the virtual machine is backed up, its network connections (physical or
virtual) are recorded in the NetBackup catalog.
For vSphere, NetBackup determines what networks currently exist at the restore
location and lists the network names as follows:
■ If a network that was recorded in the backup catalog for the virtual machine
still exists, it is listed on this screen and automatically selected.
■ If a network is available that was not listed in the NetBackup catalog, it is
listed on this screen but not selected.
■ If a network was recorded in the backup catalog but is not currently available,
it is not listed.
See “Perform Recovery dialog box (restore to alternate location)” on page 196.
To the original VM You can restore the disks to the same VM from which the disks were
backed up. You can either overwrite the original disks or attach the
virtual disks without overwriting the original disks.
To a new VM NetBackup creates a new virtual machine and restores the specified
disks to the new VM. The new VM is intended to be a container for the
restored disks. It does not have enough resources to run most operating
systems. After the restore, you should attach the restored virtual disks
to a VM that can support them and then delete the restore VM.
The following are the general support requirements for virtual disk restore.
■ Sufficient storage must exist for the restore.
■ NetBackup does not support the following virtual machine disk restores:
■ From NetBackup Replication Director for VMware backups.
■ To templates. However, virtual disks from a backup of a VM template can
be restored to a virtual machine.
Note: The NetBackup Administration Console does not support the in-place
disk restore option.
Server to use for The NetBackup master server that directed the backup
backup and
restores
Source client for The VMware virtual machine that was backed up.
restores
Click Search VM Clients to search or browse for a virtual
machine. Use this option to locate a virtual machine in a large,
multi-layered virtual environment.
Or enter the type of name that was selected for the Primary VM
identifier option on the policy VMware tab. For example, if the
Primary VM identifier option is set to VM host name, enter the
virtual machine's host name.
Destination client This field defaults to the same client selected in the Source
for restores client for restores field.
If any backups for the client are within the specified date range, NetBackup
populates the Directory Structure pane and the Contents of... pane with the
information about the most recent backup.
5 In the Restore type drop-down menu on the Restore Files tab, select Virtual
Disk Restore.
The Directory Structure pane changes to show the client name.
Restore virtual machines 199
Restoring VMware virtual machine disks by using Backup, Archive, and Restore
a. On the Actions menu, select Set Date Range > Backup History.
b. In the Backup History dialog box, select the wanted backup and click OK.
8 Click Restore.
The Select Virtual Disks panel of the Restore Virtual Machine Disks wizard
appears.
9 Complete the wizard panels to restore the virtual disks.
See “Select Virtual Disks panel” on page 199.
See “Recovery Destination panel” on page 200.
See “Virtual Disk Destination panel” on page 201.
See “Storage Destination panel” on page 203.
See “Recovery Summary panel” on page 204.
■ Virtual Disks
Select the disks that you want to restore.
If you use the check box in the column header to select all, the wizard selects
only those disks that were included in the backup.
■ File Systems
Select the wanted file systems. When you select a file system, the wizard selects
the virtual disks on which the file system resides.
If you use the check box in the column header to select all, the wizard selects
only those file systems that were included in the backup.
See “Restoring VMware virtual machine disks by using Backup, Archive, and
Restore” on page 197.
b. Optionally, enter a term in the Search box to find a VM on the Virtual Machine
Server and click Search.
Restore virtual machines 202
Restoring VMware virtual machine disks by using Backup, Archive, and Restore
When you select a VM, the wizard populates the Destination details with the
details of that VM.
You can select the power state of the VM after the restore. You also can refresh
Virtual Machine Server details.
See Power on virtual machine after restore and Last update in Table 10-2.
■ New (Temporary) Virtual Machine
You must select the destination details.
See the field descriptions in Table 10-2.
Field Description
Virtual Machine Server The name of the VMware host on which the destination VM
resides or should be created.
Field Description
See “Restoring VMware virtual machine disks by using Backup, Archive, and
Restore” on page 197.
The restore parameters file uses the JavaScript Object Notation (JSON) format to
describe the restore parameters.
The following table identifies the tasks in the process to restore an individual VMware
virtual machine disk or disks. It also includes links to the individual task topics.
Restore virtual machines 205
Restoring VMware virtual machine disks by using NetBackup commands
Step 1 Optionally, determine the ID of the See “Determining the backup image ID
backup image from which to create the from which to restore a VMware virtual
restore parameters file. If you want to use machine disk” on page 205.
a date range to specify the backup image,
you do not have to perform this task.
Step 2 Create the file that describes the See “Creating the VMware virtual
parameters of the restore. You use the machine disk restore file” on page 207.
file as input for the command that
restores the virtual disks.
Step 3 Modify the parameters of the virtual See “Modifying the virtual machine disk
machine disk restore file. You must restore file” on page 208.
modify the file to describe your specific
restore instance.
Step 4 Validate the virtual machine disk restore See “Validating the virtual machine disk
file to ensure that the restore occurs restore file” on page 212.
correctly.
Step 5 Restore the disk or disks. See “Restoring the virtual machine disk
or disks by using the nbrestorevm
command” on page 213.
Note: If you want to use a date range to specify the backup from which to create
the restore parameters file, you can skip this task.
Restore virtual machines 206
Restoring VMware virtual machine disks by using NetBackup commands
This task is part of a larger process that describes how to restore an individual
VMware virtual machine disk or disks.
See “Restoring VMware virtual machine disks by using NetBackup commands”
on page 204.
To determine the backup image ID by using NetBackup Administration Console
1 Use the NetBackup Administration Console Catalog utility to search for the
backup image of the client from which to restore. The Search Results pane
of the Catalog utility shows the backup ID:
2 Continue to the next task in the individual virtual machine disk restore process.
See “Creating the VMware virtual machine disk restore file” on page 207.
To determine the backup image ID by using the bpclimagelist command
1 Invoke the NetBackup bpclimagelist command to display the backups for
the client, as follows:
On UNIX: /usr/openv/netbackup/bin/bpclimagelist -client client_name
-Likelydate -policy policy_name
3 Continue to the next task in the individual virtual machine disk restore process.
See “Creating the VMware virtual machine disk restore file” on page 207.
Restore virtual machines 207
Restoring VMware virtual machine disks by using NetBackup commands
Specify a backup See To create the VMware virtual machine disk restore file by specifying
image ID a backup ID .
Specify a date If you specify a date range, NetBackup uses the most recent backup
range in that date range.
See To create the VMware virtual machine disk restore file by specifying
a date range.
This task is part of a larger process that describes how to restore an individual
VMware virtual machine disk or disks.
See “Restoring VMware virtual machine disks by using NetBackup commands”
on page 204.
To create the VMware virtual machine disk restore file by specifying a backup
ID
1 Create the file that describes the virtual machine disk or disks that you want
to restore by specifying a backup ID, as follows:
On Windows: install_path\NetBackup\bin\nbrestorevm -vmw -C
vm_client -S master_server -backupid value -restorespecout
filename
■ The -backupid value option and argument specifies the backup image
from which to create the file.
■ The -restorespecout filename option and argument specifies the name
of the file.
Restore virtual machines 208
Restoring VMware virtual machine disks by using NetBackup commands
2 Continue to the next task in the individual virtual machine disk restore process.
See “Modifying the virtual machine disk restore file” on page 208.
To create the VMware virtual machine disk restore file by specifying a date
range
1 Create the file that describes the virtual machine disk or disks that you want
to restore by specifying a date range, as follows:
On Windows: install_path\NetBackup\bin\nbrestorevm -vmw -C
vm_client -S master_server -s mm/dd/yyyy hh:mm:ss -e mm/dd/yyyy
hh:mm:ss -restorespecout filename
■ The hh:mm:ss for the start date and the end date are optional.
■ The -restorespecout filename option and argument specifies the name
of the file.
By default, nbrestorevm creates the file in the current working directory.
To create the file in a different directory, specify a pathname for the
filename.
2 Continue to the next task in the individual virtual machine disk restore process.
See “Modifying the virtual machine disk restore file” on page 208.
A text editor With a text editor, you can modify any or all of the fields.
A Veritas provided With the restore_spec_utility.pl Perl script, you can perform
Perl script the following operations:
Examine the script for a description of the options and example usage
statements.
Perl must be installed on the host on which you modify the restore
parameters file. Examine the script to determine which modules are
required; some may require separate installation.
See To modify a VMware virtual machine disk restore file by using the
restore_spec_utility.pl script.
The following table describes some restore scenarios and the values of the fields
that are required to accommodate those scenarios.
Item Description
Restore to a For a restore of virtual disks to a datastore cluster, specify the name of
datastore cluster the datastore cluster in the Datastore field of the
VMwareVirtualDiskDestination section. Do not specify the cluster
in the Path field.
Note: If the restore is to an existing VM, the VMDKs are not located
in the existing datastore path for the VM. They reside in a datastore
path based on the name of the temporary VM used in the restore. The
name of the temporary VM is available in the details for the restore job
in NetBackup.
Restore virtual machines 210
Restoring VMware virtual machine disks by using NetBackup commands
Item Description
■ Specify the name of the VM in the VMName field. The VM must exist
in the target vCenter or ESXi serve; if it does not exist, the restore
fails with status code 2820.
■ Change the value of the AttachDisksToExistingVM field from
No to Yes or, in the case of in-place disk restores,
DeleteAllDisksAndReplace.
■ If a virtual disk to restore exists on the target VM already, configure
the OverwriteExistingDisk field, as follows:
■ To overwrite the original virtual disk and retain the disk UUID,
specify Yes.
■ To restore the virtual disk to the target VM as a new disk, specify
No. VMware assigns a new UUID to the disk. The default is No.
The restore job details show the datastore path of the virtual disk when
it was backed up and after it is restored.
Standalone ESXi To restore to a standalone ESXi hypervisor when the backup was
hypervisor through a vCenter, edit the following fields so that their values are None,
as follows:
■ "vCenterServer": "None"
■ "Folder": "None"
■ "Datacenter" : "None"
Item Description
Other fields Edit any of the other fields so that the values that describe the restore
meet your needs.
This task is part of a larger process that describes how to restore an individual
VMware virtual machine disk or disks.
See “Restoring VMware virtual machine disks by using NetBackup commands”
on page 204.
To modify a VMware virtual machine disk restore file by using a text editor
1 Open the restore file in a text editor.
2 Modify the parameters as necessary, save the file, and then close the editor.
See “VMware virtual machine disk restore file” on page 214.
3 Continue to the next task in the individual virtual machine disk restore process.
See “Validating the virtual machine disk restore file” on page 212.
To modify a VMware virtual machine disk restore file by using the
restore_spec_utility.pl script
1 Invoke the Perl script to modify the restore parameters file as necessary, one
field at a time. Examples of three supported -req_type operations follow:
■ The following is an example of a modify operation to change the VMName
field:
Windows: perl.exe
C:\Progra~1\Veritas\NetBackup\bin\goodies\restore_spec_utility.pl
-req_type modify -file_path restore_filename -field VMName
-value new_vm_name
UNIX: perl
/usr/openv/netbackup/bin/goodies/restore_spec_utility.pl
-req_type modify -file_path restore_filename -field VMName
-value new_vm_name
2 Examine the command output. If the output indicates problems, edit the file to
fix the problems.
3 Repeat steps 1 and 2 until the file is valid.
4 Continue to the next task in the individual virtual machine disk restore process.
See “Restoring the virtual machine disk or disks by using the nbrestorevm
command” on page 213.
■ The -restorespec filename option specifies the name of the file that
contains the parameters of the restore.
Restore virtual machines 214
Restoring VMware virtual machine disks by using NetBackup commands
You can use the nbrestorevm command to generate the file from an existing backup.
How to do so is described in a different topic.
See “Creating the VMware virtual machine disk restore file” on page 207.
The following is an example template of the required file:
{
"ClientType": "VMware",
"ClientName": "VM-client-name",
"RestoreType": "SelectiveDiskRestore",
"BackupImageSelection": {
"MasterServer": "Master-server-name",
"StartDate": "mm/dd/yy hh:mm:ss",
"EndDate": "mm/dd/yy hh:mm:ss",
"BackupId": "clientname_timestamp"
},
"VMwareRestoreParameters": {
"vCenterServer": "vCenter-name-for-restore",
"VMwareRecoveryHost": "Recovery-host-name",
"DefaultDiskProvisioning": "thin",
"TransportMode": "san:hotadd:nbd",
"vmdk_compression": "none",
"VMwareVirtualMachineDestination": {
"VMName": "Restore-vm-name",
"AttachDisksToExistingVM": "No",
"PowerOn": "No",
"Datacenter": "Path-of-Datacenter-for-destination-vm",
"ESX": "Hostname-of-the-ESX-host",
"Folder": "Path-to-destination-VM-folder",
"ResourcePool/Vapp": "Path-of-vApp-or-resource-pool-destination",
"VmxDatastore": ""
},
"VMwareVirtualDiskDestination": [
{
"VirtualDisk" : "/DS1/BackedupVM/BackedupVM.vmdk",
"OverwriteExistingDisk": "No",
"Datastore": "[Datastore-name]",
"Path": "”,
"Provisioning": "thin"
"Controller": "scsi0-0"
},
{
"VirtualDisk": "/DS2/BackedupVM/BackedupVM_1.vmdk",
Restore virtual machines 216
Restoring VMware virtual machine disks by using NetBackup commands
"OverwriteExistingDisk": "No",
"Datastore": "",
"Path": "[datastore_name] MyVm/MyVM_1.vmdk”,
"Provisioning": "eagerzeroed"
"Controller": "scsi0-1"
}
]
"VMwareAdvancedRestoreOptions": {
"DeleteRestoredVMOnError": "No",
"VMShutdownWaitSeconds": 900
}
}
}
The following is an example of the required file for In-place disk restore:
{
"BackupImageSelection": {
"StartDate": "mm/dd/yy hh:mm:ss",
"BackupId": "clientname_timestamp"
"EndDate": "mm/dd/yy hh:mm:ss",
"MasterServer": "Master-server-name",
},
"ClientName": "VM-client-name",
"VMwareRestoreParameters": {
"vmdk_compression": "none",
"VMwareAdvancedRestoreOptions": {
"VMShutdownWaitSeconds": 900,
"DeleteRestoredVMOnError": "No"
},
"VMwareRecoveryHost": "VM-recovery-host-name",
"VMwareVirtualMachineDestination": {
"ResourcePool/Vapp": "Path-of-vApp-or-resource-pool-destination",
"VmxDatastore": "Vmx-datastore-name",
"Datacenter": "Path-of-Datacenter-for-destination-vm",
"AttachDisksToExistingVM": "DeleteAllDisksAndReplace",
"ESX": "Hostname-of-the-ESX-host",
"VMName": "Restore-vm-name",
"Folder": "Path-to-destination-VM-folder",
"PowerOn": "Yes"
},
"DefaultDiskProvisioning": "unknown",
"TransportMode": "nbdssl",
"VMwareVirtualDiskDestination": [],
Restore virtual machines 217
Restoring VMware virtual machine disks by using NetBackup commands
"vCenterServer": "vCenter-name-for-restore"
},
"ClientType": "VMware",
"RestoreType": "SelectiveDiskRestore"
}
The following subsections describe the parameters in the file. The optional sections
or optional fields that you do not want to use must be omitted from the file.
See “About VMware virtual machine disk restore” on page 196.
Global fields
The first section of the file specifies the required information about the client that
contains the disks that you want to restore. The following table describes the fields
in the first, global section:
ClientType The client type as configured in the backup policy. For Vmware virtual machine Required.
disk restore, use VMware.
RestoreType The type of restore. For Vmware virtual machine disk restore, use Required.
SelectiveDiskRestore.
BackupImageSelection
The BackupImageSelection section of the file specifies the information that
NetBackup requires to identify the backup image to restore. If this section is not
specified, NetBackup restores the most recent backup. The following table describes
the fields in the BackupImageSelection section:
MasterServer The fully-qualified domain name of the NetBackup master server to use to query Optional.
the VM details.
If not specified, NetBackup uses the master server that backs up the VM.
StartDate The start date to look for backup images, in mm/dd/yy hh:mm:ss format. If more Optional.
than one backup image exits in the date range, NetBackup selects the most recent
backup.
If not specified, the start date is 6 months earlier than the current date.
Restore virtual machines 218
Restoring VMware virtual machine disks by using NetBackup commands
EndDate The end date to look for backup images, in mm/dd/yy hh:mm:ss format. If more Optional.
than one backup image exits in the date range, NetBackup selects the most recent
backup.
BackupId The ID of the backup image to use for the restore, in clientname_backuptime Optional.
format. The backuptime is the decimal number of seconds since January 1,
1970.
If not specified, NetBackup uses the most recent backup image. If you specify a
StartDate, EndDate, and a valid BackupId, NetBackup restores from the
BackupId image.
VMwareRestoreParameters
The VMwareRestoreParameters section of the file contains the following:
■ The restore parameters of the VM. All of the fields in this section are optional;
however, the section is required because it also contains two required
subsections. See Table 10-7.
■ A VMwareVirtualMachineDestination subsection, which specifies the
destination parameters for the restore.
See the section called “VMwareVirtualMachineDestination” on page 219.
■ A VMwareVirtualDiskDestination subsection, which specifies the disks to
restore and the restore parameters for those disks.
See the section called “VMwareVirtualDiskDestination” on page 221.
■ A VMwareAdvancedRestoreOptions subsection, which specifies parameters to
restore to an existing VM.
See the section called “VMwareAdvancedRestoreOptions” on page 223.
vCenterServer The host name of the destination vCenter for the restore, in the same Optional.
format as specified in the NetBackup Virtual Server credentials.
DefaultDiskProvisioning The default disk provisioning for all of the disks to be restored: thin, Optional.
thick, eagerzeroed, or unknown.
For each disk, you can override this default by specifying a different
Provisioning value in the VMwareVirtualDiskDestination
section of the file.
TransportMode The transport mode combination to use for the restore as specified Optional.
in lowercase, colon separated values: hotadd:nbd:nbdssl:san.
The order of the specification is significant; NetBackup attempts
each method in turn until the restore succeeds. If all methods fail,
the restore fails.
vmdk_compression The vmdk compression type to use for full and selective vmdk Optional.
restores. Vmdk compression types are: zlib, skipz, and fastlz.
VMwareVirtualMachineDestination
The VMwareVirtualMachineDestination section of the file specifies the destination
parameters for the restore. The following table describes the fields in the
VMwareVirtualMachineDestination section. This section is subordinate to the
VMwareRestoreParameters section.
Restore virtual machines 220
Restoring VMware virtual machine disks by using NetBackup commands
VMName The unique display name of the new virtual machine for the Required.
restored disk or disks. The nbrestorevm command adds a
timestamp to the name of the original VM client when it populates
this field. The timestamp is the decimal number of seconds since
January 1, 1970.
PowerOn Whether to turn on the target VM after the restore, as follows: Required.
Datacenter The name of the VMware Datacenter for the virtual disk, in Optional.
pathname format.
ESX The name of the ESX host to which NetBackup should restore the Optional.
virtual machine disks.
Folder The pathname of the VM folder to which NetBackup should restore Optional.
the virtual machine disks.
ResourcePool/Vapp The pathname of the resource pool to which NetBackup should Optional.
restore the virtual machine disks. If the restore is to a vApp, specify
the path of the vApp.
VmxDatastore The name of the Datastore to which NetBackup should restore Optional.
the .vmx configuration file and other VM configuration files. You
may enclose the name in square brackets but do not have to.
DefaultDiskDatastore The name of the Datastore to which NetBackup should restore Optional.
all the virtual disks for in-place disk restore. If not specified,
NetBackup uses the value from the backup. This option is only
used for In-place disk restore and is ignored otherwise.
VMwareVirtualDiskDestination
The VMwareVirtualDiskDestination section of the file is a JSON array that
specifies the disks to restore and the restore parameters for those disks. It can
contain one or more sets of the fields that are described in the following table, one
set per virtual machine disk. A comma must separate fields in a set, and a comma
must separate sets. This section is subordinate to the VMwareRestoreParameters
section.
VirtualDisk The full pathname of the virtual disk to restore. This path must match Required.
exactly the path of the .vmdk file when it was backed up.
OverwriteExistingDisk Whether to overwrite the existing virtual disk or disks on the target VM, Required.
as follows:
■ If the value is Yes, overwrite the original virtual disk and retain the
disk UUID.
■ If the value is No, restore the virtual disk to the target VM as a new
disk. VMware assigns a new UUID to the disk.
Datastore The name of the Datastore that is the destination for the restore. You Optional.
may enclose the name in square brackets but do not have to. (VMware
generates the Datastore pathname using the naming conventions
for the VM.)
If not specified, NetBackup uses the value that is specified in the Path
field. If neither Datastore or Path are specified, NetBackup uses the
Datastore from the backup image.
Path The full pathname to the restore destination for the virtual disk, in the Optional.
following format:
[datastore_name] MyVM/MyVM.vmdk
Provisioning The disk provisioning for this specific disk: thin, thick, eagerzeroed, Optional.
or unknown.
Controller The virtual disk controller to which the disk is attached in the original Optional
VM.
This field is informational only to help you determine which virtual disk
or disks to restore. The value is not used during a restore.
VMwareAdvancedRestoreOptions
The VMwareAdvancedRestoreOptions section of the file specifies parameters to
restore to an existing VM. This section is subordinate to the
VMwareRestoreParameters section.
VMShutdownWaitSeconds For restores to an existing VM, the restore process shuts down Optional.
the target virtual machine before it attaches the disk or disks. The
duration of the shutdown operation depends on the VMware
workload. Use this parameter to specify how long the restore
process should wait for shutdown before giving up on restore.
One-stage process Restore individual files directly to a virtual machine in one of the
following ways:
Two-stage process Restore individual files to a host on which the NetBackup client
software is installed (not to the virtual machine). See the NetBackup
Backup, Archive, and Restore Getting Started Guide on how to
restore to different locations. Then manually copy the restored files
to the virtual machine. (NetBackup does not perform this step.)
Note: Individual file recovery is supported from full backups and from incremental
backups, as long as the Enable file recovery from VM backup policy option is
enabled.
Server to use for The NetBackup master server that directed the backup.
backup and
restores
Source client for The VMware virtual machine that was backed up.
restores
Click Search VM Clients to search or browse for a virtual
machine. This option helps to locate a virtual machine in a large,
multi-layered virtual environment.
Or, enter the type of name that was selected for the Primary
VM identifier option on the policy VMware tab. For example, if
the Primary VM identifier option is set to VM host name, enter
the virtual machine's host name.
Policy type for The type of policy that made the backup (VMware).
restores
Date / time range The time period within which to search for backups.
4 Click OK.
Restore virtual machines 226
Restoring individual filesRestoring individual VMware virtual machine files
8 Click Restore.
9 On the Restore Marked Files dialog: If NetBackup client software is not
installed on the destination virtual machine, select one of the following:
■ Restore everything to its original location
■ Restore everything to a different location (maintaining existing
structure)
■ Restore individual directories and files to different locations
Destinations must be entered as UNC path names that refer to shared
drives on the virtual machine. For example, to restore the file
E:\folder1\file1 on virtual machine vm1, enter the following destination:
\\vm1\e$\folder1\file1
Table 10-11 Options for individual file restore on the Restore Marked Files
dialog box
Option Description
Table 10-11 Options for individual file restore on the Restore Marked Files
dialog box (continued)
Option Description
Restore everything to Restores the folders and files to the location where they resided
its original location when the backup occurred.
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.
Restore individual Restores the folders and files to individually designated locations.
directories and files To designate a restore destination for each source folder, double
to different locations click on its row. Use the following dialog to enter or browse for the
destination:
\\vm1\e$\folder1\file1
Options For a description of the restore options, see the NetBackup help
for the Backup, Archive, and Restore interface.
Restore virtual machines 230
How NetBackup handles VMware tag associations at restore
Table 10-11 Options for individual file restore on the Restore Marked Files
dialog box (continued)
Option Description
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.
Override default 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.
vCenter1 vCenter2
Platform Services
Controller
VM1
Tag A (B)
Identifier: 135
Tag A
Identifier: 246
vCenter3 VM2
Tag A
Identifier: 246
Figure 10-1 shows a sample VMware environment with multiple vCenter servers,
virtual machines, and tags. Assume that a backup of all virtual machines completes
successfully with a NetBackup status code 0.
Restore virtual machines 232
Browse and search virtual machines for restore
■ If you restore VM1 to either vCenter1 or vCenter2, it is restored with tag A and
the restore exits with a NetBackup status code 0. This behavior is true both for
a restore to the same name as well as an alternate client restore. This behavior
is the result of VMware replicating tags across all vCenter servers that are
attached to a single PSC.
■ If you restore VM1 to vCenter3, it is restored without any tags. The restore exits
with a NetBackup status code 1. This behavior is because VMware uses the
internal identifier. While there is a tag name A in vCenter3, the internal identifier
for tag A does not match the internal identifier that is restored. This behavior is
true both for a restore to the same name as well as an alternate client restore.
■ After the NetBackup backup, if tag A is renamed to B, when VM1 is restored to
either vCenter1 or vCenter2 it is restored with tag B. The restore exits with a
NetBackup status code 0. This behavior is because VMware uses the internal
identifier, and now associates this identifier with the tag name B.
■ After the NetBackup backup, if tag A is deleted, when VM1 is restored to either
vCenter1 or vCenter2 it is restored without any tag associations. The restore
exits with a NetBackup status code 1.
If for any reason the backup of the virtual machines in Figure 10-1 did not
successfully capture the tag associations, the backup exits with NetBackup status
code 0. The reasons for failing to capture tag associations appear in the Activity
Monitor. Any restores based on this backup exit with NetBackup status code 0, but
no tag information is restored. Depending on the backup error, more information
regarding tag associations may appear in the Activity Monitor.
Note: This dialog finds the virtual machines that were backed up with the VMware
policy type. It does not search for other types of backups.
Restore virtual machines 233
Browse and search virtual machines for restore
Note: If the backup was made before NetBackup 7.6, the backup image must be
imported and verified before it can be browsed or searched.
Table 10-12 Browse and Search Virtual Machines for Restore dialog box
Search virtual Search for virtual machines by name, IP address, UUID, or by other
machines criteria.
Browse virtual Browse for virtual machines by drilling down through the virtual
machines objects.
Select the type of view for browsing:
■ vCloud view
Shows the virtual objects as they appear in vCloud Director.
■ vSphere view
Shows the virtual objects as they appear in vSphere Client.
See “Browse the vCloud or vSphere view for virtual machine clients”
on page 235.
Note: Although VMware allows up to 128 characters for an object name, the
NetBackup database restricts searches to the first 126 characters only.
Available when you click the plus sign to add a rule to the
search.
Select an operator.
You can type the first character of the operator to select it.
Enter a value for the parameter. The search looks for the
virtual machines that match the value.
To select a virtual machine, click on an ESX server or vApp. Highlight the virtual
machine you want and then click Select.
To switch the view to vCloud or vSphere, click on the link in the upper right.
Note: Although VMware allows up to 128 characters for an object name, the
NetBackup database restricts searches to the first 126 characters only.
See “Browse and search virtual machines for restore” on page 232.
■ Restoring individual files with Instant Recovery for VMware while the current
virtual machine is running
directly from the backup image and makes it accessible to users on the target ESX
host immediately. You can copy files (including vmdk files) without restoring the
entire virtual machine. To restore the virtual machine, use VMware Storage vMotion
to migrate the virtual machine data files from the backup image to the ESX host.
Some example uses for instant recovery:
■ Access and restore individual files and folders from any type of OS and then
delete the virtual machine. (Note for Windows or Linux: Instead of instant
recovery, you can use the policy Enable file recovery from VM backup option
and restore individual files with the Backup, Archive, and Restore interface.)
■ Test a patch on a restored virtual machine before you apply the patch to
production systems.
■ Troubleshoot a virtual machine or host, such as when the production ESX host
is down. You can start the virtual machine from its backup and use it until the
production system is back online.
■ Permanently recover the virtual machine by means of Storage vMotion.
■ Verify the backup image.
■ Copy a vmdk file and then delete the virtual machine.
■ Verify an application.
In any case, the virtual machine is started directly from the backup image and is
available in seconds or minutes. The startup time depends on the network speed
and storage speed, not on the size of the virtual machine.
Table 11-1 describes the steps in a virtual machine instant recovery.
Sequence Actions
Step 1 Run the nbrestorevm command* to access the virtual machine from its backup
image. The NetBackup File System Service (NBFSD) on the media server
accesses the backup image file system and mounts the image as an NFS
datastore. The datastore becomes accessible to the ESX host where the
virtual machine is to be restored.
Step 2 NetBackup creates a virtual machine on the ESX host and configures the
virtual machine with write access to a temporary (local) datastore.
Step 3 NetBackup creates a snapshot of the virtual machine. Any new write requests
in the virtual machine use the temporary datastore. The virtual machine uses
the NFS datastore as read-only.
Restore virtual machines with Instant Recovery 239
Task overview for Instant Recovery for VMware
Sequence Actions
Step 5 To keep the restored VM: Use Storage vMotion to copy the virtual machine
data from the NFS datastore to the temporary datastore.
Step 6 When vMotion is complete, use nbrestorevm to unmount the NFS datastore.
Step 2 Review the notes and requirements See “Requirements for Instant
Recovery for VMware” on page 241.
Step 3 Restart the Client for NFS service on See “Restarting the Client for NFS
the restore host service on a Windows restore host”
on page 244.
Step 4 Review the Instant Recovery options See “Instant Recovery options on the
on the nbrestorevm command nbrestorevm command” on page 244.
Step 5 Use the nbrestorevm command to See “Restoring a virtual machine with
perform Instant Recovery Instant Recovery for VMware”
on page 250.
Note: For large-scale recovery of multiple virtual machines, use the virtual machine
restore feature in the Backup, Archive, and Restore interface. Do not use Instant
Recovery for VMware.
Note: For the VMware virtual machines that have non-ASCII characters in their
paths, NetBackup does not support Instant Recovery using Windows restore
hosts and media servers. You must use a Linux restore host and media server
for Instant Recovery of such virtual machines.
The requirements and limitations for non-ASCII character support are described
in a different topic.
See “NetBackup for VMware: notes and restrictions” on page 27.
■ For a restore host that is separate from the NetBackup master server or media
server: You must add the restore host to the list of servers that can access the
master server.
In the NetBackup Administration Console, click Host Properties > Master
Servers, double-click the NetBackup master server, and click Servers. On the
Additional Servers tab, click Add to add the restore host.
See “Allowing other servers or clients to restore virtual machines” on page 353.
See “About configuring services for NFS on Windows 2008 and 2008 R2
(NetBackup for VMware)” on page 363.
The NetBackup media server platform must support Granular Recovery
Technology. See the NetBackup Enterprise Server and Server OS Software
Compatibility List:
NetBackup Master Compatibility List
■ The Client for NFS service may have to be restarted on a NetBackup Windows
restore host.
See “Restarting the Client for NFS service on a Windows restore host”
on page 244.
■ The media server must use IPv4 or have a dual stack configuration if the vCenter
server has a dual stack configuration.
■ NetBackup requires logon credentials for the vCenter server and the restore
host.
See “Adding NetBackup credentials for VMware” on page 45.
change the display name of the current virtual machine, or use the -R option on
nbrestorevm to rename the restored virtual machine.
■ For a virtual machine that is running under a high load, migration of the virtual
machine may take longer than expected. For this reason, NetBackup changes
the virtual machine's fsr.maxSwitchoverSeconds property to 900.
For example, this increase may be necessary when the virtual machine is
restored from a deduplication storage unit.
The following VMware Knowledge Base article contains more information on
the fsr.maxSwitchoverSeconds property:
Using Storage vMotion to migrate a virtual machine with many disks timeout
■ Note the following about the virtual machine's datastore name:
■ If the name of the datastore includes spaces, the name should be enclosed
in double quotes ("").
■ A virtual machine restore may fail if the name of the datastore (that was used
at the time of the backup) ended with a period.
The following tech note contains additional information.
http://www.veritas.com/docs/TECH199771
■ Instant recovery cannot restore a vCloud virtual machine into vCloud. The virtual
machine is restored into vSphere. You can copy or import the restored virtual
machine into vCloud by means of the Copy option in vCloud.
Note that the vCloud Move option does not work with a virtual machine that
runs from a NetBackup datastore.
■ Storage lifecycle policies (SLPs) can use Auto Image Replication to replicate a
virtual machine backup image to another NetBackup domain. To restore the
virtual machine from the replicated image, you must include the -vmproxy option
on the nbrestorevm command. Use the -vmproxy option to specify the backup
host (access host) that is in the domain where the virtual machine was replicated.
Without the -vmproxy option, nbrestorevm defaults to the backup host in the
original domain and the restore fails.
■ Supports recovery of virtual machines containing independent disks. The
independent disks that are associated with the virtual machine are recovered
to the virtual machine working directory on the temporary datastore. This
functionality requires a NetBackup 8.3 or later recovery host.
Restore virtual machines with Instant Recovery 244
Restarting the Client for NFS service on a Windows restore host
The Client for NFS service should restart without a restart of the server.
Note: Although the nbrestorevm command has additional options, only the options
that are described in this topic apply to Instant Recovery.
Note: Only -vmw, -ir_activate, -C, and -temp_location are required. If the other
options are not specified, NetBackup automatically supplies values for those options
from the backup. In most cases, if you do not restore the virtual machine to a different
location, you can omit the bracketed options.
See “To restore a virtual machine with instant recovery” on page 251.
See “Restoring individual files with Instant Recovery for VMware while the current
virtual machine is running” on page 257.
See “Reactivating a restored virtual machine with Instant Recovery for VMware”
on page 261.
Table 11-3 describes the nbrestorevm options for Instant Recovery of virtual
machines. These options are also described in the NetBackup Commands Reference
Guide, and in the man page for nbrestorevm.
Option Description
Option Description
-C virtual_machine The name of the virtual machine as identified in the backup. For example, if the policy
backed up the virtual machine by its host name, specify that host name.
Note: If a virtual machine with the same name already exists on the target ESX host, the
command fails. You can change the display name of the virtual machine in vCenter. As an
alternative, use the -R option on nbrestorevm to change the display name or location of
the restored virtual machine.
-ir_activate Starts the restore by mounting the backup image of the virtual machine as an NFS datastore.
The datastore becomes accessible to the ESX host where the virtual machine is to be
restored.
See “To restore a virtual machine with instant recovery” on page 251.
-temp_location A temporary datastore on the ESX server where all writes occur until the virtual machine
temporary_datastore is restored. All writes occur on this datastore until Storage vMotion is complete or until you
are finished with the virtual machine (such as for troubleshooting).
Note: This datastore must exist before you run nbrestorevm.
-S master_server Specifies a different master server, to restore a virtual machine from a backup that was
made by that master.
Restore virtual machines with Instant Recovery 247
Instant Recovery options on the nbrestorevm command
Option Description
-R rename_file_path The absolute path to a file that contains directives for restore to a different location.
The following are the entries that you can use in the file (each entry begins with change):
Note: The change line should be entered exactly as it appears in this list, except for the
variable at the end (such as new_virtual_machine_name). Replace that variable with the
new name.
For example:
If you restore to a different ESX server, you may have to specify a different resource pool.
(The original resource pool cannot be used to create a VM on a different ESX server.) You
must specify a resource pool by including the following line in the rename file:
-vmserver The name of the vCenter server that manages the target ESX host for the restore. To
vCenter_server restore to the same vCenter where the virtual machine originally resided, omit this option.
-vmproxy restore_host The host to perform the restore (a NetBackup client). The default is the host that performed
the backup.
Restore virtual machines with Instant Recovery 248
Instant Recovery options on the nbrestorevm command
Option Description
-vmInstanceId Retains the Instance UUID of the original virtual machine (note that the Instance UUID is
a vCenter specific unique identifier of a virtual machine). The virtual machine is restored
with the same Instance UUID that it had when it was backed up.
If the restore of the virtual machine is to a standalone ESXi host, this option is disabled.
If a virtual machine with the same Instance UUID exists at the target restore location, a
message appears that the UUID is used already. In this case, the original instance UUID
is not restored and a new UUID is assigned for the virtual machine.
See “Restoring individual files with Instant Recovery for VMware while the current virtual
machine is running” on page 257.
-vmkeephv Retains the virtual machine's hardware version: the virtual machine is restored with the
same hardware version that it had when it was backed up.
Without this option, the virtual machine is restored with the default hardware version of the
target ESX server or vCenter. The default is typically the latest supported hardware version.
-vmnewdiskuuid Generate new virtual machine disk UUIDs during an instant recovery. Use this option with
the –ir_activate option.
The VMs that activate with this option do not retain the new vmdk UUID during a subsequent
–ir_reactivate operation. In such a scenario, the VMDKs revert to their UUIDs at the
time of the backup.
Restore virtual machines with Instant Recovery 249
Instant Recovery options on the nbrestorevm command
Option Description
-ir_deactivate instant Removes the virtual machine from the ESX host. If no other virtual machine uses the
recovery ID NetBackup NFS datastore, this option removes that datastore and releases its resources
on the NetBackup media server.
This option is for removing the virtual machine when you are finished copying its files and
do not intend to keep it.
Note: If the virtual machine has been migrated to a production datastore by means of
vMotion, -ir_deactivate is the same as ir_done.
Note: If vMotion is still in progress for this virtual machine, you should cancel the vMotion
job before you use –ir_deactivate.
See “To restore a virtual machine with instant recovery” on page 251.
-ir_done instant recovery When vMotion migration of the virtual machine is finished, this option completes the virtual
ID machine instant recovery job. It also removes the NetBackup NFS datastore if no other
virtual machine uses it. When the datastore is removed, its resources are released on the
media server.
See “To restore a virtual machine with instant recovery” on page 251.
-ir_reactivate Reactivates a restored virtual machine: remounts the NetBackup NFS datastore, and from
instant_recovery_identifier the temporary datastore on the ESX host it registers the restored virtual machines on the
ESX host.
-ir_reactivate_all
instant recovery ID is the virtual machine's numeric identifier from the -ir_listvm output.
If more than one virtual machine needs reactivation: -ir_reactivate_all remounts the
NetBackup NFS datastores on the media server and reactivates the virtual machines. For
example: If VM1, VM5, and VM6 were mounted on the specified ESX server (-vmhost),
and their datastores were mounted on the specified media server (-media_server), those
three VMs are reactivated.
-vmhost vm_host When you reactivate virtual machines, this option specifies the ESX host on which the
virtual machines were mounted.
-media_server When you reactivate virtual machines, this option specifies the media server on which the
media_server_activate_vm NFS datastores that contain the backup images were mounted.
Option Description
-s start_time -e end_time By default NetBackup selects the latest full backup plus Accelerator-enabled incremental
backups (if any).
This option limits the selectable backup images to those with the timestamps that fall within
the specified period. NetBackup selects the latest suitable backup image within the range.
Note: To avoid host name or IP address conflicts, shut down the current virtual
machine in your production environment before you start instant recovery.
To copy files while the current virtual machine is running, use a different procedure:
See “Restoring individual files with Instant Recovery for VMware while the current
virtual machine is running” on page 257.
■ Release the media server resources: Use nbrestorevm with the ir_done option.
Note: Storage lifecycle policies (SLPs) can use Auto Image Replication to
replicate a virtual machine backup image to another NetBackup domain. To
restore the virtual machine from the replicated image, you must include the
-vmproxy option on the command. Use the -vmproxy option to specify the
backup host (access host) that is in the domain where the virtual machine was
replicated. Without the -vmproxy option, nbrestorevm defaults to the backup
host in the original domain and the restore fails.
The following tasks appear in the vSphere Client interface. In this example,
dbl1vm5 is the virtual machine to be restored.
In the output, find the VM Instant Recovery ID for the restored VM.
To remove the VM from the ESX host:
nbrestorevm –ir_deactivate instant recovery ID [-force]
where instant recovery ID is the virtual machine's numeric identifier from the
-ir_listvm output. -force is optional, to suppress confirmation prompts.
The VM is removed from the ESX host. If no other VM uses the NetBackup
NFS datastore, NetBackup removes that datastore and releases its resources
on the media server.
The following tasks appear in the vSphere Client interface. In this example,
dbl1vm5 is the virtual machine to be removed and datastore_V is the temporary
datastore that it used.
This step completes the VM Instant Recovery job. Skip the rest of this
procedure.
Step 5 uses Storage vMotion to move the virtual machine to a production
datastore. If vMotion is already in progress for this virtual machine, you should
cancel the vMotion job before you enter –ir_deactivate. Otherwise, vMotion
moves the virtual machine to a production datastore where –ir_deactivate
cannot remove it.
Restore virtual machines with Instant Recovery 254
Restoring a virtual machine to a different location with Instant Recovery for VMware
In the -ir_listvm output, find the VM Instant Recovery ID for the restored VM.
8 When the data migration is complete, enter the following:
nbrestorevm –ir_done instant recovery ID
where instant recovery ID is the virtual machine's numeric identifier from the
-ir_listvm output.
The -ir_done option completes the VM Instant Recovery job. It also removes
the NetBackup NFS datastore if no other VM uses it. When the datastore is
removed, its resources are released on the media server.
See “Restoring individual files with Instant Recovery for VMware while the current
virtual machine is running” on page 257.
To find the path, enter the following on the master server, media server, or
restore host:
UNIX, Linux:
/usr/openv/netbackup/bin/bpVMreq <restore_host> 11 0 <ESXi_server>
<VMserver_or_vCenter_server>
Windows:
<install_path>\NetBackup\bin\bpVMreq.exe <restore_host> 11 0
<ESXi_server> <VMserver_or_vCenter_server>
For example:
bpVMreq battleship.acme.com 11 0 ESXi_pl9.acme.com
vC_p9vm3.acme.com
Enter each change line exactly as it appears in this list, except for the variable
at the end (such as new_virtual_machine_name). Replace the variable with
the new name. For example:
change esxhost to ESXi01.prod4.com
For the new_resouce_pool, use the path that was obtained in the first step of
this procedure. For example:
change resourcepool to /TechOffice/host/F2/pl9.acme.com/Resources
This text file is called the -R rename file, and is used with the nbrestorevm
command in the next step.
3 To restore the VM using the -R rename file, enter the nbrestorevm command
with the -R option as follows.
Note: The -R option specifies the path to the text file (rename file).
■ To restore to the same vCenter server but to a different ESXi host, enter
the following:
nbrestorevm –vmw –ir_activate –C <virtual_machine>
-temp_location <temporary_datastore> -R <rename_file_path>
■ To restore to a different vCenter server and a different ESXi host, enter the
following:
nbrestorevm –vmw –ir_activate –C <virtual_machine>
-temp_location <temporary_datastore> -R <rename_file_path>
-vmserver <vCenter_server>
Note: This procedure lets you restore files into a running VM. You do not need to
shut down the current virtual machine in your production environment before you
start this procedure.
Before you start this procedure, you need an intermediary virtual machine that has
a network connection to the public network or production network. In this procedure
you connect the intermediary to the private network where the restored virtual
machine is to be mounted.
At the end of the procedure, you can copy files from the restored virtual machine
to the intermediary virtual machine. Then the virtual machines on the public network
can access the files on the intermediary.
To restore individual files using instant recovery
1 Use vSphere Client to log on to the vCenter server.
You must use a logon that allows access to the files that you want to recover.
2 Create a vSphere standard switch.
This switch is for access to the ESX host from the sandbox or private network
where the VM is to be activated from its backup.
Note: The switch is for internal communication within the ESX host only.
Note: This intermediary virtual machine must already have a network connection
to the public network or production network.
-vmsn specifies that no network is enabled for the virtual machine when it is
activated from the backup image. Without the -vmsn option, network conflicts
with the production virtual machine may occur.
The file that is designated by -R rename_file_path specifies a different display
name or location for the restored virtual machine. You must change the virtual
machine name or location to avoid conflicts with the current virtual machine in
production. For example, to rename the virtual machine, the rename file can
consist of the following entry (ending with a carriage return):
change vmname to acme_vm5
Note: The words change vmname to are literals, followed by the actual name
to change to (such as acme_vm5).
9 Set up file sharing (such as through FTP, NFS, or CIFS) between the restored
virtual machine and the intermediary virtual machine.
Then copy the files from the restored virtual machine to the intermediary virtual
machine. The current virtual machine in production can access the files.
10 If you do not want to keep the restored virtual machine, enter the following:
nbrestorevm –ir_listvm
In the -ir_listvm output, find the VM Instant Recovery ID for the restored virtual
machine.
To remove the restored virtual machine:
nbrestorevm –ir_deactivate instant recovery ID
where instant recovery ID is the virtual machine's numeric identifier from the
-ir_listvm output.
Table 11-5 VMware Instant Recovery job types in the Activity Monitor
VM Instant Recovery This job is the parent job for restoring a VM by means of Instant
Recovery.
Activate Instant Recovery The parent VM Instant Recovery job starts an Activate Instant
Recovery job to create the VM on the ESX host.
Stop Instant Recovery This job runs when you use nbrestorevm -ir_done to remove
the NetBackup NFS datastore and release its resources on the
media server.
Deactivate Instant This job runs when you use nbrestorevm -ir_deactivate
Recovery to delete the restored VM from the ESX host.
Restore virtual machines with Instant Recovery 261
Reactivating a restored virtual machine with Instant Recovery for VMware
Table 11-5 VMware Instant Recovery job types in the Activity Monitor
(continued)
Reactivate Instant This job runs when you use nbrestorevm with the ir_reconfigure
Recovery option to restart an interrupted virtual machine recovery.
Find the VM Instant Recovery ID for the restored VM in the -ir_listvm output.
Then enter the following:
nbrestorevm –ir_reactivate Instant Recovery ID [-force]
where instant recovery ID is the virtual machine's numeric identifier from the
-ir_listvm output. -force is an optional parameter to suppress confirmation
prompts.
The ir_reactivate option remounts the NetBackup NFS datastore. From the
temporary datastore on the ESX host it registers the restored virtual machines
on the ESX host.
2 If more than one VM had been restored to the ESX host:
nbrestorevm –ir_reactivate_all -vmhost vm_host –media_server
media_server [-force]
Note: For multiple virtual machines, do not use the –ir_reactivate option. Use
–ir_reactivate_all.
The -vmhost option specifies the ESX host on which the virtual machines were
mounted. The -media_server option specifies the media server on which the
NFS datastores that contain the backup images were mounted. -force is an
optional parameter to suppress confirmation prompts.
The nbrestorevm -ir_reactivate_all command remounts the NetBackup NFS
datastores on the media server and reactivates the virtual machines.
3 When the virtual machine is reactivated, you can copy its files or migrate its
data to the ESX host.
See “To restore a virtual machine with instant recovery” on page 251.
4 If Storage vMotion was migrating the virtual machine files when the outage
occurred, restart the migration.
In vSphere Client, right-click on the restored virtual machine and select Migrate.
Chapter 12
Use NetBackup for vCloud
Director
This chapter includes the following topics:
Enter NetBackup Media and Device Management > Credentials > Virtual Machine Servers.
credentials for the
See “Adding NetBackup credentials for VMware” on page 45.
vCloud Director server
and for its vCenter
servers.
Use NetBackup for vCloud Director 264
Notes on creating a NetBackup policy for vCloud
With the Enable vCloud Director option, the policy selects only vCloud-managed virtual
machines for backup: it skips the virtual machines that are not in vCloud.
NetBackup collects information on the vCloud environment, such as its organizations, virtual
datacenters, and vApps. NetBackup also retrieves information about a vApp for later restore
of the vApp and its virtual machines.
Note: Enable vCloud Director integration makes several vCloud keywords available in
the policy Query Builder Field, for rule-based selection of virtual machines. If Enable vCloud
Director integration is not selected, NetBackup cannot use the keywords to locate virtual
machines in vCloud Director and the backup fails.
Note: The browsing icon (next to the Query Builder drop-down fields) may list non-vCloud
objects. If you select an object that is not in vCloud Director, it is excluded from the backup.
See “Configuring a VMware policy from the Policies utility” on page 68.
Note: The NetBackup for VMware restrictions also apply to vCloud Director objects.
VMware restrictions also may apply; see your VMware documention.
Note: At the end of a successful restore, NetBackup verifies that the virtual
machine is on compliant storage (on a datastore with the defined storage profile).
■ To ensure that any VM guest customizations are restored into vCloud Director,
you must set a NetBackup parameter. The parameter value specifies a wait
period in seconds so that the guest customizations can be restored successfully.
(The VMware API requires that the VMware Tools are installed and running,
but the state of the VMware Tools cannot be identified after the restore.
Therefore, we wait the specified amount of time so that the VMware Tools are
running in the initial restore environment.)
See “Ensuring that guest customizations can be restored in vCloud Director”
on page 320.
Original location in You can restore a virtual machine into an existing vApp or into
vCloud Director a new vApp that replaces the existing one. You can also restore
a virtual machine that is in a vApp template.
Note: The restored vApp template can only contain one virtual
machine; no further virtual machines can be added.
Alternate location You can restore a virtual machine into an existing vApp or into
in vCloud Director a new vApp or vApp template.
3 On the Recovery Options screen, select the NetBackup recovery host and
transport mode for the restore.
See “Recovery Options dialog box” on page 182.
Use NetBackup for vCloud Director 268
Restoring virtual machines into vCloud Director
4 On the Recovery vApp Options for vCloud Director screen, set the vApp
recovery options.
You can either restore the virtual machine into an existing vApp (if that vApp
is not a template), or you can create a new vApp.
For restore to original Select Restore into existing vApp, or Remove existing vApp
location and recreate the vApp.
For restore to Select Restore into existing vApp or Create new vApp.
alternate location
You can enter details for the vApp to restore to.
6 On the Virtual Machine Options screen, select the appropriate options for
the virtual machine and its disk provisioning.
See “Virtual Machine Options dialog box” on page 184.
7 On the Network Connections screen, select the network for the restored
virtual machine.
Note: If the virtual machine was not connected to any networks during backup,
or if none of those networks are currently available, the dialog states: "No
networks available for selected virtual machine." If a network connection is
required, create it in vCloud Director after the restore completes.
See “Network Connections and Other Recovery Options dialog box (restore
to alternate location)” on page 195.
8 On the Perform Recovery screen, run a pre-recovery check.
To begin the restore click Start Recovery.
9 To restore additional virtual machines into the same vApp (not a vApp template),
repeat this procedure.
Note: On the Recovery vApp Options for vCloud Director screen, select
Restore into existing vApp. Make sure to select the vApp into which you
want to restore the additional virtual machines.
Use NetBackup for vCloud Director 270
Restoring virtual machines into vCloud Director
Note: Use the following steps to restore the last virtual machine and to copy
all the restored virtual machines into a vApp template.
5 On the Virtual Machine Options screen, select the appropriate options for
the virtual machine and its disk provisioning.
6 On the Network Connections screen, select the network for the restored
virtual machine.
See “Network Connections and Other Recovery Options dialog box (restore
to alternate location)” on page 195.
7 On the Perform Recovery screen, run a pre-recovery check.
To begin the restore click Start Recovery.
NetBackup copies the current virtual machine and the previously restored
virtual machines into a new vApp template. When the restore is complete, no
further virtual machines can be added to the template vApp.
To create two or more rules, you must be in Advanced Mode (not Basic
Mode).
Each query rule must begin on its own line.
You can use the following types of rules:
■ To search for VMs in a particular vCloud server
vmware://<vCloud_server>?filter=<filter>
vmware://<vCloud_server>/vApp/vapp-<vApp_id>?filter=<filter>
vmware://<vCloud_server>/vAppTemplate/vappTemplate-
<vAppTemplate_id>?filter=<filter>
The following detail from a Query Builder screen (Advanced Mode) shows
two rules for narrowing the search within a vCloud environment. The first rule
searches a single vApp on vCloud server vCD1.acme.com. The second rule
searches a different vApp on vCloud server vCD2.acme.com. For help in finding
the vApp identifiers, see the following topic:
Example Query Builder rules for searching specific vCloud servers or vApps
Use NetBackup for vCloud Director 273
Reducing the time required for VM discovery in a large vCloud environment
5 For two or more search rules, you must enable multiple organizations for the
policy.
■ In the policy VMware tab, click Advanced.
■ In the VMware - Advanced Attributes dialog, enable Multiple
organizations per policy.
■ To use the nbdiscover command instead of the policy Query Builder, see
the following topic:
Examples of the nbdiscover command for searching specific vCloud servers
or vApps
■ To search for VMs in a particular vApp or vApp template (note the single forward
slash):
vmware:/vApp/vapp-<vApp_id>?filter=<filter>
vmware:/vAppTemplate/vappTemplate-<vAppTemplate_id>?filter=<filter>
The vApp_id or vAppTemplate_id is the identifier on the end of the vCloud vApp
href. You can use a vCloud Director REST API query to find the identifier.
For example, the following is a REST API query for a vApp that is named
acmvappvm7:
https://acmvm5.acme.com/api/query?type=adminVApp&filter=
name==acmvappvm7
href="https://acmvm5.acme.com/api/vApp/vapp-afaafb99
-228c-4838-ad07-5bf3aa649d42"
vmware:/vApp/vapp-afaafb99-228c-4838-ad07-5bf3aa649d42
?filter=Displayname Contains "prod"
vmware://vCD1.acme.com/vApp/vapp-4c0d9722-80a4-4f19-b636-72ebf48e4e71
?filter=Displayname Contains "prod"
■ To search additional vCloud Director servers or vApps from the same backup
policy, include additional query rules in the Query Builder.
Note: To enter multiple rules in the Query Builder, you must be in Advanced
Mode.
vmware://vCD1.acme.com/vApp/vapp-4c0d9722-80a4-4f19-b636-72ebf48e4e71
?filter=Displayname Contains "prod"
vmware://vCD2.acme.com/vApp/vapp-5c0c9833-80a4-4f19-b636-72ebf48e4e63
?filter=Displayname Contains "prod"
Note the two rules, each enclosed with double quotes and separated by a space,
and the multi_org=1 option.
See “Notes on creating a VMware policy for vCloud Director” on page 330.
Use NetBackup for vCloud Director 276
Virtual machine recovery dialog boxes for vCloud Director
vApp Name The name of the vApp that contained the virtual machine when
it was backed up.
vApp Status The status of the vApp (active or expired) at the time of the
backup. When the virtual machine is restored, its vApp becomes
active even if the current vApp in the restore location is expired.
Use NetBackup for vCloud Director 277
Virtual machine recovery dialog boxes for vCloud Director
vCloud Catalog The name of the catalog that contains the vApp template. "..."
means that the vApp is not a template.
Other virtual A link to the names of the other virtual machines in the vApp, if
machines in vApp any.
Restore into existing To restore the virtual machine into an existing vApp, select
vApp Overwrite the existing virtual machine.
If the existing virtual machine is already turned on, this option fails.
Note: If you restore a vApp template, this option is not available.
Remove existing For a vApp template, this option is labeled Remove existing vApp
vApp and recreate the Template and recreate the vApp Template
vApp
To remove the vApp (or vApp template) and recreate it, select
Delete all virtual machines to recreate this vApp.
Note: All virtual machines in the vApp are deleted.
Click on the numeric link to see the names of the virtual machines
that exist in the vApp.
Use NetBackup for vCloud Director 278
Virtual machine recovery dialog boxes for vCloud Director
Verify login to vCloud Director Verifies that the NetBackup restore host can log on to the
server vCloud Director server.
Verify vCloud Organization Validates the selected vCloud Director organization to restore
to.
Verify template catalog If the option to capture the vApp as a template is selected,
validates the selected vCloud Director catalog to restore to.
Use NetBackup for vCloud Director 279
Virtual machine recovery dialog boxes for vCloud Director
Verify vApp powered off If the options to restore into an existing vApp and the capture
before capturing to template vApp as template are selected, verifies that the vApp is
powered off.
Note: The defaults are the server name, organization, and other details that were
recorded in the backup.
Field Description
vCloud Server Select the vCloud Director server for the restore.
The servers in the list are the ones for which NetBackup has
credentials of type VMware vCloud Director.
Field Description
vApp name Select or enter the name of the vApp for the restore.
This option defaults to the original vApp that was recorded in the
backup.
Capture vApp as a This option is available when you restore to an existing vApp.
template in catalog
This option copies the vApp that is specified in the vApp Name
field into a new vApp template.
It also copies all of the vApp's virtual machines into the same
vApp template. Note that this operation may take a lot of time.
By default, the source vApp for the copy is retained after the copy;
you can have the source vApp removed after the copy. See the
Remove vApp after capture option.
Create vApp as a This option is available when you create a new vApp for the
template in catalog restore.
This option restores the virtual machine into a new vApp template.
The name of the new template is the same as the vApp that was
specified in the vApp Name field.
Catalog Select the catalog in which to place the vApp template. The
organization determines the available catalogs.
vApp template name When you restore into an existing vApp and capture the vApp as
a template:
Remove vApp after When you restore into an existing vApp and capture the vApp as
capture a template:
Select this option to remove the source vApp after the vApp copy
to the new vApp template completes. At the end of the copy, the
new template and its virtual machines are retained. The vApp
that was the source for the copy is deleted.
Specify vApp Enter the vApp name. As you type, the organization is expanded and
name the first name that contains the typed character(s) is highlighted.
vApps in You can drill into the organization and highlight a vApp.
Organization
ESX server Select the ESX server in which to restore the virtual machine.
Virtual machine name Enter the name for the restored virtual machine.
See “Setting global limits on the use of VMware resources” on page 52.
■ The design of the I/O substructure that is associated with each virtual machine
datastore. For correct I/O design and implementation, consult your VMware
documentation.
■ Make sure that the VMware backup host has enough memory to handle the
number of simultaneous backups that occur.
■ Include in a single NetBackup policy those virtual machines that use the same
datastore. This practice lets you control the amount of backup-related I/O that
occurs per datastore, to limit the backup effect on the target virtual machines.
■ NetBackup supports multiple backup hosts. When a single backup host is
saturated with a backup process, another backup host can be added to increase
backup throughput.
■ If a VM's disks are accessible to multiple ESX hosts, the disks can be accessed
for backup or restore through any of the ESX hosts. The ESX host may or may
not be the ESX host where the virtual machine is running or registered. All of
the following must be accessible to each other and should have DNS configured:
■ The vCenter server.
■ All ESX hosts under the vCenter that have access to the VM's vmdk files.
■ The backup host.
■ Enable the Treat Tags as unset if unable to evaluate option under the
Advanced Attributes on the VMware tab.
See Table 5-7 on page 81.
Topic Source
■ How to determine the ESX network that NetBackup used for the backup or
restore
■ Conflict between NetBackup and VMware Storage vMotion with vSphere 5.0 or
later
■ Incremental backups of the VM may fail if the NTFS file system in the guest OS
is corrupted and the backup uses MSDP storage
■ The restore fails when you restore individual files to a virtual machine that has
NetBackup client software
Troubleshooting 288
Notes on troubleshooting NetBackup for VMware
■ Mount points not available when restoring files from a Linux virtual machine
■ Invalid client error when you restore files using NetBackup BAR interface installed
on the virtual machine
■ A restored VM may not start or its file system(s) may not be accessible
■ The Enable file recovery from VM backup option does not work if a volume disk
set contains a mixture of disk types
■ For a VMware virtual machine with Windows dynamic disks, a restore from
incremental backup fails with a Windows restore host and the hotadd transport
mode
■ Simultaneous hotadd backups (from the same VMware backup host) fail with
status 13
■ When you select virtual machines on the policy Clients tab, NetBackup
cannot obtain the host name, IP address, or DNS name of the virtual machine.
Policy validation may fail.
■ The virtual machine cannot be quiesced in preparation for the snapshot.
■ You cannot restore individual VMware files onto the virtual machine itself, except
under certain conditions.
See “About restore of individual filesAbout restoring individual VMware files”
on page 223.
See “Configuring a VMware policy from the Policies utility” on page 68.
If all hosts are not accessible to each other, the backup or restore may not succeed.
In that case, you must determine which network NetBackup used for the backup
or restore.
Note: For an NBD transport mode backup through vCenter, NetBackup uses the
ESX network over which the ESX host was added or registered to the vCenter. For
an NBD transport mode backup directly from the ESX host, NetBackup uses the
ESX host’s DNS/IP network.
The VxMS provider logs contain information on the network that NetBackup used.
See “Configuring VxMS logging” on page 292.
Check the VxMS provider logs for messages similar to those in this example:
Table 14-1 NetBackup logs that pertain to VMware backup and restore
Table 14-1 NetBackup logs that pertain to VMware backup and restore
(continued)
Note: Except for unified logging directories, these log directories must already exist
in order for logging to occur. If these directories do not exist, create them.
To create most of these log directories, run the following command on the NetBackup
servers and backup host:
Windows:
install_path\NetBackup\logs\mklogdir.bat
Note: VxMS logging may require significant resources on the VMware backup host.
Troubleshooting 293
Configuring VxMS logging
Note: If you have run the NetBackup mklogdir command, the VxMS log
directory already exists.
See “NetBackup logging for VMware” on page 291.
Note: If the VxMS log location is changed, the Logging Assistant does not
collect the logs.
Troubleshooting 294
Configuring VxMS logging
Note: If you have run the NetBackup mklogdir.bat command, the VxMS log
directory already exists.
See “NetBackup logging for VMware” on page 291.
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.
Note: Logging levels higher than 5 cannot be set in the Logging Assistant.
Note: Logging 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.
Level Description
0 No logging.
1 Error logging.
4 Same as level 3.
5 Highly verbose (includes level 1) + auxiliary evidence files (.mmf, .dump, VDDK
logs, .xml, .rvpmem).
You can set the logging level for the VDDK messages.
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
Note: The ncfnbcs process uses unified logging: You do not have to
manually create a log directory for ncfnbcs. More information on unified
logging is available in the NetBackup Logging Reference Guide.
Note: NetBackup may be unable to determine the host names of the virtual machines
from their IP addresses (reverse lookup may fail).
2 To be on the safe side, make a backup of the current registry (File > Export).
3 Go to HKEY_LOCAL_MACHINE > SOFTWARE > Veritas > NetBackup >
CurrentVersion > Config and create a key that is called BACKUP.
4 Create a new DWORD under BACKUP, called disableIPResolution.
This registry key causes NetBackup to use the virtual machine's IP address
as the virtual machine's host name.
5 Use the NetBackup Browse for Virtual Machines screen to rediscover the
virtual machines. The host names should now be the IP addresses.
See “Browse for VMware virtual machines” on page 91.
Troubleshooting 299
Changing the browsing timeout for virtual machine discovery
[BACKUP]
"disableIPResolution"=dword:00000000
This entry causes NetBackup to use the virtual machine's IP address as the
virtual machine's host name.
Note: If the file already contains a [BACKUP] line, do not add another [BACKUP]
line. Any other lines that already exist under [BACKUP] should remain as they
are.
3 Use the NetBackup Browse for Virtual Machines screen to rediscover the
virtual machines. The host names should now be the IP addresses.
See “Browse for VMware virtual machines” on page 91.
See “Notes on troubleshooting NetBackup for VMware” on page 288.
The following applies if: the Primary Identifier in VMware Intelligent Policies is
selected as VM host name and Reverse name lookup is enabled in the
configuration setting.
In a large VMware environment, reverse name lookups can be very slow depending
on the number of virtual machines being discovered. You can change the
VNET_OPTIONS option to determine how many items NetBackup can cache. This
value is in the bp.conf file on UNIX and Linux, and the registry on Windows.
The third value 200 is the default number of entries to be cached. Each entry takes
about 1 kilobyte in memory. Available memory needs to be taken into account when
you change this value. The maximum number of allowed entries is 100000.
VNET_OPTIONS = 120 3600 200 40 3 1 30 10 1793 32 0 0
Use the nbgetconfig command to view the configuration settings. Use nbsetconfig
to change the settings.
Http://www.veritas.com/docs/DOC5332
See “Browse for VMware virtual machines” on page 91.
See “Changing timeout and logging values for vSphere” on page 300.
See “Notes on troubleshooting NetBackup for VMware” on page 288.
See “Configuring a VMware policy from the Policies utility” on page 68.
jobtimeout 900
poweroptimeout 900
snapshottimeout 900
registertimeout 180
browsetimeout 180
connecttimeout 300
The key and default for the vSphere API logging level are the following.
Troubleshooting 301
Changing timeout and logging values for vSphere
Table 14-5 DWORD key and default for vSphere API log level
Changes to the vSphere API logging level affect the following logs on the backup
host:
■ For backups (snapshot creation): bpfis log
■ For restores: bpVMutil log
■ For virtual machine discovery: ncfnbcs log (originator ID 366)
The logs are in the following location on the backup host:
Windows: install_path\NetBackup\logs\
Linux: /usr/openv/netbackup/logs
To change vSphere timeouts and logging values on Windows
1 On the Windows desktop of the backup host, click Start > Run and enter
regedit.
2 To be on the safe side, make a backup of the current registry (File > Export).
3 Go to HKEY_LOCAL_MACHINE > SOFTWARE > Veritas > NetBackup >
CurrentVersion > CONFIG and create a key that is called BACKUP.
4 To change a timeout value, create a new DWORD under BACKUP, using the
appropriate registry name (such as jobtimeout or poweroptimeout).
Enter a value for the timeout.
5 To change the level of vSphere API logging, create a new DWORD called
vmcloglevel and enter the new logging value.
The allowed values are 0 through 6, where 0 is no logging and 6 is the highest
log level.
Troubleshooting 302
Credentials for VMware server are not valid
2 To change a timeout value, enter a new dword line under [BACKUP], using the
appropriate name (such as jobtimeout or poweroptimeout). Include a value
for the timeout.
For example:
[BACKUP]
"jobtimeout"=dword:60
"vmcloglevel"=dword:6
The allowed values are 0 through 6, where 0 is no logging and 6 is the highest
log level.
See “Notes on troubleshooting NetBackup for VMware” on page 288.
■ An incorrect port number. Make sure that the port number is correct on the
NetBackup Change Virtual Machine Server dialog. If the VMware server uses
the default port, no port specification is required. You can uncheck the Connect
using port number box.
■ You do not have enough privileges to perform backups or restores. (Note
however that lack of sufficient privileges may not cause the credential validation
to fail.)
For the minimum permissions needed to back up and restore with vStorage,
see the following:
http://www.veritas.com/docs/TECH130493
See “Adding NetBackup credentials for VMware” on page 45.
See “Notes on troubleshooting NetBackup for VMware” on page 288.
NetBackup cannot obtain NetBackup may not be able to obtain the volume ID of a drive. In that case, none of the
the volume ID of a drive virtual machine drives are backed up. The backup fails with NetBackup status code 156.
A backup of the virtual You cannot run more than one backup per virtual machine at a time. If you start a second
machine is already active backup of the virtual machine while the first backup is active, the second job fails with a
status 156.
Recommended action: Wait until the first job completes, then run the second one.
Troubleshooting 304
Snapshot error encountered (status code 156)
Cannot find virtual NetBackup cannot find the host name or VM display name of a virtual machine that is listed
machine name in the backup policy. The detailed status log may include the following error message:
If the virtual machines do not have static IP addresses, you can configure NetBackup to
identify virtual machines by their VM display names or UUIDs. Examples of the environments
that do not use static IP addresses are clusters, and the networks that assign IP addresses
dynamically.
Note that NetBackup may have been configured to identify virtual machines by their VM
display names. In that case, make sure that the display names are unique and that they
do not contain special characters.
The virtual machine is Through a vCenter server, NetBackup can back up the virtual machines that are turned
powered off off. You must provide credentials for NetBackup to access the vCenter server.
■ If the policy uses VM host name or VM DNS name as the Primary VM identifier,
NetBackup may not find the virtual machine. The backup fails.
■ If the policy uses VM display name or VM UUID as the Primary VM identifier, NetBackup
can identify the virtual machine. The backup succeeds.
The virtual machine has If a virtual machine with independent disks is in a suspended state, snapshot jobs fail.
one or more independent Messages similar to the following appear in the job details log:
disks and is in a
suspended state 01/12/2015 17:11:37 - Critical bpbrm (pid=10144) from client
<client name>: FTL - VMware error received: Cannot take a
memory snapshot, since the virtual machine is configured with
independent disks.
http://kb.vmware.com/kb/1007532
As a workaround, change the state of the virtual machine to powered on or powered off,
and rerun the backup.
Note: Data on independent disks cannot be captured with a snapshot. The rest of the
virtual machine data is backed up.
Troubleshooting 305
Snapshot error encountered (status code 156)
The virtual machine's disk The RDM is ignored (not backed up) and any independent disk is recreated but empty.
is in raw mode (RDM)
See “Configurations for backing up RDMs” on page 377.
The attempt to create a If the attempt to create a snapshot of the virtual machine exceeds the VMware timeout of
snapshot exceeded the 10 seconds, the snapshot fails with NetBackup status 156. This timeout may occur if the
VMware timeout virtual machine is configured with a large number of volumes. Note that the timeout may
be encountered even if the Virtual machine quiesce option was disabled.
Do one of the following:
The virtual machine has The snapshot fails if the virtual machine has no vmdk file.
no vmdk file assigned
Virtual machines without vmdk files can occur in a vCenter Site Recovery Manager (SRM)
environment. If a replicated virtual machine has never been active, it is in passive mode
and may have no vmdk file(s).
You can enable the Ignore diskless VMs option on the VMware Advanced Attributes
tab of the policy. If this option is enabled: NetBackup does not back up a replicated (passive)
virtual machine in an SRM environment if that virtual machine has no vmdk files.
The vmdk file has too Whenever a VMware snapshot occurs, a delta.vmdk file is created for each vmdk. If 32 or
many delta files more such delta files exist for a single vmdk file, a NetBackup backup of that VM may fail
(status 156). The NetBackup Activity Monitor job details contain messages similar to the
following:
In the VMware interface, right-click on the VM and select Snapshot > Consolidate.
For more information, see your VMware documentation.
2 Verify that each of the VM’s vmdk files now has fewer than 32 delta files.
If the snapshot consolidation was not successful, see the following VMware article
for further assistance:
Committing snapshosts in vSphere
VMware snapshot If the NetBackup policy is enabled for virtual machine quiesce (the default), the VMware
quiesce operation failed snapshot operation in vSphere initiates a quiesce of the virtual machine. If snapshot quiesce
fails, the NetBackup job fails with status 156.
the problem to one environment or the other by using vSphere Client to take a
snapshot of the VM. NetBackup support often uses this approach to investigate a
snapshot issue.
To identify the environment in which the snapshot error occurred
1 In the vSphere interface, right-click on the VM and click Snapshots > Take
Snapshot.
2 In the Take VM Snapshot for dialog, click Quiesce guest file system if the
NetBackup policy was enabled for virtual machine quiesce (the default).
In the NetBackup policy, the Virtual machine quiesce option is in the VMware
- Advanced Attributes dialog.
Note: In the Take VM Snapshot for dialog, make sure the Snapshot the
virtual machine's memory option is not selected. NetBackup does not use
that option.
3 Start the snapshot and check the Recent Tasks pane for snapshot status.
■ If the snapshot does not complete, the problem with the NetBackup snapshot
may be in the VMware environment. Consult your VMware documentation.
■ If the VMware snapshot is successful, the issue may be with NetBackup.
For relevant error messages, consult the NetBackup bpfis logs.
See “NetBackup logging for VMware” on page 291.
The following topic summarizes some common causes of 156 errors:
See “ Snapshot error encountered (status code 156)” on page 303.
Error opening the snapshot disks using given transport mode: Status 23.
To back up a virtual machine while its files are in the process of migration,
NetBackup must conduct the backup through the vCenter server.
To back up a virtual machine while its files are in the process of migration
1 In the NetBackup Administration Console, under Media and Device
Management > Credentials > Virtual machine servers, add NetBackup
credentials for the vCenter server.
Select a server type of VMware VirtualCenter Server.
2 Delete the credentials that are currently defined under the server type VMware
ESX server, and add those credentials as type VMware Restore ESX Server.
3 Rerun the backup.
The incremental backups fail with status 84, media write error.
Use the chkdsk command to examine the file system in the guest OS and repair
it as needed. Then restart the VM and rerun the backup.
See “Notes on troubleshooting NetBackup for VMware” on page 288.
Troubleshooting 309
The restore fails when you restore individual files to a virtual machine that has NetBackup client software
Table 14-7 VMware NFC connection limits for nbd or nbdssl transfers
ESXi 5 Directly to ESX server The maximum total for all NFC
connection buffers to an ESXi host
is 32 MB
Try a different transport type (such as SAN or hotadd). If a different transport type
is not available and NetBackup accesses the ESX servers directly, set up access
through a vCenter (or VirtualCenter) server. Use of a server increases the maximum
number of allowed connections. For example: With 27 connections, NetBackup can
access a virtual machine that has up to 27 disks, if the ESX 4 server is behind a
vCenter server.
Note that the connection limits are per-host (that is, per vCenter or ESX server).
For example, assume the following environment:
■ An ESX 4.0 server with three virtual machines.
■ Each virtual machine has ten virtual disks.
■ The virtual machines are behind a vCenter 4.0 server.
For a simultaneous backup of the three virtual machines, NetBackup requires 30
NFC connections. With a limit of 27 NFC connections per vCenter server, any of
the three backup jobs may hang.
These limits are described in the VMware Virtual Disk API Programming Guide:
VMware Virtual Disk API Programming Guide
See also the following section of the VMware vSphere 5 Documentation Center:
Virtual Disk Transport Methods
See “Restore notes and restrictions” on page 173.
See “Configuring a VMware policy from the Policies utility” on page 68.
If the virtual machine was backed up by display name or UUID, and the display
name is not the same as the host name, note: You cannot restore individual files
by means of the Backup, Archive, and Restore (BAR) interface if the interface is
installed on the virtual machine itself. The files can be restored if BAR is installed
on the master server or media server. In this case, BAR must not be installed on
the virtual machine that you want to restore to.
To restore files, the Destination client for restores field in the BAR interface must
have a valid host name or IP address.
See “Restoring individual filesRestoring individual VMware virtual machine files”
on page 224.
As a result of a VMware issue in VDDK 5.5.x, the Windows NTFS Master File Table
on the restored VM may be corrupted. As a workaround, use a different transport
mode to restore the VM (not hotadd).
See “Restore notes and restrictions” on page 173.
VMware has acknowledged the problem of leftover delta files after a snapshot
quiesce failure. VMware has fixed this issue in certain ESXi versions. See the
following VMware article for more information on this issue:
Delta disk files (REDO logs) are left uncommitted after a failed quiesced snapshot
operation (2045116)
For a workaround for leftover delta files, see the following VMware article:
Committing snapshots when there are no snapshot entries in the Snapshot Manager
(1002310)
To prevent this issue on Linux VMs with multiple disk controllers, it is recommended
a persistent device-naming method for mounting the file systems. When persistent
naming is in place, device mounting is consistent and this issue does not occur
when you restore files from future backups.
For persistent device naming, you can mount devices by UUIDs. The following is
an example of the /etc/fstab file that contains the devices that are mounted by
UUIDs:
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.
The restore fails with status 1, "the requested operation was partially successful."
Messages similar to the following may appear in the VxMS provider logs:
When they are enabled, VxMS logs are written in the following directory:
Windows:
install_path\NetBackup\logs\vxms
Linux:
/usr/openv/netbackup/logs/vxms
Note: For successful restores from future incremental backups, run backups with
the Use Accelerator option in the policy.
Try any of the following workarounds to restore from the current incremental backup:
■ Use a Linux restore host (not Windows).
■ Use a different transport mode, such as NBD, NBDSSL, or SAN (not hotadd).
■ When the dynamic disk (the one that was added after the first backup) is mounted
for restore, manually set the disk to offline. When the disk is offline, NetBackup
can write data to it and successfully complete the restore.
See the remainder of this tech note for assistance with this workaround.
To determine when the dynamic disk is mounted for restore
◆ Use the Windows Disk Management utility (Control Panel > Administrative
Tools > Computer Management > Disk Management), or run diskpart in
administrator mode and enter the list disk option.
When Windows attempts to mount the disk, it labels the disk as Invalid or
Foreign.
Troubleshooting 317
Simultaneous hotadd backups (from the same VMware backup host) fail with status 13
vCenter 5.1 and 5.5 Virtual machine selection is If tag information is required
marked as Failed. to determine virtual machine
selection, the virtual machine
is marked as Failed with
NetBackup Status Code
4266.
This message indicates that the discovery job exceeded the bearer timeout. You
need to increase this timeout for the job to complete successfully.
To adjust the timeout on the vCenter
1 Open the VMware vSphere Web Client.
2 Select Administration > Single Sign-On > Configuration > Policies > Token
Policy.
3 Increase Maximum bearer token lifetime from the default 300 seconds.
Because each environment is unique, Veritasdoes not have any
recommendations on this value. Increase the value until the problem is
eliminated.
be identified after the restore. Therefore, we wait the specified amount of time so
that the VMware Tools are running in the initial restore environment.)
To ensure that guest customizations can be restored in vCloud Director on
Windows
1 On the Windows desktop of the backup host, click Start > Run and enter
regedit.
2 To be on the safe side, make a backup of the current registry (File > Export).
3 Go to HKEY_LOCAL_MACHINE > SOFTWARE > Veritas > NetBackup >
CurrentVersion > CONFIG and create a key that is called BACKUP.
4 Create a new DWORD under BACKUP and name it powerCycleInterval.
Enter a decimal value of 60 for the timeout.
5 Close the Windows Registry Editor.
To ensure that guest customizations can be restored in vCloud Director on
Linux
1 On the Linux backup host, create (or open) the following file:
/usr/openv/netbackup/virtualization.conf
2 Create a line in the file named [BACKUP] and then on a separate line create a
powerCycleInterval dword parameter with a value of 60, as follows:
For example:
[BACKUP]
"powerCycleInterval"=dword:60
Note: If the file already contains a [BACKUP] line, do not add another [BACKUP]
line. Any other lines that already exist under [BACKUP] should remain as they
are.
3 Save the file and then close it from the text editor.
See “Notes on restoring virtual machines into vCloud Director” on page 265.
the job details in NetBackup. In the following job details example, the temporary
VM name is vCenter60vm1_rhel6.4_1465584674:
By default, NetBackup retains the temporary VM if the disks are not attached.
To change that behavior, set the DeleteRestoredVMOnError field to Yes in the
restore parameters file.
■ After a restore to an existing VM, the next backup of the VM backs up the
restored virtual disks. This backup may show a warning during collection of the
Changed Block Tracking (CBT) information.
■ For an In-place disk restore, raw devices (RDMs) and independent disks are
not deleted or replaced during restore. If the controller for these disks conflicts
with the disks being restored, the restore fails. The following example messages
are job details from a failed in-place restore:
vSphere Ensure that you have the required snapshot license from the array vendor. Licensing requirements
snapshot for vSphere snapshots vary from one type of VVol storage to another, depending on the array
creation fails for vendor.
a backup of a
Each NetBackup snapshot job creates a vSphere snapshot of the virtual machine.
VM on VVol.
Space requirements vary from one array vendor to another. Consult the storage array documentation.
Troubleshooting 324
Issues with the CA certificate during installation of the NetBackup client on VMware Cloud (VMC)
■ Using the nbrestorevm command to restore virtual machines into vCloud Director
The NetBackup commands for policy creation are in the following directory:
Windows:
install_path\Veritas\NetBackup\bin\admincmd
UNIX or Linux:
usr/openv/netbackup/bin/admincmd
For example:
bppolicynew pol1 -M nbserver.acme.com
2 Configure the VMware policy type and set the VMware snapshot options.
This step requires running the initialize form of the bpplinfo command in two
stages.
Example for the second stage of bpplinfo (for a policy for vCloud Director):
For example:
bpplsched pol1 -add Full -st FULL
NetBackup commands to back up and restore virtual machines 329
Using NetBackup commands to create a VMware policy
For example:
bpplschedrep pol1 Full -0 0 604800
Note: To back up virtual machines in vCloud Director, the policy must use a
query rule on the bpplinclude command to select virtual machines automatically.
For vCloud, do not specify a virtual machine on the bpplclients command.
bpplinclude has options for modifying the query rules in an existing policy.
See “bpplinclude options for modifying query rules in a VMware policy”
on page 333.
NetBackup commands to back up and restore virtual machines 330
Using NetBackup commands to create a VMware policy
To test the bpplinclude query rule (vmware:/?filter) before you run the
backup
◆ Run the following:
Windows:
install_path\NetBackup\bin\nbdiscover -noxmloutput -policy
policyName -noreason
UNIX, Linux:
/usr/openv/netbackup/bin/nbdiscover -noxmloutput -policy
policyName -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.
See “Using the nbrestorevm command to restore virtual machines into vCloud
Director” on page 341.
-ignore_client_direct 0 enables client deduplication, 1 disables client The Attributes tab > Disable
deduplication client side deduplication
-ASC_apps_attr exchange:,mssql:,sharepoint:
-ASC_apps_attr exchange:,mssql:;truncatelogs=1
-ASC_apps_attr exchange:;truncatelogs=1,mssql:
-ASC_apps_attr
exchange:;truncatelogs=1,mssql:;truncatelogs=1
disable_quiesce= 0 virtual machine quiesce is enabled, 1 VMware tab > Advanced > Virtual
virtual machine quiesce is disabled machine quiesce
drive_selection= 0 Include all disks, 1 Exclude boot disk, Exclude Disks tab
2 Exclude data disks
exclude_swap= 0 disabled, 1 enabled VMware tab > Exclude swap and paging
files
ignore_irvm= 0 disabled, 1 enabled VMware tab > Advanced > Ignore Instant
Recovery VMs
nameuse= 0 VM host name, 1 VM display name, 2 VMware tab > Primary VM identifier
VM BIOS UUID, 3 VM DNS Name, 4 VM
instance UUID
post_events= 0 No Events, 1 All Events, 2 Error Events VMware tab > Advanced > Post vCenter
events
serverlist= VMware server names. Use a colon to VMware tab > Advanced > VMware server
separate the names. For example: list
serverlist=vc1.acme.com:vc2.acme.com
snapact= 0 Continue backup 1 Abort if any VMware tab > Existing snapshot handling
snapshot(s) exist 2 Remove NetBackup
snapshot(s) and continue backup 3 Abort
if NetBackup snapshot(s) exist
trantype= san, hotadd, nbd, or nbdssl VMware tab > Transport modes
trantype=nbd:hotadd
Virtual_machine_backup= 1 disabled, 2 enabled VMware tab > Enable file recovery from
VM backup
vmdk_ca= The name of the VMware custom attribute Exclude Disks tab > Perform custom
that specifies the disk(s) to exclude from attribute based selection
backups. For example,
vmdk_ca=NB_DISK_EXCLUDE_LIST.
vmdk_list= Colon separated values of device Exclude Disks tab > Specific disk(s) to be
controllers for the disks to be excluded. excluded
For example:
scsi0-0:ide0-0:sata0-0.
See “bpplinclude options for modifying query rules in a VMware policy” on page 333.
See “Using NetBackup commands to create a VMware policy” on page 326.
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 virtual machines 335
Using the nbdiscover command to search the virtual environment
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:
Windows:
NetBackup commands to back up and restore virtual machines 336
Using the nbrestorevm command to restore virtual machines into vSphere
where -noxmloutput displays one VM per line. The query specifies either a
filter-based search rule or a browse operation.
See “Query format and examples for searching virtual machine backups” on page 350.
For example, to search for the backups of virtual machines that have "prod1" in
their display names:
nbdiscover -noxmloutput
"vmsearch:/;reqType=search?filter=VMDisplayName Contains 'prod1'"
For further descriptions of the command options, see the command's man page or
the NetBackup Commands Reference Guide.
See “Using the nbrestorevm command to restore virtual machines into vSphere”
on page 336.
See “Using the nbrestorevm command to restore virtual machines into vCloud
Director” on page 341.
Windows:
install_path\NetBackup\bin\nbrestorevm.exe
See “The nbrestorevm -R rename file for restoring virtual machines” on page 346.
■ -O
Overwrites the VMs and associated resources if they already exist.
■ –S master_server
Specifies the master server that made the backup (if different from the current
master).
■ -vmserver vCenter_server
Specifies a different vCenter server for the restore destination.
■ –vmproxy VMware_recovery_host
Specifies a different VMware recovery host (overrides the default backup host
that backed up the VMs).
Note: Storage lifecycle policies (SLPs) can use Auto Image Replication to
replicate a virtual machine backup image to another NetBackup domain. To
restore the virtual machine from the replicated image, you must include the
-vmproxy option. Use -vmproxy to specify the backup host (access host) that
is in the domain where the virtual machine was replicated.
■ -vmkeephv
Retains the hardware version upon recovery.
■ -vmid
Retains the BIOS UUID of the original virtual machine.
■ -vmInstanceId
Retains the Instance UUID of the original virtual machine (note that the Instance
UUID is a vCenter specific unique identifier of a virtual machine).
■ -vmsn
Removes the network from the restored VM.
■ -vmvmxd
Restores the .vmdk files to the vmx datastore (the configuration datastore).
■ -vmpo
Turns on the VM after the restore.
Following are examples of nbrestorevm, for various restore destinations and options.
For the -R rename file, create a text file with the following entry:
change datastore to new_vmx_datastore
Note: In the rename file, the change line must end with a carriage return.
For the -R rename file, create a text file with the following entries. Replace the
italicized values with the actual name for the restored VM and for the other vSphere
objects in this list:
Note: In the rename file, each change line must end with a carriage return.
Note: If the change vmdk directive specifies a different path for some of the VM’s
vmdk files, the other vmdk files are restored to their original datastore.
See “The nbrestorevm -R rename file for restoring virtual machines” on page 346.
Create a rename file with the change entries listed for example G. Add the following
change entry:
change network to new_network, new_network(n)
Note: In the rename file, each change line must end with a carriage return.
To restore the .vmdk files to a different datastore, include the following entry in the
rename file:
change /original_vmdk_path to /new_datastore/
Note: In the rename file, each change line must end with a carriage return, even if
the file contains only one line.
Note: The rename file may require other change entries, depending on your vSphere
environment. See the available entries under example G.
Note: Configure the recovery host as a VMware Access Host on the master server.
Communication between the master server and the backup host or recovery host
(client) should be established before the restore.
Note: For restore to a standalone ESX server, the resource pool entry must include
the literal string ha-datacenter in the pool path.
Note: The rename file may require other change entries, depending on your
vSphere environment. See the available entries under example G.
NetBackup commands to back up and restore virtual machines 341
Using the nbrestorevm command to restore virtual machines into vCloud Director
Note: The rename file may require other change entries, depending on your vSphere
environment. See the available entries under example G.
For further descriptions of the nbrestorevm options, see the command's man page
or the NetBackup Commands Reference Guide.
The following topics contain additional information:
See “Logs for troubleshooting the nbrestorevm command” on page 350.
See “The nbrestorevm -R rename file for restoring virtual machines” on page 346.
See “Using the nbdiscover command to search the virtual environment” on page 335.
See “Using the nbrestorevm command to restore virtual machines into vCloud
Director” on page 341.
Windows:
install_path\NetBackup\bin\nbrestorevm.exe
■ -vcd
Required for all virtual machine restores into vCloud.
■ –C virtual_machine_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, specify the display name on the -C option.
■ -R absolute_path_to_rename_file
Restores to a different location. The entries that are required in the rename file
depend on the destination for the restore. See each example in this topic. Further
notes are available on the rename file:
See “The nbrestorevm -R rename file for restoring virtual machines” on page 346.
■ -vcdovw
Overwrites an existing vApp.
■ -vcdrte
Restores to an existing vApp. (If this option is set but the vApp does not exist,
the restore fails.)
■ -vcdtemplate
Restores a vApp as a template.
■ -vcdlfree
Restores to the datastore that has the most free space.
■ -vcdremv
Removes a vApp after capture to a template.
■ -vmid
Retains the BIOS UUID of the original virtual machine.
■ -vmInstanceId
Retains the Instance UUID of the original virtual machine (note that the Instance
UUID is a vCenter specific unique identifier of a virtual machine).
The -O option overwrites the VM, and the -vmid option retains the original Instance
UUID.
The -O option overwrites the VM, and the -vmInstanceId option retains the original
Instance UUID.
The –vcdovw option deletes the vApp and the VMs inside it, and creates a new
vApp.
Note: For restore to the original location, you must use either the –vcdovw option
or the –O option.
Note: To restore a VM that resides in a vApp template to its original location, use
the –vcdovw option. If you use –O option, the restore fails with status 2820.
For the -R rename file, create a text file with the following entries. These entries
describe the restore location. Replace the italicized values with the actual values:
Note: In the rename file, each change line must end with a carriage return.
NetBackup commands to back up and restore virtual machines 344
Using the nbrestorevm command to restore virtual machines into vCloud Director
Note: If you want to associate the restored VM with a different organization VDC,
use the change orgvdc entry to specify the organization VDC.
See “The nbrestorevm -R rename file for restoring virtual machines” on page 346.
The vApp is restored to the original organization and organization VDC. To associate
the vApp with a different organization VDC, include this directive:
change orgvdc to new_organization_VDC
Note: After the template is created, no other VMs can be added to the template.
The -vcdremv option removes the non-template vApp; the new vApp template is
retained.
Note: After the template is created, no other VMs can be added to the template.
Run this command for each VM but do not restore the last VM.
Next, restore the last VM, create a vApp template, and copy all the restored VMs
into that template:
nbrestorevm -vmw -vcd -C VM_to_restore -R absolute_path_to_rename_file
-vcdtemplate -vcdremv -vcdlfree
NetBackup commands to back up and restore virtual machines 346
Using the nbrestorevm command to restore virtual machines with Instant Recovery
The change directive provides the name for the new vApp template into which the
VMs are to be restored.
The -vcdremv option removes the non-template vApp into which you initially restored
the virtual machines. The -vcdlfree option selects the datastore that has the largest
available space.
Note: After the template is created, no other VMs can be added to the template.
See “Allowing other servers or clients to restore virtual machines” on page 353.
■ The rename file overrides the nbrestorevm -vmsn and -vmvmxd options:
■ If the rename file includes a change directive for a .vmdk path and
nbrestorevm includes the –vmvmxd option, the –vmvmxd option is ignored.
The change directive determines the .vmdk path of the restored VM.
■ If the rename file includes a change directive to designate a network for the
restored VM and nbrestorevm includes the –vmsn option, –vmsn is ignored.
change vmname to new_display_name Sets the display name for the restored VM. If this entry is omitted,
the original display name is used.
NetBackup commands to back up and restore virtual machines 348
The nbrestorevm -R rename file for restoring virtual machines
change esxhost to new_ESX_host Designates the ESX server to restore to. This entry is required
when you restore to a different ESX server.
change datacenter to /new_datacenter Designates the datacenter in which to restore the VM. If the
destination does not have a datacenter, enter None as the value:
change folder to Designates the folder in which to restore the VM. If the destination
/new_datacenter/new_folder does not have a folder, enter None as the value:
change resourcepool to For restore to a different ESX server, specify a different resource
/new_datacenter/host/new_ESX_host/resources pool. (The original resource pool cannot be used to create a VM
/new_resource_pool on a different ESX server.) You must specify a resource pool by
including the following line in the rename file:
change resourcepool to
/ha_datacenter//host/new_ESX_host/resources
change datastore to new_vmx_datastore Designates the vmx datastore (configuration datastore) of the
restored VM. The vmx datastore contains the configuration files
that describe the virtual machine.
This change entry is required when you use the –vmvmxd option
on the nbrestorevm command. The -vmvmxd option allows the
vmdk files to be restored to the same datastore where the vmx
file is specified.
Note: See the change /original_vmdk_path to /new_datastore/
directive in this table.
NetBackup commands to back up and restore virtual machines 349
The nbrestorevm -R rename file for restoring virtual machines
change /original_vmdk_path to Designates the original path to the .vmdk file, and the new
/new_datastore/ datastore for the .vmdk file of the restored VM. As a rule, this
change entry is required when you restore to a different datastore.
Depending on your VMware environment, this change entry may
take the following form:
change /original_datastore/original_VM_folder/original_vmdk.vmdk
to /new_datastore/
Note: If you use the -vmvmxd option on nbrestorevm to restore
the .vmdk files to the vmx datastore, do not use this change
directive. By specifying the datastore for the vmdk files, this change
directive overrides the -vmvmxd option.
change network to new_network Designates the new network for the restored VM. To designate
multiple networks, enter the following:
change vcdserver to new_vcdserver Designates the vCloud Director server to restore to.
change vcdvapp to new_vcdvapp Designates the vCloud Director vApp to restore to.
change vcdvapptemplate to Designates the vCloud Director vApp template to restore to.
new_vcdvapptemplate
change vcdvmname to new_vcdvmname Sets the display name for the restored VM in vCloud Director.
change vcdcatalog to new_vcdcatalog Designates the vCloud Director catalog to restore to.
Linux, UNIX
/usr/openv/netbackup/logs/bprd
Linux, UNIX
/usr/openv/netbackup/logs/bpVMutil
If the restore job reaches the point of creating the virtual machine, the job's detailed
status should contain a specific error message. vSphere Client shows an attempt
to create the virtual machine and displays an associated failure message.
See “Restoring a virtual machine with Instant Recovery for VMware” on page 250.
Element Description
reqType The request type. The following request types are supported:
■ search
Specifies that the query is used for search. Requires a query rule
■ browse
Displays the hierarchy of the virtual machines that were backed up. Requires the
viewType.
■ listFields
Lists the supported field names and their attributes.
■ listOps
Lists the operations that a field supports. Requires the fieldName option.
viewType Specifies the type of hierarchical view (vcloud or vsphere). Used with the browse option.
nbdiscover "vmsearch:/;reqType=browse;viewType=vcloud"
nbdiscover "vmsearch:/;reqType=browse;viewType=vsphere"
fieldName Specifies the name of the field for which supported operators are to be listed. Used with the
listOps.
nbdiscover "vmsearch:/;reqType=listOps;fieldName=VMDisplayName"
filter The query rule. nbdiscover searches virtual machine backups based on the rule.
Example:
+ "demovm%20(8c879391-2917-4416-9373-bea7ec727717)"
+ "smallvm2%20(10a16222-8532-46ff-bd6a-9661240392f4)"
Example 2: Search backups of the virtual machines that have the display names
that contain "vm".
nbdiscover -noxmloutput
"vmsearch:/;reqType=search?filter=VMDisplayName Contains 'vm'"
+ "demovm%20(8c879791-2917-4428-9373-bea7ec727717)"
+ "small_vm%20(33e85579-7279-411f-b2f9-9fb570583911)"
+ "small_vm_percent_%25%20(33e85579-7279-411f-b2f9-9fb570583911)"
Example 3: Search for backups of the vCloud virtual machines that have "test" in
their vApp names.
nbdiscover -noxmloutput "vmsearch:/;reqType=search?filter= vCDvApp
Contains 'test'"
+ "demovm%20(8c879791-2917-4428-8213-bea7ec727717)"
+ "small_vm%20(61e83479-7246-411f-b1f9-9fb570546755)"
+ "small_vm_percent_%25%20(61e83479-7246-411f-b1f9-9fb570546755)"
Example 4: Search the virtual machine backups that occurred before 08/24/2012
11:05:56 AM. Specify the backup time in UTC.
nbdiscover -noxmloutput "vmsearch:/;reqType=search?filter=BackupTime
Less '1345871512'"
+ "demovm%20(8c846791-2917-4428-9373-bea7ec727437)"
+ "small_vm%20(22e85813-7246-433f-b2f9-9fb570585387)"
+ "small_vm_percent_%25%20(22e85579-7246-433f-b2f9-9fb570585387)"
Example 5: Search backups for virtual machines where the vCloud organization is
named "QA" and the vApp name contains "demo".
nbdiscover -noxmloutput "vmsearch:/;reqType=search?filter=vCDOrg
Equal 'QA' AND vCDvApp Contains 'demo'"
+ "demovm%20(8c879791-2917-4428-9373-bea7ec727717)"
<Start Iteration="vmsearch:/;reqType=browse;viewType=vcloud">
<VCDSERVER>
<NBU>
<NAME>hypervm1.acme.com</NAME>
NetBackup commands to back up and restore virtual machines 353
Allowing other servers or clients to restore virtual machines
</NBU>
<VCDORG>
<NBU>
<NAME>Test Cloud</NAME>
</NBU>
<VCDORGVDC>
<NBU>
<NAME>Test Org</NAME>
</NBU>
<VCDVAPP>
<NBU>
<NAME>TestvApp</NAME>
</NBU>
</VCDVAPP>
</VCDORGVDC>
</VCDORG>
</VCDSERVER>
<StatusMsg NBUStatus="0" Severity="0"></StatusMsg>
</START>
■ About installing and configuring Network File System (NFS) for Granular
Recovery Technology (GRT)
■ About configuring services for NFS on Windows 2012 or 2016 (NetBackup for
VMware)
■ About configuring services for NFS on Windows 2008 and 2008 R2 (NetBackup
for VMware)
■ Disabling the Client for NFS on the media server (NetBackup for VMware)
■ Configuring a UNIX media server and Windows backup or restore host for
Granular Recovery Technology (NetBackup for VMware)
that is connected to the NetBackup media server. The NetBackup media server
handles the I/O requests from the client through NBFSD.
NBFSD is the NetBackup File System (NBFS) service that runs on the media server.
NBFSD makes a NetBackup backup image appear as a file system folder to the
NetBackup client over a secure connection.
Action Description
See “About configuring services for NFS on Windows 2012 or 2016 (NetBackup
for VMware)” on page 356.
To enable Services for Network File System (NFS) on a Windows 2012 or 2016
media server
1 Open the Server Manager.
2 From the Manage menu, click Add Roles and Features.
3 In the Add Roles and Features Wizard, on the Before You Begin page, click
Next.
Configuring services for NFS on Windows 358
About configuring services for NFS on Windows 2012 or 2016 (NetBackup for VMware)
5 Click Next.
6 On the Server Selection page, click Select a server from the server pool
and select the server. Click Next.
Configuring services for NFS on Windows 359
About configuring services for NFS on Windows 2012 or 2016 (NetBackup for VMware)
7 On the Server Roles page, expand File and Storage Services and File and
iSCSI Services.
8 Click File Server and Server for NFS. When you are prompted, click Add
Features. Click Next.
Configuring services for NFS on Windows 360
About configuring services for NFS on Windows 2012 or 2016 (NetBackup for VMware)
9 If the media server is also a restore host, on the Features page, click Client
for NFS. Click Next.
12 Make sure that the portmap service is started and that its startup mode is set
to auto.
To enable Services for Network File System (NFS) on a Windows 2012 or 2016
restore host
1 Open the Server Manager.
2 From the Manage menu, click Add Roles and Features.
3 In the Add Roles and Features Wizard, on the Before You Begin page, click
Next.
Configuring services for NFS on Windows 362
About configuring services for NFS on Windows 2012 or 2016 (NetBackup for VMware)
5 Click Next.
6 On the Server Selection page, click Select a server from the server pool
and select the server. Click Next.
Note: Before you configure NFS on the media server or restore host, look for the
ONC/RPC Portmapper service. If it exists, stop it and disable it. Otherwise, the
configuration of NFS Services for Windows fails.
Configuring services for NFS on Windows 364
About configuring services for NFS on Windows 2008 and 2008 R2 (NetBackup for VMware)
Action Description
On the restore host, The hot fix is available at the following location:
install the hot fix for
http://support.microsoft.com/kb/955012
Client for NFS.
Note: Important Windows Vista hot fixes and Windows Server 2008 hot fixes are included
in the same packages. However, the hot fix Request page lists only Windows Vista. For the
hot fix package for either operating system, select the hot fix that is listed under Windows
Vista on the page. Always refer to the Applies To section in articles to determine the actual
operating system for each hot fix.
See “About configuring services for NFS on Windows 2008 and 2008 R2 (NetBackup
for VMware)” on page 363.
To enable Services for Network File System (NFS) on Windows 2008 or 2008
R2
1 Open the Server Manager.
2 In the left pane, click Roles and, in the right pane, click Add Roles.
3 In the Add Roles Wizard, on the Before You Begin page, click Next.
Configuring services for NFS on Windows 366
About configuring services for NFS on Windows 2008 and 2008 R2 (NetBackup for VMware)
4 On the Select Server Roles page, under Roles, check the File Services
check box.
5 Click Next.
6 On the Files Services page, click Next.
7 On the Select Role Services page, uncheck File Server.
Configuring services for NFS on Windows 367
About configuring services for NFS on Windows 2008 and 2008 R2 (NetBackup for VMware)
Note: Make sure that the portmap service is started and that its startup
mode is set to auto.
See “About configuring services for NFS on Windows 2008 and 2008 R2
(NetBackup for VMware)” on page 363.
Configuring services for NFS on Windows 368
Disabling the Server for NFS (NetBackup for VMware)
■ For a host that is only a restore host, you can disable the Server for NFS.
4 In the right pane, right-click on Server for NFS and click Stop.
5 In the right pane, right-click on Server for NFS and click Properties.
Configuring services for NFS on Windows 369
Disabling the Client for NFS on the media server (NetBackup for VMware)
6 From the Startup type list in the Server for NFS Properties dialog box, click
Disabled.
7 Click OK.
8 Do this procedure for each media server and for the restore host.
3 Click Services.
4 In the right pane, right-click on Client for NFS and click Stop.
5 In the right pane, right-click on Client for NFS and click Properties.
Configuring services for NFS on Windows 371
Configuring a UNIX media server and Windows backup or restore host for Granular Recovery Technology
(NetBackup for VMware)
6 From the Startup type list in the Client for NFS Properties dialog box, click
Disabled.
7 Click OK.
See “Enabling Services for Network File System (NFS) on Windows 2008 or
2008 R2 (NetBackup for VMware)” on page 364.
■ You can configure a different network port for NBFSD.
HKEY_LOCAL_MACHINE\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config
Note: If the vmdk files are reconfigured and the next backup runs without
rediscovery, NetBackup is not aware of the vmdk changes. It attempts to back up
the virtual machines in their previous configuration. The result may be an incorrect
backup.
Appendix D
Backup of VMware raw
devices (RDM)
This appendix includes the following topics:
Note: NetBackup cannot back up the RDM by means of a VMware backup host.
For notes and restrictions on NetBackup support for VMware RDM, see the following
Veritas tech note:
Backup of VMware raw devices (RDM) 377
Configurations for backing up RDMs
■ 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.
See “Requirements for alternate client backup of RDMs ” on page 378.
3 Select Alternate Client from the Use pull-down. Do not select VMware backup
host.
In the Machine field, enter the name of the host that is configured as an off-host
backup computer (the alternate client).
4 Click Options.
5 Select a snapshot method.
The VMware method does not apply to alternate client backup and is not
available in the list.
Backup of VMware raw devices (RDM) 380
Configuring alternate client backup of RDMs
Select a snapshot method that is appropriate for the volume or array. For
example:
■ The HP_EVA_Snapclone method or other EVA method for an HP EVA
array.
■ The EMC_CLARiiON_Snapview_Clone or other CLARiiON method for an
EMC CLARiiON array.
■ FlashSnap.
For FlashSnap, the following must be installed: VxVM 3.2 or later for UNIX,
VxVM 4.0 or later for Linux and AIX, or VxVM 3.1 or later for Windows.
Also, volumes must be configured over the primary host’s disks. The VxVM
FlashSnap license must also be installed.
■ VSS (for Windows guest operating systems only).
The array may require additional OS and NetBackup configuration as described
in the disk arrays chapter of the NetBackup Snapshot Client Administrator's
Guide. The same guide contains more details on snapshot methods.
6 If required by an array snapshot method that you selected in the previous step,
specify the Snapshot Resources.
7 In the policy’s Clients list, select the virtual machine on which the array is
configured as an RDM.
8 In the policy’s Backup Selections tab, specify the disk that you want to back
up, or the files or volumes that reside on the disk.
See “Requirements for alternate client backup of RDMs ” on page 378.
See “About VMware raw device mapping (RDM)” on page 376.
See “NetBackup for VMware: notes and restrictions” on page 27.
Index
Symbols B
156 (status code) 303 backup
fault tolerant VM 37
A host 15
how to configure 68
Accelerator 160
how to perform 151
and the NetBackup catalog 164
job hangs 309
logs for 165
monitoring with Activity Monitor 153
messages in the backup job details log 165
monitoring with OpsCenter 157
policy attribute 161
process overview 20
replacing image size with network-transferred
reduce size of 147
data in command output 169
backup host 74
reporting network-transferred data in command
adding to configuration 44
output 166
check if supported 289
Activity Monitor
backup media server 16, 18, 74
to monitor VM backups 153
backups
Advanced Mode
replacing Accelerator image size with
Query Builder 116
network-transferred data in command
ALL_LOCAL_DRIVES 303
output 169
alternate client backup
reporting network-transferred data for
configure for RDM 378
Accelerator 166
of RDM 377
Basic Mode
alternate location for restore 188
edit rule in Query Builder 115
AND vs OR 122
Query Builder 112
Join field in Query Builder 117
best practices 283
automatic selection of virtual machines 72
BIOS
about 102
reconfigure for booting 312
Advanced Mode 116
blacklist
Basic Mode 112
for dynamic multipathing on Linux 35
cache file for 373
BLIB 75, 99, 148
Clients tab 109
block-level incremental backup. See BLIB
examples 102, 118
blocks
notes on 105
exclude deleted 75
Query Builder fields 129
browse virtual machines 91
requirements 108
browsing timeout 299
task overview 108
testing 139
with multiple policies 121 C
cache file
for browsing virtual machines 93
catalog
and use of Accelerator 164
Index 382
change VMware hostname in NetBackup 50 encryption of snapshot data transport 79, 184
Changed Block Tracking 148 equipment 289
Client Reports escape character
using OpsCenter 157 use of in Query Builder 138
Clients tab ESX server 16, 45
automatic selection of virtual machines 109 Exclude deleted blocks option 75
description of fields for queries 129 exclude disks from backup 88
code 156 error 303 exclude list
compound query rules 124 speed up discovery of virtual machines 93
configuration ext file systems, Linux 177
of auto selection of virtual machines 109, 112 extended attributes, restore of 177
overview for backup of VMs 24
configuration datastore 176 F
credentials
failed virtual machines
adding for VMware 45
in test query 141
troubleshooting 302
fault tolerant VMs 37
cross-platform restore 173
FIFO files, Linux 177
Cumulative Incremental Backup 71
file system
Linux, restore of 177
D firewall 309
datacenter
for restore 191 G
datacenter folders
grouping rules in Query Builder 116, 124
rules in Query Builder 126
guest customizations
datastore
ensuring their restore 320
in a datastore cluster 192
restore of 192
deduplication 284 H
delete host name 76, 94
vSphere Client snapshot 149 changing in NetBackup 50
Differential Incremental Backup 71 host properties
disable virtual machine quiesce 81 for VMware 44
Discovered Timestamp 94 hotadd transport mode 79, 184
disk array notes on 40
configured as RDM 378 hypervisor 21
display name 76, 94
DNS name 76 I
drives Ignore diskless VMs 81, 305
and reboot failure 312 in-place disk restore 197–198, 212, 216, 220–221,
dynamic multipathing 321–322
in a SAN environment 35 incremental backup
about 99
E requirements 71
edit rules in Query Builder 115 setting up 100
EMM database independent disk 22, 95, 305
remove VM host name from NetBackup 50 how to back up 28
Enable block-level incremental backup 75, 148 installing and configuring Network File System
encrypted drives 27 (NFS) 356
instant recovery 238
Index 383
Q resource pool
Query Builder for virtual machine restore 192
and Primary VM identifier parameter 142 resource pools
cache file for results 373 rules in Query Builder 125
configuration in Advanced Mode 116 restore
configuration in Basic Mode 112 about restoring individual virtual machines 204
description of fields 129 from backup 182, 188
edit rule in 115 guest customizations 320
enter rules manually 116 how to 179, 198
escape character 138 individual files 224
examples 118 into vCloud 276
IsSet operator examples 120 job hangs 309
keywords 130 maximum path length for Linux/UNIX files 34
operators 137 notes on 173
order of operations 122 procedure overview 223
quotation marks 138 virtual machine 179, 198
testing rules for 139, 141 vmdk 204
to select virtual machines for backup 102 restore vmdk
values 138 Changed Block Tracking warning during
wildcards 138 subsequent backup 322
with multiple policies 121 create restore parameters file 207
query builder determine backup ID from which to restore 205
to filter virtual machines for backup 72 restoring individual 213
quiesce validate restore parameters file 212
Linux file system 177 reuse file
Linux, notes on 34 for Query Builder results 373
quiesce virtual machine 81 Reuse VM selection query results for 373
quotation marks rules in Query Builder
use of in Query Builder 138 about 104
configuring 112
editing 115
R examples 104
RDM 22, 305 examples with parentheses 124
about 376 for datacenter folders 126
alternate client backup of 377–378 for resource pools 125
configurations supported 377 IsSet operator examples 120
reboot failure 312 manual entry of 116
Recovery Destination dialog 182 order of evaluation 116
recovery host 15, 183 order of operations 122
Recovery Options dialog 183, 189 testing 139
recovery wizard. See restore from backup. See testing failued 141
restore into vCloud run a backup 151
reduce size of backup 147
release level
using mixed levels 236 S
remove VMware host name from NetBackup EMM SAN transport mode 79, 183
database 50 SCSI drives
reports on backups and reboot failure 312
using OpsCenter 157 Select automatically through VMware Intelligent Policy
query 72, 102
Index 385
VMware (continued)
ESX server 16, 45
Exclude Disk tab 86
host properties 44
introduction 13
logging 291
main features 13
policy configuration 68
required components 15
restores 179, 198
terminology 20
troubleshooting 291
VMware Intelligent Policy 102
VMware Intelligent Policy query 72
VMware policy 69
VMware policy tab 69
VMware Tools 23
VMX directory 176
vmx-07 71
vNetwork Distributed Switch 195
Volume Manager volumes 100
vSphere Client snapshot
how to delete 149
vStorage 23
incrementals 100
restore into vCloud 276
VxMS logging 292
W
whitelist
for dynamic multipathing on Linux 35
wildcards
use of in Query Builder 138
wizard
to create backup policy 68
to recover virtual machine 182, 276