NetBackup105_AdminGuide_VMware
NetBackup105_AdminGuide_VMware
Administrator's Guide
Release 10.5
Last updated: 2024-09-20
Legal Notice
Copyright © 2024 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.
http://www.veritas.com
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 CustomerCare_Japan@veritas.com
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:
NB.docs@veritas.com
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) ................................................... 360
About configuring services for NFS on Windows 2012 or 2016
(NetBackup for VMware) ........................................................ 361
Enabling Services for Network File System (NFS) on a Windows
2012 or 2016 media server (NetBackup for VMware) ............. 361
Enabling Services for Network File System (NFS) on a Windows
2012 or 2016 restore host (NetBackup for VMware) ............... 365
Disabling the Server for NFS (NetBackup for VMware) ....................... 368
Contents 13
Disabling the Client for NFS on the media server (NetBackup for
VMware) ............................................................................. 370
Configuring a UNIX media server and Windows backup or restore host
for Granular Recovery Technology (NetBackup for VMware) .......... 372
Configuring a different network port for NBFSD (NetBackup for
VMware) ............................................................................. 373
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 primary and media
servers. The primary 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 primary 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 Compatibility List
for all Versions.
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 primary 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 17
NetBackup for VMware components
Component Description
Access host A VMware Access host is another term for a NetBackup client that acts as a backup host or a
recovery host.
Backup media server A media server that can operate as the backup host.
NetBackup primary 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.
The vCenter Server is optional in the NetBackup for VMware environment.
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 18
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
primary 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)
primary or media server. Virtual machines
VM VM VM
VM VM VM
Introduction 19
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: On the VMware tab of the policy
set the VMware backup host to Backup media server.
See “VMware backup host” on page 90.
Introduction 21
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 120.
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.
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.
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.
Introduction 23
NetBackup for VMware terminology
Term Definition
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.
To use the hotadd transfer type for backup or restore, the VMware backup
or restore host is installed in a virtual machine.
Sequence Tasks
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 3 Install the NetBackup Enterprise Client license on the primary 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 Install the NetBackup Java Runtime Environment (JRE) on the discovery
host and the recovery host. Install the NetBackup Remote Administration
Console to install NetBackup Java.
Required tasks: overview 26
Overview of NetBackup tasks
Sequence Tasks
Phase 5 (Conditional) If the NetBackup primary server does not have access to the
VMware server, then you need to configure a VMware backup host that
has access to your NetBackup configuration. This host is also used for
asset discovery.
Starting with NetBackup 10.5, the version of the backup host must be at
NetBackup 10.5 or later. It is recommended that you use a backup host
whose version is the same as the primary server.
Phase 6 Enter NetBackup access credentials as needed: for vCenter, for ESXi, for
Restore ESXi, and for VMware Cloud Director servers.
If you use a backup host that is not the primary server then the backup host
(or the media server or the appliance) that you use must be at NetBackup
10.5.
Note: The NetBackup primary server must have network access to the
VMware servers that NetBackup has credentials for.
Phase 7 Configure the NetBackup RBAC roles for VMware administrators. You must
complete the discovery of VMware assets before you configure the roles.
Contact your NetBackup administrator for assistance.
To manage permissions
1 On the left, go to Workloads > VMware. Then select the VMware servers
tab.
2 On the left, select the object in the hierarchy.
3 On the right, locate the object and select Actions > Manage permissions.
4 Select the Add button.
5 Select the role name and the permissions that you want to assign.
6 Select the Save button.
5 Select the role names that you want to apply to the VM. Or, select Add to add
a role to the list.
To view the permissions that are applied to any role, expand the role name.
6 Select Save.
Configuring RBAC roles for VMware administrators 33
Apply RBAC role permissions for a VM to other VMs
7 Select the target VMs to which you want to apply the selected role permissions.
8 Click Apply.
Chapter 4
Notes and prerequisites
This chapter includes the following topics:
■ 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
■ Notes and limitations for the backup and restore of VMware storage policies
■ NetBackup for VMware supports FIPS mode for SSL communication when using
VDDK. This can be enabled by adding the VDDK_FIPS_MODE = ENABLED entry
to the bp.conf file on VMware access hosts.
■ NetBackup for VMware does not support the Retain snapshot for Instant
Recovery or SLP management option on the policy Attributes tab.
NetBackup supports these features as follows:
■ For Instant Recovery, use the nbrestorevm command.
See “About Instant Recovery for VMware” on page 268.
■ For SLP management of snapshots, use Replication Director.
For more information, see the NetBackup Replication Director Solutions
Guide.
■ For dual-boot virtual machines, NetBackup does not support the following policy
options: Enable file recovery from VM backup, Exclude deleted blocks,
Exclude swap and paging files, Exclude boot disk, Exclude all data disks.
■ 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 disks to be excluded.
■ 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 344.
■ 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 119.
■ Several notes and limitations apply to the hotadd transport mode.
See “Notes on the hotadd transport mode” on page 44.
■ Note the following information about NetBackup for VMware compression and
encryption:
Notes and prerequisites 37
Notes on VMware Virtual Volumes (VVols)
■ For limitations for the Exchange, SharePoint, and SQL Server applications, see
the respective guides for those workloads.
■ Several notes and limitations apply to the VMware restores.
See “Restore notes and restrictions” on page 226.
■ In vSphere, if your virtual environment has IPv6 addresses, use only the fully
qualified domain names (FQDNs) that are mapped to IPv6 addresses on the
DNS server.
Note: For a restore to a VVol datastore, NetBackup restores the data to the
virtual machine without creating a vSphere snapshot.
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 file
is only as large as the last byte that was written to the original file. Subsequent
writes to the restored file may be non-contiguous.
■ 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.
Non-appliance NetBackup supports backups and restores for multi-pathing under the
Linux host following conditions:
■ The virtual disk SAN transport allowed list specifies the device node
paths that you want to use for multipathing. The virtual disk
vixDiskLib.transport.san.allowList API function defines
the allowed list. For NetBackup purposes, Veritas recommends that
you include the DMP nodes in the allowed list. The following is an
example:
vixDiskLib.transport.san.allowList = /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 blocked list specifies the device node
paths you want to exclude from multipathing. The virtual disk
vixDiskLib.transport.san.denyList API function defines
the blocked list. For NetBackup purposes, Veritas recommends that
you set the blocked list to all. The following is an example:
vixDiskLib.transport.san.denyList = all
Specify the allowed list and the blocked list in the following file on the
backup host:
/usr/openv/lib/shared/vddk/lib64/vixDiskLib.ini
Note: For more information about the allowed list and the blocked list,
see the appropriate VMware documentation. For example, for Virtual
Disk Development Kit (VDDK) 6.0, the allowed list and the blocked list
function descriptions are in the VMware Virtual Disk Programming
Guide. Note that earlier versions of VDDK refer to the allowed list as
the whitelist and the blocked list as the blacklist.
Notes and prerequisites 41
NetBackup for VMware support for fault tolerant VMs
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
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
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
■ If you use block-level incremental backups (BLIBs) with a VMware VIP policy,
understand the effect of changing the VMware discovery host setting. After this
policy change, subsequent incremental backups will back up the full data, not
only the changed data, because the policy manager loses the backup references.
If the discovery host must be changed, a full schedule backup is needed after
the policy change to allow subsequent incremental backups to back up the
changed data.
■ In large VMware environments, consider increasing the Maximum bearer token
lifetime from the default value. Veritas has observed issues with discovery jobs
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 352.
Notes and prerequisites 46
Notes and limitations for the backup and restore of VMware tag associations
■ vMotion derived restore of an Instant Recovery (IR) or Instant Access (IA) VM,
does not apply storage policies.
■ To apply the storage policies information on full VM restore, the recovery host
version must be 10.3 or later.
■ vMotion derived restore of an Instant Recovery (or Instant Access) VM does
not apply storage policies.
Note: Ensure to provide -V option while creating LVM thin volumes when you create
thin-pool based volumes. If user fails, then the Index From Snapshot (IFS) job fails
unexpectedly. For more details, refer the lvcreate manual page for creating LVM
thin volumes.
Note: Windows backup host is not supported for the indexing of files on LVM2 thin
volumes for VMware policy and VMware Replication Director and Integrated
Snapshot Manager for VMware.
Chapter 5
VMware vSphere
privileges
This chapter includes the following topics:
■ VMware vSphere privileges for vApp restore and vApp restore to template
■ Provisioning
■ Allow read-only disk access
■ Allow virtual machine download
■ Snapshot management
■ Create snapshot
■ Remove snapshot
■ Edit inventory
■ Create new
■ Remove
■ Provisioning
■ Allow disk access
■ Allow read-only access
■ Allow virtual machine download
■ Snapshot management
■ Create snapshot
■ Remove snapshot
■ Revert to snapshot
■ Edit inventory
■ Create new
■ Unregister
VMware vSphere privileges 54
VMware vSphere privileges for NetBackup plug-in operations
Network
■ Assign network
Resource
VMware vSphere privileges 55
VMware vSphere privileges for NetBackup plug-in operations
■ Edit inventory
■ Create new
■ Register
■ Remove
■ Unregister
■ Interaction
■ Power off
■ Power on
■ Provisioning
■ Allow disk access
■ Snapshot management
■ Create snapshot
■ Remove snapshot
VMware vSphere privileges 56
VMware vSphere privileges for NetBackup plug-in operations
■ Edit Inventory
■ Create new
■ Remove
■ Interaction
■ Power on
■ Provisioning
■ Allow disk access
■ Snapshot management
■ Create snapshot
■ Remove snapshot
■ Revert to snapshot
Virtual machine
■ Change configuration
■ Toggle disk change tracking
■ Interaction
■ Power off
■ Power on
■ Provisioning
■ Allow disk access
■ Allow read-only disk access
■ Allow virtual machine download
■ Snapshot management
■ Create snapshot
■ Remove snapshot
■ Edit inventory
■ Create new
■ Remove
■ Guest operations
■ Guest operation modifications
■ Guest operation program execution
■ Guest operation queries
■ Provisioning
■ Allow disk access
■ Allow read-only access
■ Allow virtual machine download
■ Snapshot management
■ Create snapshot
■ Remove snapshot
■ Edit inventory
■ Create new
■ Remove
■ Interaction
■ Power off
■ Power on
■ Provisioning
■ Allow disk access
■ Allow read-only access
■ Allow virtual machine download
■ Snapshot management
■ Create snapshot
■ Remove snapshot
■ Remove snapshot
■ Browse datastore
Global privileges
■ Enable methods
■ Disable methods
Network privileges
■ Assign network
Resource privileges
■ Assign virtual machine to resource pool
vApp privileges
■ Add virtual machine
■ Assign resource pool
■ Create
■ Move
■ Power off
■ Power on
Virtual machine privileges
■ Change configuration
■ Acquire disk lease
■ Add existing disk
■ Add new disk
■ Add or remove device
■ Advanced configuration
■ Change settings
■ Change Swapfile placement
■ Modify device settings
■ Remove disk
■ Toggle disk change tracking
■ Edit inventory
■ Create new
■ Register
VMware vSphere privileges 62
Optional permissions for better integration with VMware vSphere
■ Provisioning
■ Allow disk access
■ Allow read-only access
■ Snapshot management
■ Create snapshot
■ Remove snapshot
■ Revert to snapshot
The Post vCenter events option in the advanced attributes of a VMware policy
lets NetBackup send backup-related events to the vCenter server.
See “Post vCenter events option (VMware advanced attributes)” on page 100.
Chapter 6
Managing VMware servers
This chapter includes the following topics:
Note: Automatic discovery of VMs and other objects in the vCenter, ESXi server,
VMware Cloud Director server, or Restore ESXi server begins: when server
credentials are added or updated through the web UI or an API. However, the
server's VMs and other objects might not appear in the UI immediately. They appear
after the discovery process for the VMware server completes. Discovery also occurs
at set intervals according to the VMWARE_AUTODISCOVERY_INTERVAL option. (The
default interval is every 8 hours.) More information about this option is available:
See “Change the autodiscovery frequency of VMware assets” on page 64.
vCenter 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:
ESXi Designates a standalone ESXi server that a vCenter server does not manage.
NetBackup can browse the ESXi server to present a list of its virtual machines
for backup. You can also restore virtual machines to this ESXi server. To
use the server as a target for restores, enter the credentials that provide full
access privileges to the ESXi server.
Managing VMware servers 68
Add VMware servers
Restore ESXi Designates an ESXi server to which NetBackup can restore virtual machines.
You must enter the credentials that provide full access privileges to the
server.
Note: NetBackup accesses this type of server for restores only, not for
backups.
■ For large environments with hundreds of hosts, NetBackup may not need
full access to the vCenter server. With the restore ESXi server type, you
can give NetBackup full access to a single ESXi server that is dedicated
to restore.
■ SAN-based restores that go directly to a restore ESXi server are faster
than restores that go through the vCenter server.
■ Allows restoring to an ESXi 5.x or later server that a vCenter 5.x or later
server manages. NetBackup uses vCenter to create the virtual machine.
NetBackup then writes the .vmdk files directly to the ESXi server using
the Restore ESXi Server credentials to that server.
Note: VMware does not support the restore of virtual machines directly to
an ESXi 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 ESXi server to be used for restores. You must
add NetBackup restore credentials for that ESXi server by means of the
Restore ESXi type.
For further information on the restore ESX server, refer to the following
Veritas tech note:
http://www.veritas.com/docs/000007351
VMware Cloud Director Designates a Cloud Director server. NetBackup can browse the vCloud
environment on this server to present a list of its virtual machines for backup.
You can also restore virtual machines to this server. Note the following:
■ 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>."
Note: If you delete a server, all virtual machines that are associated with the deleted
VMware server are no longer protected. You can still recover existing backup
images, but backups of VMs on this server fail.
Note: The web UI must discover the VMs on each server before the query can
select from them. If a VMware server was recently added in the web UI, its VMs
may not have been discovered.
See “Change the autodiscovery frequency of VMware assets” on page 64.
To discover the VMs immediately:
See “Discover VMware server assets manually” on page 64.
Note: Intelligent VM groups are not supported for VMware Cloud Director VMs.
6 To add a condition, use the drop-downs to select a keyword and operator and
then enter a value.
The options are described after this procedure: Query options for creating
intelligent VM groups.
Examples are also available: Example queries
To change the effect of the query, click Condition and click AND or OR, then
select the keyword, operator, and value for the condition. For example:
Note: When you click Preview or you save the group, the query options are
treated as case-sensitive when the VMs are selected for the group. Under
Virtual machines, if you click on a VM that was not selected for the group,
the Member of virtual machine groups field reads none.
However, when you add the group to a protection plan, some of the query
options are treated as case-insensitive when the protection plan’s backup runs.
As a result, the same VM may now be included in the group and is backed up.
For the case behavior of each option, see Query options for creating intelligent
VM groups.
connectionState The status of the VM connection to the ESX server. For example, No
if a virtual machine's ESX server is down, that virtual machine is
not connected.
cluster The name of the cluster (group of ESXi servers) where the VMs No
reside.
datacenterPath The folder structure that defines the path to a datacenter. Use this Yes
option if the datacenter name that you want to filter on is not unique
in your environment.
host The name of the ESXi server. The ESXi host name must match No
the name as defined in the vCenter server.
guestOS The VM guest OS type that is recorded in the vSphere client. Yes
networkName The name of the network switch (on an ESX server) or distributed No
switch.
version The VMware version of the virtual machine. For example, vmx-04, Yes
vmx-07, vmx-08.
Managing VMware servers 76
Create an intelligent VM group
vmxDatastore The name of the VMX datastore (sometimes called the vmx Yes
directory or configuration datastore).
vmxDatastoreType The type of the VMX datastore. Values are NFS or VMFS. No
Query operators
Table 6-3 Query operators
Operator Description
Starts with Matches the value when it occurs at the start of a string.
For example: If the value you enter is box, this option matches the
string box_car but not flatbox.
Ends with Matches the value when it occurs at the end of a string.
For example: If the value you enter is dev, this option matches the
string 01dev but not 01dev99 or devOP.
Contains Matches the value you enter wherever that value occurs in the string.
For example: If the value you enter is dev, this option matches strings
such as 01dev, 01dev99, devOP, and development_machine.
For example: If the value you enter is VMtest27, this option matches
VMTest27 (same case), but not vmtest27, vmTEST27, or VMtest28.
!= Matches any value that is not equal to the value that you enter.
Example queries
In this example, the query adds to the group any VM that has prod in its display
name.
Managing VMware servers 77
Create an intelligent VM group
To change the effect of the query, click Condition and click AND or OR, then select
the keyword, operator, and value for the condition. For example:
This example uses AND to narrow the scope of the query: it selects only the VMs
that have prod in their display name and that also have a tag named eng. If a VM
does not have prod in its display name as well as a tag named eng, that VM is not
added to the group.
In this example, OR causes the query to add the following to the group:
■ The VMs that have prod in their display name (regardless of any tags).
■ The VMs that have a tag named eng (regardless of the display name).
You can also add sub-queries to a condition, if necessary. Click Sub-query and
click AND or OR, then select the keyword, operator, and value for the sub-query
condition. For example:
Managing VMware servers 78
Create an intelligent VM group
In this example, the sub-query causes the query to narrow the scope further. From
the VMs that have both prod in their display name and a tag named eng, only the
VMs in clusters that start with clust are selected.
VMFolder examples
For example, assume the following VM folders containing a total of 65 VMs:
vm\VM_backup_prod1 (contains 5 VMs)
vm\VM_backup_prod1\cluster1(contains 10 VMs)
To include the VMs in vm\VM_backup_prod1 but not the VMs in cluster1 or in any
other folder:
VMFolder Equal "vm\VM_backup_prod1"
OR
VMFolder StartsWith "vm\VM_backup_prod1"
Note: The first backslash is an escape character that causes the following backslash
to be interpreted as a literal character.
3 Click Add.
4 Enter the name of the access host and then click Add.
5 If the NetBackup primary server is clustered in a failover environment: repeat
this procedure to add the backup host to each primary server node in the
cluster.
4 Select the VMware resource type you want to change and then Edit.
See “VMware resource types and limits” on page 82.
Note: The Snapshot resource limit is different from the other resource types.
It sets a limit for the number of simultaneous snapshot-only operations within
a vCenter domain, such as create snapshot and delete snapshot. This limit
applies only during the snapshot creation and snapshot deletion phases of a
backup. It does not control the number of simultaneous backup jobs. This
Snapshot limit can be useful for controlling the effect that multiple snapshot
operations have on the vCenter server. Add a specific vCenter to override the
global snapshot setting for that vCenter.
5 Choose from the following options.
Set a global limit for a Locate the Global setting and select the Limits value
VMware resource type. that you want to apply.
At any point you can Click Reset default values to remove all the overrides
and set all global VMware resource limits to their default values.
6 Click Save.
7 To enable resource limits for restores, select the Apply limits to restore jobs
check box.
Note: Restore resource limits are cumulative. The limit represents the number
of combined backup and restores that can run simultaneously against a
resource type. Restore resource limits only apply to vCenter, ESX server, and
Datastore resource types.
Restores to ESXi clusters, datastore clusters, and storage policies do not count
against resource limit settings. As VMware determines the placement of the
VM once it is created.
Managing VMware servers 82
Change resource limits for VMware resource types
ECA_TRUST_STORE_PATH Specifies the file path to the certificate bundle file that contains all trusted
root CA certificates.
This option is specific to file-based certificates. You should not configure this
option if the Windows certificate store is used.
If you have already configured this external CA option, append the VMware
CA certificates to the existing external certificate trust store.
If you have not configured the option, add all the required virtualization server
CA certificates to the trust store and set the option.
ECA_CRL_PATH Specifies the path to the directory where the certificate revocation lists (CRL)
of the external CA are located.
If the option is not configured, add all the required CRLs to the CRL cache
and then set the option.
VIRTUALIZATION_CRL_CHECK Lets you validate the revocation status of the virtualization server certificate
against the CRLs.
VIRTUALIZATION_HOSTS_CONNECT_TIMEOUT Lets you specify the duration (in seconds) after which the connection between
NetBackup and vCloud Director server ends.
VMWARE_TLS_MINIMUM_V1_2 Lets you specify the Transport Layer Security (TLS) version to be used for
communication between NetBackup and VMware servers.
Chapter 7
Configuring backup
policies for VMware
This chapter includes the following topics:
■ 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.
8 Click the Clients tab to select the virtual machines to back up.
Note: If you change the Virtual machines for backup option from manual
selection to intelligent policy (or vice versa), the next backup of the VM is a
regular full backup. This action occurs even if a backup already exists for that
VM. For a policy that uses Enable block-level incremental backup (BLIB)
or BLIB plus Accelerator, the backup processing is not limited to changed
blocks only.
Select manually, and You can type the host name in the Enter the VM hostname field, or select Browse virtual
click Add. machines.
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 114.
query
See “Configure automatic virtual machine selection” on page 124.
Enables backup of the virtual machines that reside in a vCloud environment. 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 displays when you click Select automatically through VMware intelligent
perform automatic policy query. This host discovers virtual machines and automatically selects them for backup
virtual machine based on the query rules.
selection
See “About automatic virtual machine selection for NetBackup for VMware” on page 114.
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)
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 list contains any media servers that are supported as backup host. It also contains
any NetBackup clients that were added to the VMware access hosts list.
For a list of supported platforms for the backup host, see the NetBackup Software
Compatibility List.
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, ext4, and XFS.
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.
Configuring backup policies for VMware 92
Backup options on the VMware tab
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.
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. NetBackup cannot select a VMware virtual
machine for backup if it cannot obtain an IP address for the virtual machine.
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 41.
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.)
existed on the virtual machine when it was backed up, note: NetBackup tries to
restore all .vmdk files to the snapshot datastore. As a result, the datastore may not
have enough space for the .vmdk files, and the restore fails. (For a successful
restore, you can restore the virtual machine to an alternate location. Select a
datastore for the .vmdk files.)
Option Description
Remove NetBackup snapshots If a virtual machine snapshot exists that a NetBackup backup previously created:
and continue the backup NetBackup removes the old snapshot, creates an updated snapshot, and proceeds
with the virtual machine backup.
Continue the backup NetBackup ignores any existing virtual machine snapshots (including snapshots
previously created by NetBackup) and proceeds with snapshot creation and the
backup.
Stop the backup if any If any snapshot exists on the virtual machine, NetBackup stops the job for that
snapshots exist virtual machine only.
Stop the backup if NetBackup If a virtual machine snapshot exists that a NetBackup backup previously created,
snapshots exist NetBackup stops the job for that virtual machine only.
Mode Description
Mode Description
HotAdd Lets you run the VMware backup host in a virtual machine.
Note: For the virtual machines that use VVols, the virtual machine and the backup host
(hotadd) virtual machine must reside on the same VVol datastore.
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.
Actions > Move up Use these options to change the order in which NetBackup tries each selected mode.
Actions > 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.
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.
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.
Configuring backup policies for VMware 97
Backup options on the VMware tab
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.
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
files.
Note: If this option is enabled and NetBackup does not have access to the vCenter where the
active virtual machine runs: the policies in the Query Builder 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.
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.
Configuring backup policies for VMware 98
Backup options on the VMware tab
Configuration Description
parameter
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 222.
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.
■ 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 “Post vCenter events option (VMware advanced attributes)” on page 100.
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.
Configuring backup policies for VMware 99
Backup options on the VMware tab
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.
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.
Sets a time-out period (in minutes) for completion of the snapshot. The default is 0, which means
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.
Determines the wait time (in seconds) before the snapshot is retried. The default is 10 seconds.
The range is 0 to 3600.
Perform snapshot without quiescing if quiesced snapshots fail
This option is disabled by default. If it is enabled and a quiesced snapshot cannot be created,
the snapshot is created without quiescing I/O on the virtual machine. The resulting snapshot is
referred to as crash consistent. In this case, you must perform your own analysis for data
consistency in the backed-up data. The associated snapshot job completes with a status of 0
(Success). You can configure this job to return status 1 (Partial success). Add the policy name
to the VM_SNAPSHOT_QUIESCE_STATUS configuration setting in bp.conf on the media server
and the backup host machines.
If this option is disabled, the backup fails if a quiesced snapshot cannot be created.
Configuring backup policies for VMware 100
Exclude disks tab
with care. These options are intended only for the virtual machines that have multiple
virtual disks.
The following options appear on the Exclude disks tab.
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 103.
Note: A virtual machine that is restored from this backup cannot start.
Data files are available in the restored data disks.
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 103.
Note: When the virtual machine is restored from the backup, the virtual
machine data for the data disk may be missing or incomplete.
Configuring backup policies for VMware 102
Exclude disks tab
Table 7-7 Options on the Exclude disks tab of the policy (continued)
Option Description
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
For more information, see the NetBackup Plug-in for VMware vSphere
Web Client Guide or the NetBackup Plug-in for VMware vSphere Client
(HTML5) Guide.
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 exclude.
Repeat for each disk that you want to exclude.
To delete a disk from the list of disks to exclude, locate the disk
controller type and device numbers, and then click Delete.
Note: NetBackup does not support the exclude disks options for Replication Director
backups.
Note: When the virtual machine is restored from the backup, the virtual machine
data for the boot disk may be missing or incomplete.
■ Adding a virtual disk and changing this option before the next backup can
have unexpected results.
See “Exclude disks from backups: an example to avoid” on page 105.
■ 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.
Note: When a virtual machine is restored from the backup, the virtual machine
data for the excluded disk may be missing or incomplete.
■ 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.
■ On the Exclude disks tab of the backup policy, you must select the option
Specific disks to be excluded and add each control ID.
■ If the disks do not exist on the specified controller and device IDs, none of
the disks (except independent disks) are excluded.
■ If you remove controllers from the exclusion list between the differential
backups, only those files that changed since the last backup are available
to restore. All files are available to restore after the next full backup.
■ If you add controllers to the exclusion list between the differential backups,
their disks are excluded from the next backup.
Caution: The exclude disk options can have unintended consequences if these
rules are not followed.
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 “Restore individual files and folders” on page 250.
Configuring backup policies for VMware 106
Browse for VMware virtual machines
■ If the Excludes disks option was set to Exclude boot disk: You can restore
the virtual machine and move the restored data disks 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 virtual machines is not selected.
■ Browse 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 primary server's policies.
Last update
This column 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 primary server must have credentials for the VMware vCenter
or ESX servers.
See “Add VMware servers” on page 65.
Configuring backup policies for VMware 107
Limiting the VMware servers that NetBackup searches when browsing for virtual machines
■ DNS problems may prevent or slow down discovery of the virtual machines.
■ 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.
■ The browsing time out value must not be set too low.
See “Changing the browsing timeout for virtual machine discovery” on page 337.
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 you manually add virtual machines to the Clients tab.
[BACKUP]
"excludeVMservers"="server1,server2,server3"
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 92.
■ 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.
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 turned off, NetBackup can
machines that are currently turned on 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 physical boundaries are vCenter servers, ESX servers,
physical boundaries datastores, and clusters. For example, a query rule can select all the virtual
machines in a particular ESX server, so the policy backs up only those virtual
machines.
Back up virtual machines based on Examples of logical boundaries are folders, vApps, templates, and resource
logical boundaries 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 based on the user
VMware tags assigned tags.
Note: In the NetBackup web UI, you must use OData keywords and OData operators
in query rules:
See “Query Builder field reference” on page 140.
Displayname Contains contains(displayName, NetBackup selects the virtual machines that have
"vm" 'vm') the characters vm anywhere in their display names.
Displayname EndsWith endswith(displayName, NetBackup selects the virtual machines that have
"vm" 'vm') the characters vm at the end of their display names.
Datacenter AnyOf datacenter in NetBackup selects the virtual machines that use
"datacenter1","datacenter2" ('datacenter1','datacenter2') datacenter1 or datacenter2.
Configuring a VMware Intelligent Policy 117
Important notes on automatic virtual machine selection
Powerstate Equal powerState eq NetBackup selects only the virtual machines that
poweredOn 'poweredOn' are currently turned on.
Powerstate Equal powerState eq NetBackup selects only virtual machines that are
poweredOn AND Tag Equal 'poweredOn' and tagName currently powered on with the "Production" tag.
"Production" eq 'Production'
* Use OData keywords only when you build queries with the NetBackup web UI.
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.
Configuring a VMware Intelligent Policy 118
Important notes on automatic virtual machine selection
Note! Explanation
Test the query rules. Test the query rules ahead of time. The policy includes a Test Query function for that
purpose. It's important to verify that your query operates as expected. Otherwise, the
query may 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.
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
For a list of the backed up virtual machines, use the NetBackup Activity Monitor.
See “Using the Activity monitor to monitor virtual machine backups” on page 222.
Configuring a VMware Intelligent Policy 119
NetBackup requirements for automatic virtual machine selection
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.
Set rules for virtual machine selection On the policy Clients tab, select Select automatically through VMware
in the policy Query builder. intelligent policy query.
Choose a host for virtual machine selection (the default is the VMware backup
host).
Test the rules. On the Clients tab, select Test query. 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.
Run a backup. When the policy runs, NetBackup consults the rules in the Query builder,
creates a list of virtual machines, and backs them up.
Monitor the backup. To see which virtual machines were backed up, use the Activity monitor.
See “Using the Activity monitor to monitor virtual machine backups” on page 222.
Option Description
Select manually Click this option and click Add 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 VMware Cloud Enables the backup of the virtual machines that reside in a vCloud environment. This option
Director integration requires the 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
Advanced mode Places the Query Builder in Advanced mode for manual entry of rules.
Option Description
Actions > Edit Use this option to change an existing query rule when in Basic mode, as follows:
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 rediscovers virtual machines and consults the query rules.
At that time, NetBackup backs up the virtual machines that match the rules.
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, when the policy runs next NetBackup rediscovers the 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 123.
Configuring a VMware Intelligent Policy 123
About the Reuse VM selection query results option
machine under its original name. Because the reuse period has not expired,
NetBackup does not rediscover virtual machines and therefore cannot identify the
virtual machine by its new name. (NetBackup identifies the virtual machine by its
instance UUID.) To have backed up the virtual machine with its new name, the
Reuse period should have been set to a shorter interval.
Note: The virtual machines that have been selected for backup are not displayed
on the policy Clients tab. To see which virtual machines NetBackup has selected
and backed up, refer to the following topics.
See “Using the Activity monitor to monitor virtual machine backups” on page 222.
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.
Note: In the NetBackup web UI, you must use OData keywords and OData operators
in query rules:
See “Query Builder field reference” on page 140.
When the backup job runs, NetBackup creates a list of the virtual machines that
currently meet the query rules and backs them up.
The following is the policy Clients tab with Select automatically through VMware
intelligent policy query selected.
Configuring a VMware Intelligent Policy 125
Configure automatic virtual machine selection
Note: In the NetBackup web UI, you must use OData keywords and OData operators
in query rules:
See “Query Builder field reference” on page 140.
Note: In the NetBackup web UI, you must use OData keywords and OData operators
in query rules:
See “Query Builder field reference” on page 140.
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.
See “AND vs. OR in queries” on page 128.
See “Order of operations in queries (precedence rules)” on page 134.
See “Parentheses in compound queries” on page 135.
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 8-7 provides the examples with AND and OR.
Configuring a VMware Intelligent Policy 129
Examples for the NetBackup Query Builder
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.
Note: The advanced mode of the Query Builder uses OData keywords and
operators.
See “Query Builder field reference” on page 140.
VIP Example query OData example Query result when backup job runs
query *
No query rules specified No query rules specified All virtual machines are added to the backup list. Exceptions are
(Query pane is empty) (Query pane is empty) those that do not have a host name, or that have invalid characters
in the display name.
Displayname Contains contains(displayName, All virtual machines with the display names that contain the string
"prod" 'prod') "prod" are added to the backup list.
powerstate Equal powerState eq Any virtual machine that is turned on is added to the backup list.
"poweredOn" 'poweredOn'
VMGuestOS Equal vmGuestOs eq All virtual machines with a guest OS of Windows 7 are added to
"windows7Guest" 'windows7Guest' the backup list.
DisplayName AnyOf displayName in The virtual machines named "grayfox7”and "grayfox9" are added
"grayfox7”,"grayfox9" ('grayfox7', 'grayfox9') to the backup list. (Note that each value must be enclosed in its
own quotes, with a comma in between.)
powerstate Equal powerState eq In datastore Storage_1: any virtual machine that is turned on and
"poweredOn" 'poweredOn' has a guest OS of Red Hat Linux 4 is added to the backup list.
vCenter Equal vCenter eq In the vCenter server vCenterServer_1, virtual machines that are
"vCenterServer_1" 'vCenterServer_1' in ESX servers with names containing "prod" are added to the
backup list.
AND ESXserver and contains(host,
Contains "prod" 'prod')
Cluster Equal cluster eq 'VMcluster_1' In cluster VMcluster_1, all virtual machines with the host names
"VMcluster_1" that contain "Finance", in ESX servers ESX_1, ESX_2, ESX_3,
and host in ('ESX_1',
are added to the backup list.
AND ESXserver AnyOf 'ESX_2', 'ESX_3')
"ESX_1","ESX_2","ESX_3"
and contains(hostName,
AND VMHostName 'Finance')
Contains "Finance"
Configuring a VMware Intelligent Policy 131
The IsSet operator in queries
VIP Example query OData example Query result when backup job runs
query *
VMFolder StartsWith startswith(vmFolder, For any folder whose name starts with "Prod" or whose name is
"Prod" 'Prod') not "VM_test", add its virtual machines to the backup list.
Examples with IsSet See “The IsSet operator in queries” on page 131.
Datacenter Contains contains(datacenter, This query selects any virtual machine where the Datacenter
"prod" AND Tag Equal 'prod') contains "prod" and the user-specified tag is "Finance".
"Finance"
and tagName eq
'Finance'
Datacenter Equal "prod" datacenter eq 'prod' Selects virtual machines where Datacenter is "prod" but excludes
AND NOT Tag Equal any virtual machines that have the user-specified tag "Test".
and not (tagName eq
"Test"
'test')
*Use OData operators only when you build queries with the NetBackup web UI's advanced mode under the Query
Builder or with NetBackup APIs.
Query rules with OData query rules Effect of the query on virtual machine selection
IsSet operator with IsSet operator *
Cluster Contains "dev" contains(cluster, 'dev') INCLUDED: Any virtual machine in a cluster that has a name
and dnsName ne null that contains the string "dev" if the virtual machine also has a
AND VMDNSName IsSet
VMware DNS name.
Displayname Contains contains(displayName, INCLUDED: Any virtual machine with a display name that
"prod" 'prod') and hostName ne contains the string "prod" if the virtual machine also has a host
null name.
AND VMHostName IsSet
EXCLUDED: Any virtual machines that do not have host names.
* Use OData operators only when you build queries with the NetBackup web UI.
The following table describes the policies that are designed to back up the virtual
environment in three phases. Note that each policy relies on a different setting for
the Primary VM identifier parameter.
First policy VMHostName IsSet hostName ne null This policy backs up all virtual
machines that have a host name.
Primary VM identifier
Any virtual machines that do not
parameter: VM hostname
have a host name are excluded from
the backup.
Second policy NOT VMHostName IsSet not (hostName ne null) This policy backs up all virtual
and vmHasVdsName eq machines that do not have a host
Primary VM identifier AND VMHasVDSName
'TRUE' name but that do have a valid display
parameter: VM display Equal 'TRUE'
name. Any virtual machines that do
name
not have a host name or a valid
display name are excluded from the
backup.
Third policy NOT VMHostName IsSet not (hostName ne null) This policy backs up the virtual
and not(vmHasVdsName machines that were not backed up
Primary VM identifier AND NOT
eq 'TRUE') by the first two policies. This policy
parameter: VM UUID VMHasVDSName Equal
selects the virtual machines that do
'TRUE'
not have a host name or a valid
display name, but that do have a
UUID.
* Use OData operators only when you build queries with the NetBackup web UI.
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 154.
See “The basics of a NetBackup query rule” on page 116.
Configuring a VMware Intelligent Policy 134
Order of operations in queries (precedence rules)
x Equal y Is x equal to y 4
Note: Only the Query Builder's Advanced Mode supports the use of parentheses.
Configuring a VMware Intelligent Policy 136
Query rules for resource pools
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).
Configuring a VMware Intelligent Policy 137
Query rules for datacenter folders (host folder)
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).
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"
Configuring a VMware Intelligent Policy 138
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 136.
Note: If an ESX cluster is not contained within a folder and you click the browse
button: The ESX cluster name appears in the List of possible values for Value
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 137.
Note: In the web UI, the advanced mode of the Query Builder uses OData keywords
and operators.
Table 8-14 describes the drop-down fields and options for creating rules in the
Query Builder.
For the first rule, the 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 8-14 Query Builder options: Join, Field, Operator, Value (continued)
Browse icon Allows browsing for specific values, depending on the selections that
are made in the other drop-down fields.
Save Adds the current query selections to the Query pane as a new rule.
Field (keywords)
Table 8-15 describes the keywords available in the Field drop-down. The table also
indicates whether the values for each keyword (in the Value field) are case-sensitive.
Note: Use OData Field keywords only when you build queries with the NetBackup
web UI 's advanced mode under the Query Builder or with NetBackup APIs.
Keep in mind 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 Values.
datacenterPath datacenterPath Alphanumeric The folder structure that defines the path to
string a datacenter. Use this option if the
datacenter name that you want to filter on
is not unique in your environment.
datastoreFolder datastoreFolder Alphanumeric The name of the folder that contains the
string datastores.
datastoreNfsPath datastoreNfsPath Alphanumeric The folder structure that defines the path to
string an NFS datastore. Use this option if the NFS
host name of the datastore that you want to
filter on is not unique in your environment.
datastoreType datastoreType Alphanumeric The type of the datastore. Values are NFS,
string NFS41, VMFS, vsan, and VVOL.
hostFolder hostFolder Alphanumeric The folder path between the datacenter level
string and a cluster, ESX hosts, or a subfolder.
InstanceUUID Equal
"501b13c3-52de-9a06-cd9a-ecb25aa975d1"
networkName network Alphanumeric The name of the network switch (on an ESX
string server) or distributed switch.
networkFolder networkFolder Alphanumeric The name of the folder that contains the
string network.
VMFolder Equal
“vm\VM_backup_prod1”
VMFolder StartsWith
“vm\VM_backup_prod”
Note: Any VM that is in a path that begins
with vm\VM_backup_prod is included.
vmHasIde vmHasIde Boolean TRUE if the virtual machine has IDE drives.
VMXDatastoreFolder vmxDatastoreFolder Alphanumeric The name of the folder that contains the vmx
string datastores.
VMXDatastoreNFSHost vmxDatastoreNfsHost Alphanumeric The name of the vmx datastore's NFS host.
string
Values are not case-sensitive.
VMXDatastoreNFSPath vmxDatastoreNfsPath Alphanumeric The folder structure that defines the path to
string a vmx NFS datastore. Use this option if the
NFS host name of the datastore that you
want to filter on is not unique in your
environment.
VMXDatastoreType vmxDatastoreType Alphanumeric The type of the vmx datastore. Values are
string NFS or VMFS.
[vSphere custom [vSphere custom attributes] Alphanumeric The value of a custom attribute that is set in
attributes] string vSphere Client for one or more virtual
machines.
Operators
Table 8-16 describes the operators available in the Operator list. Note that in some
cases, the operator is that is used in the NetBackup Administration Console is
different from the operator that is used in the NetBackup web UI.
Note: Use OData operators only when you build queries with the NetBackup web
UI's advanced mode under the Query Builder or with NetBackup APIs.
NotEqual ne Matches any value that is not equal to the value in the Value field.
StartsWith startswith Matches the value in the Value field when it occurs at the start of a string.
For example: If the Value entry is "box", StartsWith matches the string
"box_car" but not "flatbox".
EndsWith endswith Matches the value in the Value field when it occurs at the end of a string.
For example: If the Value entry is "dev", EndsWith matches the string
"01dev" but not "01dev99", "devOP", or "Development_machine".
GreaterEqual ge Matches any value that is greater than or equal to the specified Value,
according to the UTF-8 collating sequence.
Less lt Matches any value that is less than the specified Value, according to
the UTF-8 collating sequence.
Equal eq Matches only the value that is specified in the Value field.
Greater gt Matches any value that is greater than the specified Value, according
to the UTF-8 collating sequence.
Contains contains Matches the value in the Values field wherever that value occurs in the
string.
For example: If the Value entry is "dev", Contains matches strings such
as "01dev", "01dev99", "devOP", and "Development_machine".
LessEqual le Matches any value that is less than or equal to the specified Value,
according to the UTF-8 collating sequence.
Value
Table 8-17 describes the characters that can be entered in the Value field. The
Field keyword determines case sensitivity.
Note: The character string you enter in the Value field must be enclosed in single
quotes or double quotes.
For example: "*prod*" matches the string "prod" preceded or followed by any characters.
For example: "prod??" matches the string "prod" followed by any two characters.
Escape character \ (backslash) escapes the wildcard or meta-character that follows it.
For example: To search for a string that contains an asterisk (such as test*), enter "test\*"
Quotation marks Note: The characters you enter in Value 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 222.
The Test Query function runs in the background. You can continue to configure
the policy while the test runs. Any changes you make in the Query Builder however
are not included in the currently running test. You must re-initiate the test to see
the results of your Query Builder changes.
Configuring a VMware Intelligent Policy 153
Test Query: Failed virtual machines
Table 8-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 222.
See “About automatic virtual machine selection for NetBackup for VMware”
on page 114.
See “Configure automatic virtual machine selection” on page 124.
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.
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.
See “The IsSet operator in queries” on page 131.
Table 8-19 Effect of Primary VM identifier parameter and query rules on test
query results
Primary VM Query rule in Query OData query rule in Test query result
identifier setting on Builder Query Builder *
VMware policy tab
Table 8-19 Effect of Primary VM identifier parameter and query rules on test
query results (continued)
Primary VM Query rule in Query OData query rule in Test query result
identifier setting on Builder Query Builder *
VMware policy tab
VM display name Displayname Contains "VM" contains(displayName, '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" contains(hostName, 'VM') INCLUDED: Any virtual
machines that have a display
name and that have a host
name that contains "VM".
Table 8-19 Effect of Primary VM identifier parameter and query rules on test
query results (continued)
Primary VM Query rule in Query OData query rule in Test query result
identifier setting on Builder Query Builder *
VMware policy tab
* Use OData keywords only when you build queries with the NetBackup web UI.
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.
Configuring a VMware Intelligent Policy 158
Reducing the time required for VM discovery in a large VMware environment
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.
The following is an example of a policy Query Builder rule that searches all VMware
servers and all virtual machines:
vmware:/?filter=Displayname Contains "vm1"
■ About reporting the amount of Accelerator backup data that was transferred
over the network
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.
Note: After upgrade from any of the previous release, If the customer has configured
accelerator enabled Hyper-v policy, then optimization will be lost only for first backup.
For virtual machine restore, note the following about full vs. incremental backups
with Accelerator:
■ For applications (Exchange, SQL, and SharePoint), NetBackup Accelerator
supports Granular Recovery Technology (GRT) restores from full backups only.
Use Accelerator to back up virtual machines 162
How the NetBackup Accelerator works with virtual machines
■ For any other kind of virtual machine restore, the Accelerator supports full
backups and incremental backups.
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:
■ 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:
■ It is recommended that you do 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
Veritas Technical Support 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
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.
Use Accelerator to back up virtual machines 164
Accelerator forced rescan for virtual machines (schedule attribute)
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.
■ 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 changing your incrementals to fulls, you must weigh the advantage of
Accelerator fulls against the greater catalog space that fulls require compared to
incrementals.
...
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%.
of backup data that travels the network. For backup reporting, it may be important
to distinguish between the backup image size and the amount of data that was
transferred over the network.
For Accelerator backups, the network-transferred data can appear in the output of
the following NetBackup commands: bpdbjobs, bpimagelist, and bpclimagelist.
Table 9-1 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.
Use Accelerator to back up virtual machines 168
About reporting the amount of Accelerator backup data that was transferred over the network
You can use the following commands to show the amount of data that was
transferred over the network for an Accelerator backup.
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-2 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:
Use Accelerator to back up virtual machines 169
Replacing the Accelerator image size with the network-transferred data in NetBackup command output
See “Replacing the Accelerator image size with the network-transferred data in
NetBackup command output” on page 169.
Additional details on these commands are available in the NetBackup Commands
Reference Guide.
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
Chapter 10
Configuring protection
plans for VMware
This chapter includes the following topics:
Note: Protection plans are not supported for VMware Cloud Director VMs.
5 Click Protect.
The results of your choices appear under Virtual machines or Intelligent VM
groups.
Schedules
The following schedule settings are included in a protection plan.
Note that when you customize a protection plan for an asset, you can only edit the
following schedule settings:
■ Start window
Option Description
Keep for (retention) How long to keep the files that were backed
up by the schedule.
Backup options
Table 10-2 Backup options for protection plans
Option Description
Select server or host to use The host that performs backups on behalf of the virtual machines. Users can choose
for backups Automatic to have NetBackup pick the media server, based on the storage unit. Or,
the user can select another host from the list. These hosts are other media servers in
the environment or hosts that are configured as an access host.
If a snapshot exists, perform Specifies the action that NetBackup takes when a snapshot is discovered before
the following action NetBackup creates a new snapshot for the virtual machine backup. For example, users
can choose to stop a backup if any snapshots exist. If snapshots are not automatically
deleted, the performance of the virtual machine may eventually decline. Undeleted
snapshots can cause restore failures due to lack of disk space.
Exclude selected virtual disks Specifies the virtual disks to exclude from backups.
from backups
See “Exclude disks from backups” on page 176.
Advanced options
Table 10-3 Advanced options for protection plans
Option Description
Enable virtual machine By default, I/O on the virtual machine is quiesced before NetBackup creates the
quiesce snapshot. In the majority of cases, you should use this default. Without quiescing file
activity, data consistency in the snapshot cannot be guaranteed. If you disable the
quiesce, you must analyze the backup data for consistency.
Allow the restore of This option allows users to restore application data from full backups of the virtual
application data from virtual machine. If this option is disabled, you can recover the entire virtual machine from the
machine backups backup, but you cannot recover the databases individually.
Note that in NetBackup 8.3 or earlier, application data for Microsoft Exchange Server
or Microsoft SharePoint Server must be restored with the NetBackup Backup, Archive,
and Restore interface. Data for Microsoft SQL Server must be restored with the
NetBackup MS SQL Client. See the documentation for your NetBackup database agent
for more details.
Transport mode Specifies the transport mode to use for backups or how to read the data from the
datastore. For more information on transport modes, see the vendor documentation
for your virtualization environment.
All boot disks Consider this option if you have another means of recreating the boot disk.
The virtual machine’s boot disk is not included in the backup. Any other disks are
backed up. Note: Data files are available in the restored data disks. However, you
cannot start a virtual machine that is restored from this backup.
All data disks Consider this option only if you have a separate protection plan that backs up the data
disks.
The virtual machine’s data disks are not included in the backup. Only the boot disk is
backed up. Note: When the virtual machine is restored from the backup, the virtual
machine data for the data disk may be missing or incomplete.
Exclude disks based on a Use this option to allow the VMware administrator to use a custom attribute to control
custom attribute which disks are excluded from backups.
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. The default
value for this attribute is NB_DISK_EXCLUDE_DISK. Or, you can choose your own
value. If you add disks to the custom attribute value between any differential backups,
those disks are excluded from the next backup.
The VMware administrator must use a VMware interface to apply the attribute to the
disks to exclude. See the NetBackup Plug-in for VMware vSphere Web Client Guide
or the NetBackup Plug-in for VMware vSphere Client (HTML5) Guide.
Specific disks to be excluded Use this option to exclude a specific disk by the disk type, controller, and LUN that
represent the virtual device node of the disk. Click Add to specify additional disks.
If you add controllers between any differential backups, their disks are excluded from
the next backup.
Option Description
Maximum length of time to The time, in minutes, to allow the snapshot operation to complete. If snapshots do not
complete a snapshot complete, set this option to a specific period to force a time-out. Use the Maximum
length of time to wait before a snapshot is retried setting to retry the snapshot at
a later time.
Maximum length of time to The time to wait (in seconds) before the snapshot is retried.
wait before a snapshot is
retried
Edit the settings for a VM ■ On the Virtual machines tab, click on the
VM that you want to edit.
Edit the settings for an intelligent group ■ On the Intelligent VM groups tab, click
on the group that you want to edit.
5 Click Protect.
Configuring protection plans for VMware 178
Remove protection from VMs or intelligent VM groups
Note: When you unsubscribe an asset from a protection plan, there is a possibility
that the asset displays Classic policy in the web UI. This situation can happen
when an asset is subscribed to a protection plan and a backup runs for that asset.
Then the asset is unsubscribed from the protection plan while it has a valid backup
image. The web UI displays Classic policy, but there may or may not be an active
policy protecting the asset.
Note: Sorting on assets across asset types, that is, without the Asset Type
filter, returns results grouped by asset types (Virtual Machine and Intelligent
VM groups) and sorted within each asset type.
Configuring protection plans for VMware 179
View the protection status of VMs or intelligent VM groups
Note: If the asset has been backed up, but Status indicates it has not, see the
following information.
See “Troubleshooting the status for a newly discovered VM” on page 330.
4 If the asset is not protected, click Add protection to select a protection plan.
See “Protect VMs or intelligent VM groups” on page 173.
Chapter 11
Malware scan
This chapter includes the following topics:
■ Not scanned
■ Not infected
■ Infected
■ All
Note: The malware scanner host can initiate a scan of three images at the
same time.
6 After the scan starts, you can see the Malware Scan Progress on Malware
Detection, the following fields are visible:
■ Not scanned
■ Not infected
■ Infected
■ Failed
■ In progress
■ Pending
Chapter 12
Instant access
This chapter includes the following topics:
■ VM malware scan
■ This feature is supported with backup copies that are created from the local or
cloud LSU (logical storage unit) using the NetBackup web UI or Instant Access
APIs.
For more information about limitations of instant access for cloud LSU (logical
storage unit), refer to the NetBackup Deduplication Guide.
■ This feature is supported with backup copies that are created from protection
plans or policies.
■ This feature is supported for NetBackup Appliance, NetBackup Virtual Appliance,
Flex Appliance, and Build Your Own (BYO) server.
Instant access on Flex WORM storage requires the following services:
■ NGINX, NFS. SAMBA, WINBIND (if Active directory is required), SPWS,
VPFS
■ The version of the ESXi server that is used to create a VM using Instant access
virtual machines must be equal to or newer than the version of the ESXi server
that contains the VM backup images.
■ For file or folder download with the Download option, the NetBackup web UI
must be able to access the media server with the same name or IP address that
the primary server uses to connect to that media server.
See Troubleshooting VMware backups on page 332.
■ If the media server appliance uses a third-party certificate, you need to create
certain configurations on the NetBackup primary server before you use this
feature.
For more information, refer to the "Third-party certificates" and "Implementing
third-party SSL certificates" sections in the NetBackup Appliance Security Guide.
■ This feature does not support restore of multiple files or folders, which are located
in different volumes, partitions, or disks.
■ Use the Windows administrator account credentials when you restore multiple
files or folders to a Windows VM. You must be logged on to the target Windows
VM with these account credentials.
■ Some ACL entries are not in the restored file because ACL entries for these
users or groups cannot be restored. For example, TrustedInstallers, All
Application Packages.
■ The Instant Access feature does not support a Windows 10 compact operating
system. To verify if your operating system is compressed, run compact
"/compactos:query" on the command prompt before backing up your VM.
To disable the compression, run "compact /compactos:never" on the command
prompt before backing up your VM. You can then use the Instant Access feature
for your VM backups.
■ To restore files and folders, the target VM must be in a normal state, and not in
a sleep or hibernate mode.
■ A 5-minutes-alive-session threshold is defined in Appliance and BYO web server
NGINX. The files and folders that are selected for download must be compressed
and downloaded within this threshold.
■ To create an instant access virtual machine, you must have read and write
access to the VMware data center where the virtual machine is created.
■ To ensure that Instant Access works effectively after the storage server and
primary server are upgraded from an earlier NetBackup version, restart the
NetBackup Web Service on the upgraded primary server with the following
commands:
/usr/openv/netbackup/bin/nbwmc stop
Instant access 185
Create an instant access VM
/usr/openv/netbackup/bin/nbwmc start
■ If you have to download or restore files or folders from a Windows VM, ensure
that the number of Windows registry hives are less than 10000.
More information is available about registry hives.
■ An image cannot be deleted if an instant access VM is created from it. The
instant access feature uses data from a backup image. If the image is expired,
the data might be unavailable and the instant access VM may face data loss.
After the instance access VM is deleted, the image can be expired.
■ The instant access feature does not support hard links. If you create a universal
share from an image and the image has hard link files, vpfsd shows show these
hard link files as having 0 bytes size.
■ Instant access supports the DataSets feature from vSphere 8.0.
3 Click the Recovery points tab, then click the date on which the backup
occurred.
The available images appear in rows with the backup timestamp for each
image.
4 Select the Allow the selection of recovery of points that are
malware-affected to be able to recover malware affected images. This option
is only available for the recovery points which contains malware-affected
images.
Note: This options is enabled only for users with required permissions.
5 On the image or the copy of the image that has the option to recover using
instant access, click Recover > Create instant access virtual machine.
6 Review the recovery settings and make changes if needed.
Note the Recovery options:
Allow overwrite of If a VM with the same display name exists at the destination,
existing virtual that VM must be deleted before the recovery begins. Otherwise,
machine the recovery fails.
Enable vMotion Starts the migration of the VM after it is created and then displays
progress of the VM migration.
Note: For a NetBackup 8.1.2 storage server, the vMotion option
is not used even if it is enabled.
7 Click Create.
NetBackup makes a snapshot of the VM backup image and creates an instant
access mount point. The snapshot of the image appears on the Instant access
virtual machines tab. You can now use the VM like any other VM on the ESXi
server.
Instant access 187
Restore files and folders from a VM backup image
8 For details on the restored VM, click on the VM under the Instant access
virtual machines tab and click View details.
9 When you are finished with the VM, you can click Delete to remove the mounted
VM snapshot. The VM is removed from the ESXi server.
Note: This option is enabled only for users with the necessary RBAC role or
related RBAC permissions.
5 On the image or the copy of the image that has the option to recover using
instant access, click Recover > Restore files and folders.
NetBackup creates an instant access mount point in the background.
Instant access 188
Restore files and folders from a VM backup image
Note: This option is displayed only when you select the Allow the selection
of recovery of points that are malware-affected option.
Note: This options is enabled only for users with required permissions.
5 On the image or the copy of the image that has the option to recover using
instant access, click Recover > Download files and folders.
6 Select the files and click Add to download list.
Click on a folder to drill into it. Use the folder path to navigate back to higher
levels in the hierarchy.
■ setsebool -P httpd_can_network_connect 1
■ Ensure that the /mnt folder on the storage server is not mounted by any
mount points directly. Mount points should be mounted to its subfolders.
■ Enable the logrotate permission in selinux using the following command:
semanage permissive -a logrotate_t
■ For BYO, docker/podman container is used to browse VMDK files. Data related
to the container is stored at the following location: /var/lib/ and requires
minimum 20 GB free space.
Instant access 192
Instant access Build Your Own (BYO)
■ Minimum 2.2-GHz clock rate. ■ 16 GB (For 8 TBs to 32 TBs of Disk size depends on the size of your
■ 64-bit processor. storage - 1GB RAM for 1TB of backup. Refer to the hardware
■ Minimum 4 cores; 8 cores storage). requirements for NetBackup and
recommended. For 64 TBs of ■ 32 GBs of RAM for more than 32 Media Server Deduplication Pool
storage, the Intel x86-64 TBs storage. (MSDP).
architecture requires eight cores. ■ An additional 500MB of RAM for
■ Enable the VT-X option in the CPU each live mount.
configuration.
How can I enable instant access file Perform the steps in the following order:
browsing (for file download and restore)
1 Install the required docker/podman version.
on BYO after the storage is configured
or upgraded without the docker/podman 2 Start using the Instant Access feature.
installed? For example, you can download files, restore files, and so on.
How can I enable the VMware instant Perform the steps in the following order:
access feature on BYO after storage is
1 Install the required nginx service version.
configured or upgraded without the nginx
service installed? 2 Ensure that the new BYO nginx configuration entry:
/etc/nginx/conf.d/byo.conf is part of the HTTP section of the
original: /etc/nginx/nginx.conf file.
How can I resolve the following issue in Perform the steps in the following order:
the vpfs-config.log file that is raised from:
1 Install the policycoreutils and policycoreutils-python
Verifying that the MSDP REST
packages through yum tool.
API is available via https on
port 10087 2 Add the following rules that SELinux requires for Nginx to bind on the
10087 port.
■ semanage port -a -t http_port_t -p tcp 10087
■ setsebool -P httpd_can_network_connect 1
Instant Access for BYO uses a To configure the external certificate, perform the following steps. If the new
self-signed certificate by default and only certificate is already generated (the certificate must contain long and short
supports *.pem external certificate. host names for the media server), go to step 4.
How do I replace it with a certificate 1 Create the RSA public or private key pair.
signed by external CA (*.pem certificate),
2 Create a certificate signing request (CSR).
if required?
The certificate must contain long and short host names for the media
server.
/usr/openv/pdde/vpfs/bin/vpfs_config.sh
--configure_byo
Instant access 194
VM malware scan
How can I disable media automount for Follow the guideline to disable the gnome automount:
the instant access livemount share in
https://access.redhat.com/solutions/20107
gnome?
How can I resolve the following issue in Perform the steps in the following order:
the
1 Ensure that your NetBackup primary server is up and there is no
/var/log/vpfs/vpfs-config.log
firewall blocking the connection between the NetBackup primary server
file?
and storage server.
**** Asking the 2 Run the following command on storage server to verify the connection
NetBackup Webservice to trust status:
the MSDP webserver (spws) ****
/usr/openv/netbackup/bin/bpclntcmd -pn
/usr/openv/netbackup/bin/nblibcurlcmd
failed (1): 3 After the NetBackup primary server is up and connection between the
NetBackup primary server and storage server is allowed, run the
following command:
/usr/openv/pdde/vpfs/bin/vpfs_config.sh
--configure_byo
VM malware scan
You can create a malware scan livemount from a NetBackup image with NetBackup
Recovery API. The livemount exports all VM files and folders via NFS or SMB
protocol instantly, which allows NFS or SMB client mount the export path and do
malware scan on the exported VM files and folders.
This feature provides the following malware scan APIs:
■ POST
/recovery/workloads/vmware/malware-scan-mounts
■ GET
Instant access 195
VM malware scan
/recovery/workloads/vmware/malware-scan-mounts
■ GET
/recovery/workloads/vmware/malware-scan-mounts/{mountId}
■ DELETE
/recovery/workloads/vmware/malware-scan-mounts/{mountId}.
For more details, refer NetBackup 10.0.1 API Reference on SORT
Chapter 13
Instant rollback
This chapter includes the following topics:
Note: The total livemount number configured in instant rollback, VMware instant
access, MSSQL instant access, and universal share must not exceed the
MaxAllowedLivemounts value.
■ This feature does not support the add, remove, or update DataSets feature for
virtual machines. The Instant rollback feature does not roll back DataSets.
2 Click the Recovery points tab, then click the date on which
the backup occurred.
Select the check 1 Select the check box corresponding to the VM that you want
box to roll back and click Roll back instantly.
Use the Actions 1 Click Actions > Roll back instantly corresponding to the
menu VM that you want to roll back.
■ CDP terminology
■ CDP architecture
■ Prerequisites
■ Sizing considerations
CDP terminology
The following table describes the concepts and terms that are used in Continuous
Data Protection (CDP).
Term Explanation
Term Explanation
VAIO The VMware framework consists of vSphere APIs for I/O filtering. This
framework lets CDP run filters on ESXi servers and intercept I/O requests
from guest operating systems to a virtual disk.
Full sync NetBackup retrieves a VM's entire data from the ESXi.
Staging area A storage location on the CDP gateway where NetBackup temporarily stores
I/Os received from the ESXi.
Storage Allocated limited storage size for VMs using CDP protection.
quota
VADP VMware VADP is a VMware vStorage API that backs up and restores vSphere
virtual machines (VMs).
CDP architecture
The CDP gateway is configured on a NetBackup media server. Once the
configuration is done, NetBackup starts the nbcctd daemon on the CDP gateway.
This process services all I/Os from ESX and enables other NetBackup components
on the gateway to take backup. To back up this data, you also need to configure
an MSDP or OST accelerator-based STU. You can configure multiple CDP gateways
and MSDP/OST accelerator-based STUs as required. NetBackup REST APIs for
CDP leverage this feature. Refer to NetBackup REST APIs Swagger documentation
for more information.
Continuous data protection 203
Prerequisites
Prerequisites
Prerequisites for using CDP
■ CDP for VMware exclusively supports accelerator-based backup. So, CDP
needs accelerator-compliant storage units based on MSDP or OST-based
storage.
■ CDP uses a file system as a staging area on the CDP gateway. See the Software
compatibility list for the supported file systems.
■ The media server that is associated with MSDP should have NetBackup version
9.1 or higher.
■ Capacity-based and traditional license for enabling the feature.
■ The port 33056 on the CDP gateway must be open for the ESXi server to
communicate to the CDP gateway.
■ VMware server credentials need privileges for NetBackup to start, stop, restart,
and refresh the Common Information Model (CIM) service on the ESXi host.
■ You can configure a CDP gateway on the RHEL-based NetBackup media server
platform.
Continuous data protection 204
Capacity-based licensing for CDP
■ Create a VMware storage policy for replication using the VAIO component.
Attach the storage policy to each disk of the VMs that you want to protect using
CDP. For details, see the Veritas Support knowledge base article on How to
create vtstap storage policy in VMware vCenter.
Note: Detaching the storage policy results in loss of protection for the VM. If you
detach the Veritas IO filter storage policy from a VM, I/O tapping for the VM is
stopped, so the data from this VM does not get saved in the CDP gateway. Hence,
the consequent backup jobs remain blank backup jobs, even after all the data from
the CDP staging area is moved to the backup storage. So, we recommend removing
protection of the VM(s) from the NetBackup protection plan once you detach the
vtstap policy from the VM(s).
■ If a VADP and CDP policies protect the same VM, then you are charged only
once, with the higher size.
Administrators can use the following steps to verify the data size reported by
licensing:
■ Verify the size of the VMs on the ESX datastore on the vCenter. Navigate to
Datastore > Files > VM, the Size column shows the size occupied on datastore.
■ Verify the bytes written during backup for the same VM.
■ Calculate the minimum of the above two values.
2 In the NetBackup web UI, on the left, click VMware under Workloads. You
can see a list of VMs with protection details.
3 Click the name of the VM, from which you want to remove protection, in the
subsequent page, click Remove protection.
You can see a confirmation message when the VM is removed.
If you remove protection from a VM without removing the vtstap policy from the
VM, you can see a partially successful removal message in the UI. These partially
removed VMs are not included in the Total VMs subscribed count in the
Continuous data protection gateway tab.
Note: The partially removed VMs are neither protected by CPD nor by any classic
policy. Also, you cannot re-subscribe the VM to a CDP gateway. Hence, it is
recommended to detach the vtstap storage policy from the VM, and fully
unsubscribe the VM from the CDP gateway.
Note: Before defining the CDP gateway ensure that your system time is
synchronized with the network time.
4 On the next page, if your gateway version is 9.1. specify the parameter
Maximum number of concurrent jobs, as described in the subsequent table,
and click Save to save the gateway.
If your gateway version is 10.0, click Advanced to specify the advanced
parameters to configure and fine-tune your CDP gateway. You can also use
this set of parameters to estimate how many VMs you can support using CDP
protection for a particular configuration of the gateway.
Parameter Description
Maximum number of concurrent jobs. The maximum number of CDP jobs that
can run simultaneously in the gateway. A
higher number may indicate increased
peak resource consumption.
Maximum number of simultaneous Number of VMs that can take full backup
initial sync simultaneously during the initial phase of
CDP protection. Specifying a higher value
than the default, may cause increased
resource consumption and affect existing
protection.
Reserved memory for Continuous data Reserved memory for the gateway. Enter
protection a value in GB that is equal to or smaller
than 90% of the total physical memory.
5 Click Estimate the number of VMs to calculate how many VMs this gateway
can support for this given configuration.
6 Click Save, to add the gateway.
Sizing considerations
This section describes the CDP gateway's sizing requirements, based on your
environment's workload.
Note: If you plan to support a large number of VMs using the CDP gateway, deploy
the CDP gateway and the MSDP or media server hosting the storage unit, on
different hosts.
Continuous data protection 208
Sizing considerations
Note: If the CDP gateway and MSDP are co-located on the same media server,
then the CDP service consumes 20% of available memory (RAM) for its internal
use. If the CDP gateway is standalone on the media server, it consumes 50% of
the available memory for the same. From NetBackup version 10.0 onwards, you
can configure this value in the UI.
Gateway sizing
You need to size the CDP based on the number of VMs that you want to protect.
Consider the requirements described in this section, while calculating the
requirements for the gateway.
CDP enables you to continuously tap the I/Os done by the VMs. NetBackup, by
default, uses 10-GB storage space on the staging area per VM. When IO tapping
starts, the CDP service starts writing the data into this 10-GB storage. Once this
storage limit is reached, the CDP service (nbcctd) initiates a backup job to move
this data from the gateway to the backup storage.
Out of the total available space on the CDP staging path, by default, NetBackup
reserves 25% for usage beyond the allocated storage per VM. This storage is
common for the subscribed VMs to the gateway. See “Defining the CDP gateway
” on page 206. , for how to do it on version 10.0 onwards. You can reconfigure this
value in the nbcct.conf file in NetBackup 9.1.
To configure reserved storage in NetBackup 9.1
1 Log on to the CDP gateway.
2 Navigate to the <staginglocation>/nbcct/ directory, and open the
nbcct.conf file in a text editor.
Increasing per-VM storage allows to NetBackup to back up more data per backup
job. Increasing the reserved storage for the CDP gateway lets you receive more
data without any interruption to the protection. Note that even when the staging
path is fully occupied, it does not affect the applications inside the VM. NetBackup
catches up the data produced by applications during that time, and moves it to the
backup storage in the subsequent backup jobs.
Note: If NFS is used for the staging area, the minimum required throughput is 100
MB/sec.
Note: If you observe slow I/Os from the I/O daemon, check network bandwidth and
system RAM. See “Defining the CDP gateway ” on page 206. , for how to increase
the in-memory cache size in NetBackup 10.0 onwards. For NetBackup 9.1, you
can do it using the CCT_POOL_SIZE_QUOTA_PERCENTAGE parameter in the
nbcct.conf file.
See “Defining the CDP gateway ” on page 206. for information on how to do it on
NetBackup version 10.0 onwards. For NetBackup 9.1 follow the procedure described
below.
To set a resource limit, we have the following API:
POST /config/resource-limits
{
"data": [
{
"type": "resource-limits",
"id": "string",
"attributes": {
"resources": [
{
"resourceType": "string",
"resourceName": "string",
"resourceLimit": 0,
"additionalData": "string"
}
]
}
}
]
}
Here,
■ Id represents the workload, which is Cdp
■ resourceName represents the CDP gateway host name. It should be the same
as specified in the protection plan. If you keep an empty string for resourceName,
the resourceLimit value is set as a global limit, which is applicable to all the
configured CDP gateways.
■ The resourceLimit value sets the value of backup jobs for that gateway.
To retrieve the list of resource limits for a CDP workload type, use:
GET - /config/resource-limits/cdp
To update the value of resourceLimit for particular gateway, hit the POST API
with the change in resourceLimit for the same record.
To delete the specified granular resource limits, use:
DELETE - /config/resource-limits
Continuous data protection 211
Controlling full sync
Only the resource limit set for a particular resource can be deleted. Provide both
the resource type and the specific resource of that type.
In NetBackup 9.1, you can configure the number of concurrent full sync operations
by specifying a value for the CCT_MAX_FULL_SYNC_REQS parameter, in the
nbcct.conf file. For example, CCT_MAX_FULL_SYNC_REQS=7
Viewing notifications
For most CDP activities, you can see notifications in the web UI. These notifications
are helpful to know how the I/O tapping on the gateway performs. You can see
notifications when things have stopped working or if any action is required from
your side. The following are some important scenarios when you can see
notifications:
■ While backing up data. When a backup job moves data from the staging area
to backup storage.
■ VM full sync has started/suspended/resumed/done.
■ Partial image is generated.
■ No space left in the staging area for storage.
■ When there is an error while writing in-memory data to the staging area.
Here are some notifications:
Continuous data protection 213
Monitoring CDP jobs
Input/Output error occurred CDP service cannot perform I/O Error High
for the VM: <uuid> on staging location due to many
reasons, like the underlying disk
snapped out of storage, the file
system going into read-only mode,
and so on.
Terminating the Continuous If the staging space is less than 1 Critical High
data protection service, as GB, CDP raises this error and
the staging area memory is terminates the service.
full.
Data storage quota is full for During the VM's data transfer, if Info Low
the VM: <uuid>, bearing the total data crosses the
jobid: ${jobid}. Moving data configured VM quota, then a
to the backup storage. backup job is triggered to move
the staging data to the backup
destination.
Cannot move data to the Data movement from the gateway Error High
backup storage, for the VM: to the backup location failed.
<uuid>. The storage quota
for the VM is full.
Full sync started for the VM: Initiated the full sync process for Info Low
<uuid>. this VM.
Full sync resumed for the Full sync for the VM is resumed Info Low
VM: <uuid>. after some unexpected
interruption.
Continuous data protection 214
Using accelerators with CDP
Full sync completed for the The initial full sync for VM is Info Low
VM: <uuid>. complete.
Full sync suspended for the Full sync operation fails, for some Info Low
VM: <uuid>. reason like, a network glitch.
Viewing jobs
CDP uses the activity monitor to display the following job information:
■ Parent backup job - discovery job to discover the VM information.
■ Preparing for backup - identify the point-in-time data for the VM.
■ Backup - move data from the staging path to the backup storage.
Force rescan
Force rescan enhances safety, and establishes a baseline for the next accelerator
backup. This feature protects against any potential damage like failure of checksum
verification on the data in the staging area.
When you use accelerator-based forced rescan, it clears the data on the CDP
gateway staging area. So, any corrupted data is replaced with fresh data synced
from the ESXi server. Note that the first backup job triggered by forced rescan may
not have all data needed for a recoverable image. As data becomes available, the
subsequent backups are triggered automatically, making the images recoverable.
Recommendations for using forced rescan:
■ Do not trigger force rescan for the VMs which are turned off.
Continuous data protection 215
Recovering CDP protected VMs
■ If the staging location memory is full, you can see a notification in the UI. Initiate
the force rescan only when sufficient memory is available at the staging location.
To manually trigger the backup with force rescan run the following command in the
command prompt or the Linux terminal:
bpbackup -i -p policyname -s <schedulename>
■ After subscribing a VM for CDP backup policy, if any disk from the VM is removed
or a new disk is added, the subsequent backups fail. In such cases, unsubscribe
the VM from CDP protection, and subscribe it again.
■ Due to VMware limitation, if you try to protect a VM using the NetBackup agent
for VMware and CDP, both at the same time, the backup operation fails with an
error or the operation might crash with symbols from VDDK.
CDP service does not start after the media server restart
or mount path-related changes.
Possible reasons:
The configured staging area is unmounted post reboot or has an unsupported file
system. For example, if you configure the CDP gateway using a supported mount
like /mnt/stage_area and do not configure auto-mount. After a system restart, this
path points to root file system, which CDP does not support, hence the CDP service
(nbcctd) cannot start.
Workaround: Ensure that the staging area or the relevant disk mounts are
remounted properly, whenever there are changes in the system related to unmount
or system reboot.
While removing CDP protection, if the protected VM is powered off, the CDP gateway
cannot get the required information of storage policies from VAIO. Hence, though
the CDP protection is removed from the VM, the I/O tapping policies are still attached
to the VMDK of that VM, it continues to tap the I/O and affect performance.
Workaround: Always detach the storage policy of the VMs before unsubscribing
the VMs, irrespective of their powered on or off state.
URL : https://netbackup/config/cdp-gateway/force
Headers:
Content-Type: application/vnd.netbackup+json;version=9.0;charset=UTF-8
To Delete Policy
Continuous data protection 219
Troubleshooting for CDP
URL : https://netbackup/config/policies/policy_name
Headers:
After the successful execution of the above two APIs, the mapping for the policy
and the VM is still visible in the web UI. If you try to remove the protection of that
VM through web UI, you can see an error message saying: Subscription ID not
found. This is expected behavior.
{
"data": {
"type":"backupRequest",
"attributes": {
"policyName": "vmware_test",
"trialBackup" : true
}
}
}
3 To trace the discovery job to the virtual machine backup jobs, note the Job ID
and the Parent job ID columns.
4 Click on the job and click Details tab.
See “Limit jobs per policy on the Attributes tab (for VMware)” on page 89.
Make sure that the policy's Post vCenter events option is enabled:
See “VMware - Advanced attributes” on page 95.
To view backup events and the last backup time in vSphere Client
1 Open the vSphere Client (HTML5).
2 Go to Home > Events.
Backing up virtual machines 224
Viewing NetBackup activity in 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.
Backing up virtual machines 225
Viewing NetBackup activity in vSphere Client (HTML5)
■ To restore directly to an ESX server, the name that is specified for the restore
must match the ESX server’s official host name. The name must be in the same
format in which it is registered in DNS and in the VMware server (whether short
or fully-qualified).
See “Add VMware servers” on page 65.
■ If the VM’s display name was changed after the VM was backed up, the
pre-recovery check may fail when you click Start Recovery:
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.
■ A virtual machine template cannot be restored to a standalone ESX server.
Because templates are a feature of vCenter servers, you must restore the
template through vCenter. If you restore a template to a standalone ESX server,
the template is converted to a normal virtual machine and is no longer a template.
■ 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.
■ 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 306.
■ 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.
VM recovery 228
Restore notes and restrictions
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:
https://www.veritas.com/docs/100022268
■ In VMware for Replication Director and Integrated Snapshot Management
policies, if you configure SLP as combination of Snapshot and Index from
Snapshot (IFS), then the restore of files on XFS formatted volumes and partitions
is not supported via NetBackup Java UI, use NetBackup web UI.
■ 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 34.
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.
■ 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 38.
VM recovery 231
Recover a full VMware virtual machine
6 Click Restore virtual machine for the copy that you want to recover.
7 On the Restore to tab, do the following:
■ Review the Restore to values.
The default values are populated from the backup image of the VM.
VM recovery 232
Recover a full VMware virtual machine
8 The restore options that display next depend on if you chose to restore to the
selected datastore or to use a storage policy.
See “Recovery options” on page 261.
See “Storage policy” on page 233.
(Restore to selected datastore) Review or change the Advanced options:
See “Advanced recovery options” on page 233.
See “Advanced recovery options: Format of restored virtual disks” on page 234.
See “Advanced recovery options: Transport mode” on page 235.
9 Click Next.
10 NetBackup performs pre-recovery checks that include verifying the credentials,
appropriate paths, connectivity, and determining if the datastore or datastore
cluster has available space.
11 Resolve any errors.
You can choose to ignore the errors. However, the recovery may fail.
12 Click Start recovery.
Click the Restore Activity tab to monitor a job's progress. Select a specific
job to view its details.
Recovery options
Allow overwrite of NetBackup deletes any VM with the same display name that exists
existing virtual at the destination, before the recovery starts. Note that, NetBackup
machine deletes any VM with the same display name, it may not be the same
VM, but another VM having the same display name.
Recovery host Indicate the host that you want to use to perform the recovery. By
default, the recovery host is the one that performed the backup.
VM recovery 233
Recover a full VMware virtual machine
Storage policy
The storage policy settings are available for a virtual machine restore when you
select option Use a storage policy to select datastore on the Recovery target
page.
Virtual machine storage policies control which type of storage is provided for the
virtual machine. You can apply one storage policy to the entire VM or you can apply
different storage policies to the VM home directory or virtual disks.
Apply to whole virtual machine
Select storage policy Select a storage policy to apply for the whole
virtual machine from the list of all storage
policies that are associated with the selected
vCenter server.
Create a new Restores the VM with a new instance UUID instead of the original
instance UUID instance UUID.
VM recovery 234
Recover a full VMware virtual machine
Remove backing For example, this option restores the VM without restoring any ISO
information for file that was mounted when the VM was backed up.
devices
If this option is disabled, the recovery might fail if the backing
information is not longer available for devices, such as DVD/CD-ROM
drives, or serial or parallel ports.
Remove original Removes the NIC cards from the VM. Note that for network access,
network the restored VM requires network configuration.
configuration Enable this option if:
Remove tag When this option is selected, NetBackup does not attempt to restore
associations tag associations when it restores the virtual machine. If the option is
disabled, NetBackup attempts to restore all tag associations from the
backup. If NetBackup cannot restore one or more of the tag
associations, the restore exits with a NetBackup status code 1.
See “Notes and limitations for the backup and restore of VMware tag
associations” on page 46.
Retain original Restores the VM with its original hardware version (such as 4). It
hardware version retains the original version even if the target ESXi server by default
uses a different hardware version (such as 7 or 8). If the target ESXi
server does not support the virtual machine’s hardware version, the
restore may fail.
Thick provisioning Configures the restored virtual disks in the thick format. The virtual
lazy zeroed disk space is allocated when the disk is created. This option restores
the populated blocks, but initializes vacant blocks with zeros later,
on demand.
Note: If the vmdk is completely written, VMware automatically
converts a lazy-zeroed disk to Thick provisioning eager zeroed.
VM recovery 235
Restoring VMware virtual machine disks
Thick provisioning Configures the restored virtual disks in the thick format. Restores the
eager zeroed populated blocks and immediately initializes vacant blocks with zeros
(eager zeroed). Creation of the virtual disks may take more time with
this option. However, if the restore occurs over a SAN, the eager
zeroed feature may speed up the restore by reducing network
communication with the vCenter server.
Thin provisioning Configures the restored virtual disks in the thin format. Restores the
populated blocks but does not initialize vacant blocks or commit them.
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.
Note: If the vmdk is completely written, VMware automatically
converts a thin disk to Thick provisioning eager zeroed.
NetBackup supports the restore of individual VMware virtual machine disks to the
following destinations:
VM recovery 237
Restoring VMware virtual machine disks
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.
Option Description
■ Original virtual machine. NetBackup restores the selected disks to the VM from
which they were backed up.
You can select whether to overwrite the existing virtual disks in the Storage target
settings.
See “Storage target restore options” on page 239.
■ Alternate virtual machine. NetBackup restores the selected disks to a different
VM than the original. Select the destination VM for the restored virtual disks.
Last updated indicates the date and time at which the Virtual machine server
provided the information to NetBackup. Click Discover to update the virtual machine
server details.
■ New (temporary) virtual machine. NetBackup creates a new virtual machine and
restores the selected 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 temporary VM.
Power on after recovery Select this option to have the recovered virtual machine automatically turned on when
the recovery is complete.
Recovery host The host that performs the restore. If not specified, NetBackup uses the backup host
value from the backup image.
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 mode The transport modes to use for the restore. By default, NetBackup selects the transport
mode that was used for the backup.
Alternatively, you can select the wanted transport modes and arrange them in the
priority order that you want. If all methods fail, the restore fails.
VM recovery 239
Restoring VMware virtual machine disks
Delete restored staging VM Whether to delete the temporary VM if the disk attach operation fails. If you disable
on error this option and the disks are not successfully attached to the target VM, you can access
the data on the temporary VM. Applies only to Original virtual machine or Alternate
virtual machine.
Wait time for VM shutdown The restore process shuts down 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. Applies only to Original virtual machine or Alternate
virtual machine.
Option Description
Apply to whole virtual The following settings apply to the whole virtual machine.
machine
■ Overwrite all virtual disks
Whether to overwrite the existing virtual disk or disks on
the target VM. If this option is enabled, overwrite the
original virtual disk and retain the disk UUID. If the option
is disabled, 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 or the datastore cluster that
is the destination for the restore.
Click Search to select a different datastore or datastore
cluster.
■ Restored virtual disks provisioning
The default disk provisioning for all of the disks to restore:
Thin provisioning, Thick provisioning lazy zeroed, or
Thick provisioning eager zeroed.
Customize virtual machine Select Customize virtual machine to override the global
settings and change the values for individual virtual disks.
Chapter 17
VMware agentless restore
This chapter includes the following topics:
3 The restore host confirms that it has the necessary VxUpdate recovery package
to perform restore. If it's not available, the restore host downloads the required
package from the primary server using VxUpdate.
4 The restore host pushes recovery tool to virtual machine using the vSphere
management API.
5 The data stream containing the user-selected files and folders is staged in a
vmdk that is associated with a temporary virtual machine. Veritas creates the
temporary virtual machine for the agentless restore.
6 The vmdk that NetBackup created on the temporary virtual machine is attached
to the target virtual machine.
7 The recovery tool is invoked and the files and folders are recovered.
8 NetBackup performs the necessary cleanup. All temporary files and objects
that are created as part of the process are deleted or removed. Among the
objects that are deleted and removed are the recovery tool, the temporary
virtual machine, and the staging vmdk.
9 The job is finished.
or
■ The default staging location on the target VM is %TEMP% or %TMP% for Windows
and the tmp directory (/tmp) for Linux.
■ The staging location must exist on the target VM file system.
■ If you want to allow the use of instant access for recovery of the files and folders,
the recovery point must support instant access.
See “Create an instant access VM” on page 185.
Limitations
The following limitations exist for VMware agentless restores:
■ Agentless restores to Windows target VMs can fail if you use an account other
than the built-in Administrator for Windows Guest OS account as the Target
VM Credentials. The restore fails because Run all administrators in Admin
Approval Mode is enabled. More information is available:
https://www.veritas.com/content/support/en_US/article.100046138.html
■ VMware agentless restores can only be used for the restore of files and folders.
■ In some instances, when you perform an agentless restores, orphaned VMs
starting with NB_ are left behind. Using the ESX server credentials to perform
the restore on the target VM even though the vCenter manages the ESX server
can cause this condition. This condition is a known limitation of VMware. To
resolve the problem, register the vCenter in NetBackup and use vCenter
credentials for backups and restores. The orphaned VMs starting with NB_ can
be removed from inventory manually by logging into the vCenter using VMware
vSphere Client.
■ Restore job fails if NetBackup is unable to use the staging directory. This directory
is specified in the TMP or TEMP environment variable.
■ Restore job fails if NetBackup does not have sufficient privileges to the staging
directory. Or, if there is insufficient space in the staging directory.
■ If you select Flatten existing directory structure and Overwrite existing files
options, you risk an incorrect restore if it contains multiple files with the same
file name. In this case, the last file that is restored is the one that is present
when the restore completes.
If you select Flatten existing directory structure and you do not select
Overwrite existing files, the restore succeeds. The first file that is restored is
present when the restore completes. To prevent this issue, do not select Flatten
existing directory structure when restoring multiple files with the same name.
VMware agentless restore 243
Provide access to a credential for agentless single file recovery to a guest VM
■ The Flatten existing directory structure and Append string to file names
options are only applicable to files. They are not available for directories.
■ Multiple restore jobs to the same VM are not supported. The user must start
another job as needed for that VM once the first restore job for that VM has
completed.
■ If a backup and a restore occur simultaneously on the same VM, one or both
jobs can have unexpected results. If a backup or a restore exits with a non-zero
status code, one possible cause is simultaneous jobs occurring on the same
VM.
■ Veritas does not recommend VMware agentless restore if a NetBackup client
already exists on the target VM. The NetBackup administrator must use the
agent-based restore in such cases.
■ For the current list of guest operating systems that NetBackup supports for the
target VM, see Supported guest operating systems for VMware in the following
document:
Support for NetBackup in virtual environments
Note: This credential type is not for VMware servers. Configure those credentials
on the VMware servers tab in Workloads > VMware.
Note: This credential type is not for VMware servers. Configure those credentials
on the VMware servers tab in Workloads > VMware.
See “Add VMware servers” on page 65.
4 Click Next.
5 Select VMware guest VM.
6 Provide the credential details that are needed for authentication.
7 Click Next.
8 Add a role that you want to have access to the credential.
■ Click Add.
■ Select one of the following roles.
The Default VMware Administrator role. This role has access to any and
all credentials that are created.
■ Another role that has the necessary permissions to perform VMware single
file recovery operations.
Minimally the role should have the permissions View and Assign
credentials.
If you change the staging location, Veritas recommends that you let NetBackup
create the staging directory. When you let NetBackup create the directory, the
permissions are set correctly. For NetBackup to create the new staging directory,
the immediate parent directory must exist. If you want the restore to use
E:\recovery\staging, then E:\recovery must exist. If the E:\recovery directory
does not exist, the restore fails.
If you create the directory yourself, the SYSTEM, the domain administrator, and
the local administrator accounts must have Full Control permissions. Additionally,
Access Control Lists inherited from the parent directory are not secure and must
be disabled.
Restricted restore mode supports alternate location restores. You can configure
the alternate location in the NetBackup web UI.
Limitations of restricted restore mode:
■ Restricted restore mode is currently only supported on Windows. The recovery
host must also be Windows.
■ The file ownership of the restored files is set to the account that was used for
the NetBackup backup operation.
■ Restore of ACLs is not supported.
■ Restricted restore mode does not support renaming of targets for soft links.
■ Restricted restore mode creates new files where hard links had previously been
used.
■ Irregular files such as sparse files, device files, special files, and junction points
are not supported.
■ A supported version of VMware Tools must be running for the restore to succeed.
VMware agentless restore 248
About restricted restore mode
■ File path length with the directory cannot exceed 260 characters.
Performance considerations
File transport through the required infrastructure for this restore method is
significantly slower than VMware agentless restores. As a result of performance
concerns, Veritas recommends limiting the restore to fewer than 100 files and less
than 1 GB of data.
Chapter 18
Restoring Individual files
and folders from VMware
backups
This chapter includes the following topics:
Restore to a virtual machine on which The NetBackup web UI in NetBackup 10.3 and later supports this
NetBackup client software is installed. method.
Restore to a virtual machine where the See “About VMware agentless restore” on page 240.
NetBackup client is not installed.
See “Recover files and folders with VMware agentless restore”
on page 245.
Restoring Individual files and folders from VMware backups 250
Restore individual files and folders
Create an instant access VM. See “Create an instant access VM” on page 185.
See “Restore files and folders from a VM backup image” on page 187.
(Windows only) Restore to a virtual machine See “Setting up NetBackup Client Service for VMware restores to a
drive that is mapped to a host on which Windows shared virtual machine drive” on page 253.
NetBackup client software is installed.
Restore to a host on which the NetBackup See the NetBackup Backup, Archive, and Restore Getting Started
client software is installed (not to the virtual Guide on how to restore to different locations. Then manually copy
machine). the restored files to the virtual machine. (NetBackup does not perform
this step.)
Limitations
The following limitations exist when you restore individual files and folders from a
VMware backup image:
■ Instant access does not support the restore of files and folders to a NetBackup
client.
Option Description
Restore everything to Restores the folders and files to the location where they resided
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.
Restore individual Restores the folders and files to individually designated locations.
directories and files To designate a restore destination for each source folder, click Edit
to different locations file paths.
\\vm1\e$\folder1\file1
Allow overwrite of By default, this option is not selected to avoid overwriting a current
existing files file.
Select this option to replace a file with the same name in the
destination directory with the file you want to restore.
Restore directories By default, all file systems that are mounted in the selected
without crossing directories are restored.
mount points
Select this option to restore the selected directories without restoring
all file systems that are mounted in those directories.
Note: Mount points inside a backup image are always restored
whether or not this option is selected.
Restoring Individual files and folders from VMware backups 252
Recovery options for restore of VMware files
Option Description
By default, hard link path names are restored exactly as they exist
in the backup.
Select this option to rename the hard link path names, if any exist.
Veritas recommends that you select this option in the following
situations:
Select this option to rename the soft link path names, if any exist.
Veritas recommends that you do not select this option if you rename
hard links.
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.
Job priority Determines the restore job's priority for restore resources. A higher
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.
See “About restoring individual VMware files and folders” on page 249.
Restoring Individual files and folders from VMware backups 253
Setting up NetBackup Client Service for VMware restores to a Windows shared virtual machine drive
Note: The NetBackup for VMware restrictions also apply to vCloud Director objects.
VMware restrictions also may apply; see your VMware documention.
Table 19-1 describes the configuration requirements for backup of vCloud Director.
See “NetBackup for VMware: notes and restrictions” on page 34.
Using NetBackup to back up Cloud Director environments 255
Notes on creating a NetBackup policy for vCloud
Task Description
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 VMware Cloud Director integration makes several vCloud keywords available
in the policy Query Builder Field, for rule-based selection of virtual machines. If Enable
VMware Cloud Director integration is not selected, NetBackup cannot use the keywords
to locate virtual machines in vCloud Director and the backup fails.
Note: The browse icon (next to the Query Builder fields) may list non-vCloud objects. If
you select an object that is not in vCloud Director, it is excluded from the backup.
■ To restore into an existing vCloud Director vApp with the Capture vApp as a
template in catalog option, the vApp must be turned off.
■ vCloud backup images cannot be restored by means of the NetBackup vSphere
Client (HTML5) plug-in. This type of restore can be performed by means of the
Backup, Archive, and Restore interface.
■ 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 354.
■ If a VMware Cloud Director Organization Virtual datacenter (VDC) is configured
with Fast Provisioning enabled, it does not allow different storage policies to
be associated with a VM's home directory, virtual disks or both.
■ If a VMware Cloud Director Organization Virtual datacenter (VDC) is configured
with Fast Provisioning enabled and different storage policies are configured
for a VMware Cloud Director VM's home, its virtual disks or both then, the storage
policies are not applied and the restore job status is set to 1.
■ If Fast Provisioning is disabled then a VMware Cloud Director VM allows for
different storage policies to be associated with a VM's home directory, virtual
disks or both.
Recover from the default copy of the backup image. This option is displayed
if only one copy exists.
■ Recover from default copy
Recover from the default copy of the backup image. This option is displayed
if more than one copy exists.
■ nn copies
Recover from the default copy or a different copy of the backup image.
NetBackup allows up to ten copies of the same backup image. All available
copies are displayed when you select this option. For each copy, the
Storage name, Storage server, and the Storage server type are displayed.
6 On the Recovery target page, specify the VMware Cloud Director and vSphere
recovery destination information.
■ The default values shown restore the VM back to its original location.
■ If you change any of the VMware Cloud Director recovery destination
information, you must update the vSphere recovery destination information.
■ If you accept the default VMware Cloud Director recovery destination
information, you can change the vSphere recovery destination information
if necessary.
See “Recovery target” on page 259.
Click Next.
7 On the vApp options screen, specify the vApp information.
■ To restore to an existing vApp, browse the list of vApps or enter the name
of a vApp that exists.
■ To restore to a new vApp, enter the name of the new vApp.
■ The Status shows New if the vApp does not exist in VMware Cloud Director.
A new vApp is created.
See “vApp options” on page 260.
Click Next.
Using NetBackup to back up Cloud Director environments 259
Recover VMware Cloud Director virtual machines
8 For the Recovery options page, specify any recovery options for your restore
and click Next.
9 The Review screen summarizes the selections made. A pre-recovery check
attempts to determine if there are issues with any of the selected options. You
can override any errors shown, however, the recovery can fail if errors are not
addressed.
Recovery target
Table 19-2 Recovery target options
Option Description
vSphere
Select this option to restore the virtual machine to the original location or to an alternate
location.
VMware Cloud Director These options display when you choose to restore with the option VMware Cloud
recovery destination Director.
Organization vCD
The organization virtual datacenter. NetBackup displays the name of the vCloud server
and the Organization.
Using NetBackup to back up Cloud Director environments 260
Recover VMware Cloud Director virtual machines
Option Description
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.
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.
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.
Specifies the VMware datastore or datastore cluster that contains the virtual machine
configuration files. 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.
vApp options
Table 19-3 Options to restore to a vApp
Field Description
vApp name Select the name of the vApp for the restore.
This option defaults to the original vApp that was recorded in the backup.
Using NetBackup to back up Cloud Director environments 261
Recover VMware Cloud Director virtual machines
Field Description
Overwrite the existing Overwrites any virtual machine if it exists. If the vApp has no VMs, this option is disabled.
virtual machine if it
exists
Remove exising vApp Removes the existing vApp or vApp template and recreates the vApp or vApp template.
(or vApp template) and
recreate it
Capture vApp as a This option is available when you restore to an existing vApp.
template in catalog
■ Leave this option disabled to create a new vApp for the restore. The virtual machine is
restored 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.
■ Enable this option to copy 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. Select the Remove vApp after capture option.
Catalog
Select the catalog in which to place the vApp template. The organization determines
the available catalogs.
vApp template name
Enter the name for the new vApp template.
Remove vApp after capture
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.
Recovery options
Allow overwrite of NetBackup deletes any VM with the same display name that exists
existing virtual at the destination, before the recovery starts. Note that, NetBackup
machine deletes any VM with the same display name, it may not be the same
VM, but another VM having the same display name.
Recovery host Indicate the host that you want to use to perform the recovery. By
default, the recovery host is the one that performed the backup.
Using NetBackup to back up Cloud Director environments 262
Restore a vApp template that has multiple virtual machines
Note: Use the following steps to restore the last virtual machine and to copy
all the restored virtual machines into a vApp template.
6 On the Network Connections screen, select the network for the restored
virtual machine.
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.
With the Query Builder in the NetBackup web UI, the following is an example that
uses OData keywords:
vmware:/?filter=Displayname contains(vcdvApp, 'vapp1')
vmware://<vCloud_server>/vApp/vapp-<vApp_id>?filter=<filter>
vmware://<vCloud_server>/vAppTemplate/vappTemplate-
<vAppTemplate_id>?filter=<filter>
Example Query Builder rules for searching specific vCloud servers or vApps
5 For two or more search rules, you must enable multiple organizations for the
policy.
■ In the policy VMware tab, locate and expand VMware advanced attributes.
■ 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
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"
vmware://vCD1.acme.com/vApp/vapp-4c0d9722-80a4-4f19-b636-72ebf48e4e71
?filter=contains(displayName, 'prod')
vmware://vCD2.acme.com/vApp/vapp-5c0c9833-80a4-4f19-b636-72ebf48e4e63
?filter=contains(displayName, 'prod')
Note the two rules, each enclosed with double quotes and separated by a space,
and the multi_org=1 option.
Chapter 20
Restore virtual machines
with Instant Recovery
This chapter includes the following topics:
■ 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 examples of 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 option Enable file recovery from VM backup
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 20-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 270
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 271.
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 274.
Step 4 Review the Instant Recovery options See “Instant Recovery options on the
on the nbrestorevm command nbrestorevm command” on page 275.
Step 5 Use the nbrestorevm command to See “Restoring a virtual machine with
perform Instant Recovery Instant Recovery for VMware”
on page 276.
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 a Linux 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 34.
■ For a restore host that is separate from the NetBackup primary server or media
server: You must add the restore host to the list of servers that can access the
primary server.
In the NetBackup web UI, select Hosts > Host properties. Select the primary
server. Select Connect. Select Servers. On the Additional servers tab, select
Add to add the restore host
■ The NFS Client service must be enabled on the ESXi host.
■ The Network File System (NFS) must be installed on the Linux media server
and restore host and the portmap service must be active.
For information about how to install NFS, see the media server host operating
system documentation.
■ The Services for Network File System (NFS) must be installed on the Windows
media server and restore host.
See “About configuring services for NFS on Windows 2012 or 2016 (NetBackup
for VMware)” on page 361.
The NetBackup media server platform must support Granular Recovery
Technology. See the NetBackup Software Compatibility List (SCL).
■ 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 274.
■ 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 “Add VMware servers” on page 65.
■ Supports the following storage unit types (disk only): BasicDisk, AdvancedDisk,
Media Server Deduplication Pool (MSDP), and qualified third-party OpenStorage
devices.
Note: Snapshot-only backups are not supported.
■ Does not support a virtual machine that had the disks that were excluded from
the backup. The policy Virtual disk selection option must have been set to
include all disks.
■ Does not support a virtual machine that has a disk in raw device mapping mode
(RDM) or that has a disk in Persistent mode.
■ Supports the following policy schedule types: Full backups, and the incremental
backups that include the Use Accelerator option with a disk-based storage unit.
Incrementals without the Use Accelerator policy option are not supported.
■ Does not support virtual machine templates.
■ If the virtual machine contains an IDE drive, the restored virtual machine may
not start. This issue is not unique to instant recovery.
See “VMware virtual machine does not restart after restore” on page 347.
■ To avoid host name or IP address conflicts between the current virtual machine
and the virtual machine version you want to restore: Shut down the virtual
machine in your production environment before you start the recovery. Then
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.
https://www.veritas.com/docs/100028139
Restore virtual machines with Instant Recovery 274
Restarting the Client for NFS service on a Windows restore host
■ 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.
■ vMotion-derived restore (copy) of an Instant Recovery or Instance Access VM
does not reinstate storage policies.
The Client for NFS service should restart without a restart of the server.
Restore virtual machines with Instant Recovery 275
Instant Recovery options on the nbrestorevm command
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.
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 283.
■ 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 280
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.
To find the path, enter the following on the primary 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 20-4 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 287
Reactivating a restored virtual machine with Instant Recovery for VMware
Table 20-4 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 277.
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 21
Protecting VMs using
hardware snapshots and
replication
This chapter includes the following topics:
■ Jobs in the Activity Monitor that use hardware snapshot for VMs
This solution uses the NetBackup snapshot manager for performing hardware
snapshots. For more information about NetBackup snapshot manager, refer to the
NetBackup™ Snapshot Manager for Data Center Administrator's guide.
Note: This solution supports only the VMware datastores which are created on the
NAS storage. It does not support the VMware datastores created on the SAN
storage.
For all the supported NAS storage arrays, refer to the NetBackup Snapshot Manager
section, under Snapshot Solutions in the NetBackup Hardware and Cloud Storage
Compatibility List (HCL).
■ Backs up the virtual machines from the snapshots at primary locations and from
replicated snapshots at remote locations.
■ Block level incremental backup (BLIB) of the virtual machines from the snapshots
at primary locations and from replicated snapshots at remote locations.
■ Accelerator enabled backups of the virtual machines from the snapshots at
primary locations and from replicated snapshots at remote locations.
■ Supports browsing of virtual machine snapshots.
■ Restores a virtual machine from its vmdk files that are in a snapshot.
■ Restores an individual vmdk that is present in a snapshot.
■ Restores the individual files from the vmdk files in a snapshot.
■ Supports the storage lifecycle policies (SLPs).
■ Under the Application Protection, following applications are supported in the
VMware policy:
■ Microsoft Exchange databases
■ Microsoft SQL server
VMware NFS datastores VMware NFS datastores mounted on the ESX host must be
version NFS 4.1. or NFS 3.0.
VMware VCenter and ESX Virtual machines must reside on the NFS datastores.
sever hosting virtual machine
Protecting VMs using hardware snapshots and replication 293
Operations supported with hardware snapshot
Create array-based snapshots of Configure a storage lifecycle policy (SLP) and a backup
virtual machines on the NFS policy to create array snapshots of virtual machines. The
datastore. snapshots remain on the array or filer and are not
backed up to a NetBackup media server storage unit.
Note:
Back up quiesce virtual machines Configure SLP and backup policy to make a backup
from a snapshot (or snapshot image from the virtual machine snapshot. NetBackup
replica) which resides on the NFS backs up only the virtual machines quiesce before the
datastore. snapshot occurs.
Restore a virtual machine from a Use the NetBackup web UI interface to restore the virtual
snapshot (or snapshot replica) that machine. Supported restore destinations are the original
is on the NFS datastore or from (NFS) datastore or an alternate datastore (NFS or
the backup image written to non-NFS).
NetBackup storage unit.
Protecting VMs using hardware snapshots and replication 294
Configuring a VMware policy to use hardware snapshots
Restore individual files and VMDK Use the Backup, Archive, and Restore interface to
from a snapshot (or snapshot restore the files.
replica) that is on the NFS
Note:
datastore or from the backup
image written to NetBackup ■ To restore files from a replica of the snapshot, the
storage unit. replica must exist in the same NetBackup domain
as the snapshot.
■ To restore files to the original virtual machine, a
NetBackup client must be installed on the original
virtual machine.
Index from Snapshot The Index From Snapshot operation catalogs the
metadata of the virtual machine. This allows fast
browsing of files to restore.
Live Browse of snapshot The live-browse function allows you to browse the
content of VM snapshot that resides on the storage
array.
Note: This feature is not supported with protection plans for VMware. You need to
create a VMware policy using the NetBackup web UI to use this feature.
For more information about configuring VMware policies, see the following:
See “Configure a VMware policy” on page 86.
See “About automatic virtual machine selection for NetBackup for VMware”
on page 114.
Protecting VMs using hardware snapshots and replication 295
Configuring a VMware policy to use hardware snapshots
2 Configure the NAS storage array NetBackup Snapshot Manager for Data
plug-in. Center Administrator's Guide
3 Add the VMware backup host to See “Add a VMware access host”
your NetBackup configuration. on page 79.
5 Configure the SLP to use For more details, refer to these chapters
snapshot. in the NetBackup Snapshot Manager for
Data Center Administrator's Guide,topic:
Configuring storage lifecycle policies for
snapshots and snapshot replication.
Only those policy options that are necessary to configure VMware policy to use
hardware snapshot of VMs residing on NFS Datastore are listed in the following
procedure.
To create a policy to use VM hardware snapshot
1 Open the NetBackup web UI.
2 On the left, select Protection > Policies.
3 Select Add.
4 Configure the options on the policy Attributes tab.
■ Enter a Policy name and from the Policy type list select VMware.
■ Policy storage: Select the SLP which you want to use and is configured
for the snapshot-based protection.
■ Perform snapshot backups: Enable this option to automatically select
other options which are required for the snapshot backup.
■ Use Accelerator: Select this option to accelerate backup operations.
Protecting VMs using hardware snapshots and replication 296
Configuring a VMware policy to use hardware snapshots
6 Select the Schedules tab. To configure the full and the incremental schedule
for the backup, select Add.
7 Use the Clients tab to create a query for the automatic selection of virtual
machines. The selected VMs must reside on the NFS datastore.
See “Configure automatic virtual machine selection” on page 124.
8 Use VMware tab to select the virtual machine backup options.
Select Enable block-level incremental backup option to perform block level
incremental backups.
Note: The Transport modes are not supported and are disabled. NetBackup
uses the VMware file transport mode to move the data between the backup
host and the storage array.
Note: Under the Application protection options only Microsoft Exchange and
Microsoft SQL Server are supported.
1 Register the Snapshot Manager For more details, see the NetBackup
server in NetBackup. Snapshot Manager for Data Center
Administrator's Guide.
2 Configure the NAS storage array For more details, see the NetBackup
plug-in. Snapshot Manager for Data Center
Administrator's Guide.
3 Add the VMware access host to See “Add a VMware access host”
your NetBackup configuration. on page 79.
5 Configure the SLP to use snapshot For more details, refer to these
and replication. chapters in the NetBackup Snapshot
Manager for Data Center
Administrator's Guide:
Enabled The first job discovers the virtual machines. This job is
labeled Backup.
Disabled The first job discovers the virtual machines. This job is
labeled Backup.
Example 1: Virtual machine jobs with the Application Consistent Snapshot option
enabled.
Table 21-8 Linux logging directories for single file restore operation
Table 21-10 Linux logging directories for live browse operation (continued)
Table 21-11 Linux logging directories for index from snapshot operation
Table 21-14 Windows logging directories for single file restore operation
Table 21-16 Windows logging directories for live browse operation (continued)
Table 21-17 Windows logging directories for index from snapshot operation
Limit access to the datastore per policy: Use the Limit jobs per policy
attribute in the NetBackup policy.
Limit access to the datastore globally (across all policies): Use the Host
Properties Resource Limit screen.
See “Change resource limits for VMware resource types” on page 80.
■ 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.
vCenter1 vCenter2
Platform Services
Controller
VM1
Tag A (B)
Identifier: 135
Tag A
Identifier: 246
vCenter3 VM2
Tag A
Identifier: 246
Figure 22-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.
Best practices and more information 310
Best practices for VMware tag usage
■ 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 22-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.
In the example, the first clause automatically eliminates all virtual machines that
are poweredOff. The query does not need to evaluate the tag clause of the query
for all of those virtual machines.
Table 22-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 following:
■ Storage optimization cannot be used if a snapshot exists on the virtual machine when
VMware Changed Block Tracking is turned on.
■ The first backup you run with BLIB must be a full backup.
See “Block-level backup (BLIB): full vs incremental” on page 313.
■ BLIB works only with ESX 4.0 or later virtual machines at version vmx-07 or later.
■ If you used vSphere Client to manually create a VM snapshot and that snapshot is currently
active, you may have to delete the snapshot.
See “Deleting a vSphere Client snapshot” on page 313.
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.
Topic Source
List of supported combinations of See the Snapshot Client section in the Hardware and
platforms and snapshot methods Cloud Storage Compatibility List (HCL)
■ 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
■ A restored VM may not start or its file system(s) may not be accessible
■ 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
Table 23-1 NetBackup logs that pertain to VMware backup and restore
Table 23-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
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:
Troubleshooting VMware operations 319
NetBackup logging for VMware
On Windows:
install_path\NetBackup\logs\mklogdir.bat
On UNIX/Linux:
/usr/openv/netbackup/logs/mklogdir
Note: VxMS logging may require significant resources on the VMware backup host.
Note:If the VxMS log location is changed, the Logging Assistant does not
collect the logs.
Troubleshooting VMware operations 320
NetBackup logging for VMware
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.
Troubleshooting VMware operations 321
NetBackup logging for VMware
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
VDDK_VERBOSE=numeric value
Issue Explanation
Backup fails with Status 13. NetBackup allows up to 31 snapshots per virtual machine. If the virtual machine
has more than 31 snapshots, the backup may fail with status 13. Messages similar
to the following appear in the NetBackup job details:
Recommended action:
Backup fails with message: FTL If the number of snapshot delta files for a VM's vmdk exceeds 32, snapshot
- vSphere_freeze: Unable creation fails. A message similar to the following appears in the NetBackup detailed
to proceed with snapshot status:
creation, too many
Umesh_w2k3_hypervm33: FTL - vSphere_freeze: Unable to
existing delta files(50)
proceed with snapshot creation, too many existing delta files(50).
Delta files can accumulate if the VM's snapshots are not deleted or consolidated.
Consolidate or delete the existing snapshots, then rerun the backup.
Troubleshooting VMware operations 325
Troubleshooting the restore of VMware and restores of files
Issue Explanation
For an independent disk, the NetBackup for VMware cannot back up the data on an independent disk, because
backup succeeds but the backup an independent disk cannot be captured with a snapshot.
image contains no data for the
To back up the data on an independent disk, install a NetBackup client on the
independent disk.
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 fails the backups of A VM may be empty because all of its disks are empty or because disk exclusion
virtual machines that are empty. excludes all disks.
For the virtual machines that Because the VMware Change Block Tracking API behavior has changed beginning
vSphere 6.5 hosts, NetBackup fails in vSphere 6.5, NetBackup fails the backup.
the backup if a snapshot exists
NetBackup enables CBT on a VM if Block Level Incremental Backups is enabled
while NetBackup tries to enable
in the backup policy and CBT is not enabled already on the VM.
VMware Change Block Tracking.
The status log displays: If a policy is changed from manual selection to Intelligent policy (or vice versa),
the next backup of the VM is a regular full backup, even if a backup already exists
There is no complete for that VM.
backup image match,
a regular full backup
will be performed.
The virtual machine cannot be Make sure that the VMware Tools are installed and up to date on each virtual
quiesced in preparation for the machine.
snapshot.
Issue Explanation
Restore fails because the datastore This issue can occur when a virtual machine is configured on multiple datastores
did not have enough space for the and a leftover snapshot that existed on the virtual machine when it was backed
.vmdk files. up. NetBackup tries to restore all .vmdk files to the snapshot datastore.
File recovery from a VM backup is For a Linux virtual machine, if unsupported special characters are in the volume
unsuccessful. name, the Enable file recovery from VM backup option does not work. As a
result, you cannot restore individual files from that volume. The following topic for
supported characters.
■ Some of the logical volume disks are regular virtual disks (normal VMDKs).
■ Some of the disks in the same volume are independent disks or are physical
disks in raw device mapping mode (RDM).
The backup job succeeds but files cannot be individually restored from the file
systems that reside on the disk set (LVM or LDM). To be able to restore files
individually, reconfigure the VM's logical volumes to reside on regular virtual disks
(vmdk) only. Note that VMware does not make snapshots of independent disks
or RDM disks.
An incremental backup does not Any files that are moved or renamed or not backed up. However, when you restore
back up files and the individual files the entire VM from a block-level incremental backup, note: the file metadata is
cannot be restored from the updated and the moved or renamed files in the restored VM reflect the updated
incremental backup. metadata.
The restore fails when you restore When you restore individual files to a virtual machine that has a NetBackup client,
individual files to a virtual machine make sure that a firewall does not interfere with the restore. If a firewall stops the
that has NetBackup client software. restore, turn off the firewall and retry the restore.
Mount point missing on a restored A Windows virtual machine may fail to write its mount point configuration to disk
Windows virtual machine. (the mount point configuration remains in RAM). In that case, the mount point
information cannot be backed up. When the virtual machine is restored, the data
from the mounted volume is restored, but the mount point is absent from the
restored virtual machine.
Reassign the mount point on the restored virtual machine. To make sure the
mount point is correctly configured, restart the virtual machine.
Troubleshooting VMware operations 327
Troubleshooting the restore of VMware and restores of files
Table 23-6 Errors with VMware restores and file restores (continued)
Issue Explanation
Recovery of individual files or In some cases you may find you cannot access or recover certain files with an
folders is not available and requires individual file restore from a VMware backup. However, it may be possible to
“Switch to Instant Access”. recover these files with the “Switch to Instant Access” feature in the web UI. Some
examples of these files include files from unsupported file systems (for example,
btrfs or thin-provisioned LVM volumes) or unsupported file system features (for
example, files with XFS reflinks or shared extents). Additionally, if certain mount
points do not display in the browse tree or list view, you may have to click “Switch
to Instant Access“ to view these mount points.
See “Recover files and folders with VMware agentless restore” on page 245.
Mount points are not available For Linux virtual machines, only the ext2, ext3, ext4, and XFS file systems are
when restoring files from a Linux supported for individual file restore. If a partition is formatted with some other file
virtual machine. system, the backup succeeds but NetBackup cannot map the file system addresses
of the files. As a result, NetBackup cannot restore individual files from that partition.
Only the files that were on ext2, ext3, ext4, or XFS partitions can be individually
restored.
Note: To restore individual files from their original mount points, the "/" (root)
partition must be formatted as ext2, ext3, ext4, or XFS. If the "/" (root) partition is
formatted with a different file system (such as ReiserFS), the mount points cannot
be resolved. In that case, you can restore ext2, ext3, ext4, or XFS files from the
/dev level (such as /dev/sda1). You cannot restore the files from their original
mount point level.
Invalid client error when you If the virtual machine was backed up by display name or UUID, and the display
restore files using the BAR name is not the same as the host name, note: You cannot restore individual files
interface that is installed on the by means of the Backup, Archive, and Restore (BAR) interface if the interface is
virtual machine. installed on the virtual machine itself. The files can be restored if BAR is installed
on the primary 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.
An attempt to restore a full virtual Recommended action: Try the NBD transport type instead.
machine fails with the SAN
transport type.
Troubleshooting VMware operations 328
Troubleshooting the restore of VMware and restores of files
Table 23-6 Errors with VMware restores and file restores (continued)
Issue Explanation
Restoring a virtual machine with a The virtual machine had many small data extents due to heavy fragmentation. (A
transport mode of NBD or NBDSSL file system extent is a contiguous storage area defined by block offset and size.)
is slow.
Recommended action: Use the hotadd transport mode.
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 the SAN transport mode, the This issue can occur when you restore to a vCenter Server.
job is slow.
Recommended action: For greater speed, designate a VMware restore ESX server
as the destination for the restore.
For the SAN transport mode and The datastore’s LUN is offline. The detailed status log contains messages similar
a restore host on Windows, the to the following:
restore fail.
5/22/2013 4:10:12 AM - Info tar32(pid=5832) done. status: 24:
socket write failed
5/22/2013 4:10:12 AM - Error bpbrm(pid=5792) client restore EXIT
STATUS 24: socket write failed
Recommended action:
■ 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.
Restores that use the hotadd or The status log of the NetBackup job contains messages similar to the following:
SAN transport modes do not
include the VM's metadata 07/25/2013 12:37:29 - Info tar (pid=16257) INF - Transport Type
changes in the restore. = hotadd
07/25/2013 12:42:41 - Warning bpbrm (pid=20895) from client
<client_address>: WRN - Cannot set metadata (key:geometry.
biosSectors, value:62) when using san or hotadd transport.
Recommended action: Retry the restore with a different transport mode (nbd or
nbdssl).
Table 23-6 Errors with VMware restores and file restores (continued)
Issue Explanation
You cannot restore individual Make sure that the VMware Tools are installed and up to date on each virtual
VMware files onto the virtual machine.
machine itself, except under certain
conditions.
Issue Explanation
Virtualization server credential This error occurs when the NetBackup primary server is in a DNAT or a similar
validation fails. setup can access only a few specified NetBackup hosts (PROXY_SERVERS).
The credentials validation occurs in the following order:
Workaround: When you add the virtualization server credentials, select the proxy
server that has access to the virtualization server as the backup host for validation.
Note: Adding or updating VMware credentials also automatically starts the
discovery of the VMware server. When backup host information is provided in the
request, it is used to perform validation of credentials as well as for performing
the discovery. For discovery, NetBackup 8.1.2 is the minimum version that is
supported for a NetBackup media server or client that serves as a backup host.
For older versions, backup host credential validation succeeds, but the discovery
of VMware servers fails.
Unable to obtain the list This error might occur when VMware server credentials are added, updated, or
of trusted Certificate validated. It occurs if the environment is configured to enabled communication
Authorities. between NetBackup (primary server, media server, or client) and vCenter, ESX,
or any other VMware entity using authenticated certificates.
Issue Explanation
No VMs or other ■ If the server was added recently, the VM discovery process for that server may not have
objects were completed yet.
discovered for Recommended action: Wait for the discovery process to finish.
the VMware
Note: The discovery of VMs and other objects in the vCenter, ESXi server, or VMware Cloud
server.
Director server begins: when server credentials are added or updated through the web UI or
an API. However, the server's VMs and other objects might not appear in the UI immediately.
They appear after the discovery process for the VMware server completes. Discovery also
occurs at set intervals according to the VMWARE_AUTODISCOVERY_INTERVAL option. (The
default interval is every 8 hours.)
To perform autodiscovery of VMware server objects at a different frequency:
See “Change the autodiscovery frequency of VMware assets” on page 64.
■ VMs or other objects of the VMware server may not be accessible for the added VMware server
credentials.
Recommended action: From the option menu on the right of the row, select Edit. Review the
VMware server credentials and correct them as needed.
Table 23-9 Errors encountered when you review Status for a newly
discovered VM
The protection In the NetBackup web UI, the protection status for a newly discovered VM does not indicate that
status of a VM it is backed up until the next backup of the VM has completed.
indicates that it In some circumstances, a new VM is backed up before the discovery of that VM has happened,
has not been as in the following scenario:
backed up.
However, a ■ By default, autodiscovery occurs every 8 hours.
backup job that ■ A new VM is added to the environment.
includes the VM ■ A backup job completes successfully before discovery completes. For example, a backup job
has successfully that uses existing policies where the new VM is included as part of the backup selection criteria.
completed. ■ Later, discovery completes. However, in the NetBackup web UI, the protection status of the VM
indicates that it has not been backed up.
If you encounter a similar situation, you can still browse the recovery points and recover them.
However, it is only after another backup of the VM successfully completes that the protection status
indicates that the VM has been backed up.
To review the protection status of a newly discovered VM in the NetBackup web UI, Veritas
recommends that you wait until the next successful backup has completed. Then, the protection
status of the VM should correctly indicate its protection status.
Issue Explanation
When you select virtual machines Make sure that the VMware Tools are installed and up to date on each virtual
on the policy Clients tab, machine.
NetBackup cannot obtain the host
name, IP address, or DNS name
of the virtual machine.
Issue Explanation
The Test query operation fails for There is no direct connectivity between the NetBackup primary server and the
a VMware policy. ESX server (for example, ESX server in NAT environment) where a virtual machine
is to be backed up. Also, the NetBackup host to perform automatic virtual
machine selection option is set to Backup media server (for example, NAT
media server).
Issue Explanation
Chrome: This site can’t be The web UI is unable to access the NetBackup media server with the name
reached or IP address that the NetBackup primary server uses to connect to that
media server.
Firefox: Server not found
For example: If the primary server connects to the media server using
Edge: Hmmm…can’t reach this
MSserver1.veritas.com, the web UI must also be able to reach
page
MSserver1.veritas.com. If the primary server uses a short name for the
media server such as MSserver1, the web UI must be able to reach
https://MSserver1/...
Recommended action: Verify that the primary server and the web UI use
the same name or IP address to access the media server (check the hosts
file). For example: If the primary server uses the media server's short name,
add the media server’s short name and IP address to the hosts file of the
PC or other host where the web UI is running.
C:\Windows\System32\drivers\etc\hosts
/etc/hosts
The web UI is unable to access the NetBackup media server because that
server is behind a firewall.
Issue Explanation
The boot disk was backed up even The virtual machine only has a boot disk and no other disks.
though it was excluded from the
backup. The boot disk is part of a managed volume (Windows LDM or Linux LVM).
NetBackup can only exclude a boot disk if it is fully contained on a single disk.
The virtual machine’s boot disk is an independent disk and has no other disks.
NetBackup was not able to identify the boot disk. The boot disk must include the
boot partition and the system or the boot directory.
A restored boot disk has no data. The boot disk is an independent disk. NetBackup cannot back up the data in this
type of disk.
A restored virtual machine has a The disk that has missing or incomplete data was excluded from the backup.
disk that contains missing or
incomplete data.
A data disk (or disks) was backed The virtual machine has only one disk (such as C:). In this case, the single drive
up even though it was excluded is backed up and is not excluded.
from the backup.
A virtual machine is restored to an You added a disk to the virtual machine and changed the settings that exclude
unexpected state. disks. However, you did not create a backup of the entire virtual machine after
you made the change.
Not all files can be restored If you remove disks from the custom attribute value between the differential
individually. backups, only those files that changed since the last backup can be restored
individually. Alternatively, you can restore the entire virtual disk or the VM. After
the next full backup, you can restore any of the files individually.
If you remove a disk from To restore those files, restore the entire virtual disk or the virtual machine. After
exclusion, the individual files that the next full backup, those files are available to restore individually.
were last modified before the most
recent backup cannot be restored.
Troubleshooting VMware operations 334
How to determine the ESX network that NetBackup used for the backup or restore
succeess
10:49:22.0301 : openLeafSnapshotDisks:VixGuest.cpp:476 <INFO> : Transport
mode in effect = nbd
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.
Troubleshooting VMware operations 336
Preventing browsing delays caused by DNS problems
[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 106.
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.
Troubleshooting VMware operations 337
Changing the browsing timeout for virtual machine discovery
Http://www.veritas.com/docs/DOC5332
See “Browse for VMware virtual machines” on page 106.
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 VMware operations 338
Changing timeout and logging values for vSphere
Table 23-14 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 VMware operations 339
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.
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 VMware operations 341
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 VMware operations 342
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 375.
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 files.
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 the snapshot
quiesce fails, the NetBackup job fails with status 156.
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 316.
The following topic summarizes some common causes of 156 errors:
See “ Snapshot error encountered (status code 156)” on page 340.
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.
Troubleshooting VMware operations 345
Backup or restore job hangs
To back up a virtual machine while its files are in the process of migration
1 Open the NetBackup web UI.
2 On the left, select Workloads > VMware. Select the VMware servers tab and
select Add.
3 Select vCenter.
4 Provide the other details and the credentials for the server.
5 Select Save.
6 Locate and select the ESXi server. Then select Delete.
7 On the VMware servers tab, select the Add button.
8 Select Restore ESXi.
9 Provide the other details and the credentials for the server.
10 Rerun the backup.
Table 23-16 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
As a workaround, search for the files on the restored VM and move them to the
proper locations.
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:
Note: Limit the number of characters for each fstab entry to 90 on a VMware VM.
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 when the Windows restore host tries to mount the dynamic disk
that was added after the first backup. Depending on the data that has already been
restored, Windows may detect the dynamic disk as Invalid or Foreign. Further
writes to an Invalid or Foreign disk are unsuccessful and the restore fails.
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.
Troubleshooting VMware operations 351
Simultaneous hotadd backups (from the same VMware backup host) fail with status 13
In the NetBackup Activity monitor, the detailed status log may include messages
similar to the following:
■ The tag doesn't exist on the target vCenter Server. Be aware that NetBackup
restores tag associations to virtual machines by the tag identifier not tag
name.
■ The virtual machine was restored to a pre-6.0 vCenter Server.
■ Other VMware failures.
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.
Veritas has confirmed that this issue is resolved in vCenter Server 6.0 Update
1.
VMware Knowledge Base article: http://kb.vmware.com/kb/2124204
■ Confirm the system times of the discovery host and the vCenter Server are
synchronized.
VMware Knowledge Base article: http://kb.vmware.com/kb/2125193
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, Veritas does not have any
recommendations on this value. Increase the value until the problem is
eliminated.
See “To ensure that guest customizations can be restored in vCloud Director
on Linux” on page 355.
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.)
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.
■ If the VMDKs cannot be attached to the target VM, the restored VMDKs are
retained on the temporary VM. The name of the temporary VM is available in
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:
Error Explanation
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 VMware operations 358
Issues with the CA certificate during installation of the NetBackup client on VMware Cloud (VMC)
■ 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)
■ 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)
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
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 363
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 364
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 365
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 367
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.
3 Click Services.
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 370
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 372
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 a Windows 2012 or
2016 restore host (NetBackup for VMware)” on page 365.
■ You can configure a different network port for NBFSD.
HKEY_LOCAL_MACHINE\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config
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:
Support for NetBackup in virtual environments
Backups of VMware raw devices (RDM) 375
Configurations for backing up RDMs
http://www.veritas.com/docs/000006177
■ RDM devices must be configured in physical compatibility mode. You select this
mode when you create the RDM. Physical compatibility mode is not configured
in NetBackup.
For an introduction to RDM, refer to your VMware documentation. For example,
see the following VMware document:
ESX Server 3 Configuration Guide
■ NetBackup may require certain OS and array configuration, depending on the
guest OS and the array.
■ NetBackup client software must be installed on the virtual machine.
■ The requirements for the NetBackup for VMware feature (a backup host and
the VMware snapshot method) do not apply to backups of RDM disk arrays. To
back up RDM disk arrays, you must configure a Snapshot Client alternate client
backup.