The snapshots of the data created by the SnapProtect backup are also available for various other operations like list, mount, unmount, or delete.
You can mount any available snapshot to access the data included in the snapshot. It is recommended that you select the option to protect a snapshot when it is mounted, as this will ensure that the changes made to the snapshot when it is mounted are not retained when you unmount the snapshot and the snapshot is usable for data protection operations. Follow the steps given below to mount snapshots:
If the niSCSIEnable registry key is configured, SnapProtect backup will always try to mount using iSCSI method. If this key is not configured, SnapProtect backup will try to mount using the FC method first. |
While performing mount operations you can use a temporary ESX server to reduce the load on the production server.
|
Snapshots can either be deleted using job-based pruning or from the list of displayed snapshots when browsing snapshots. Data Aging can also be used to define the retention rules and pruning of snapshots. Follow the steps given below to delete snapshots:
|
|
You can use the revert operation to bring the data back to the point-in-time when the snapshot was taken. This operation overwrites any modifications to the data since the time when the snapshot was created.
Revert operations for a virtual machine are supported on NetApp File Servers but not from SnapVault or SnapMirror snapshots. Other file servers are not supported. To perform a revert operation, the SnapRestore license is required on the NetApp file server.
Before performing revert operation, ensure that all the disks reside on the NFS data store. If the data does not reside on the NFS data store, you cannot perform the revert operation.
It is recommended to verify the contents of the backup and ensure that you want to perform a revert operation as it is an irreversible operation. |
|
The Virtual Server iDataAgent requires user accounts that have sufficient privileges for the software to:
An administrative account configured with the VCB Role and the following additional privileges can be used:
User-defined roles can also be created provided the above-mentioned privileges are included in those roles.
The following sections provide the steps necessary to configure user accounts for Virtual Centers and ESX Servers.
|
You can create a separate account for backup and restore operations. When you are create a user account, following system privileges are automatically added to account:
Category | Available Permissions |
System | Anonymous Read View |
Ensure that the following permissions are assigned to the user account:
Category | Available Permissions |
---|
Datastore | Allocate space Browse datastore Configure datastore Low level file operations Remove datastore Rename datastore Update virtual machine files |
Global | Disable methods Enable methods Licenses |
Host - Configuration | Advanced settings Connection Storage partition configuration System Management |
Virtual machine - Configuration | Add existing disk Add new disk Add or remove device Change resource Disk change tracking Disk lease Remove disk Settings |
Virtual machine - Provisioning | Allow read-only disk access Allow virtual machine download Clone virtual machine |
Virtual machine - Snapshot Management ("Virtual machine - State" in vSphere 4.1) | Create snapshot Remove Snapshot |
Category | Available Permissions |
---|
Datastore | Allocate space Browse datastore Configure datastore Remove datastore Rename datastore Update virtual machine files |
Host - Configuration | Advanced settings Connection Storage partition configuration System Management |
Network | Assign network |
Resource | Assign vApp to
resource pool Assign virtual machine to resource pool |
Virtual machine - Configuration | Add existing disk Add new disk Add or rRemove device Advanced Change CPU count Change resource Disk change tracking Disk lease Host USB device Memory Modify device settings Raw device Reload from path Remove disk Rename Reset guest information Settings Swapfile placement Upgrade virtual machine compatibility ("Upgrade virtual hardware " in vSphere 4.1") |
Virtual machine - Interaction | Power Off Power On |
Virtual machine - Inventory | Create new Register Remove Unregister |
Virtual machine - Provisioning | Allow disk access Allow read-only disk access Allow virtual machine download Mark as template (to restore VM template) |
Virtual machine - Snapshot Management ("Virtual machine - State" in vSphere 4.1) | Create snapshot Remove Snapshot Revert to snapshot |
It is recommended to configure automatic discovery of virtual machines by data store affinity
if you have a large VMware environment with many virtual machines, ESX servers
and datastores. When configured, new virtual machines found in the datastore are automatically assigned to the desired subclient and backed up when backup operations on the subclient are performed.
|
Use the following steps to configure a subclient with SnapProtect properties:
qoperation execute -af update_subclient_add_template.xml -appName 'Virtual Server' -clientName xxxxx -backupsetName xxxxx -subclientName xxxxx -backupType xxxxx
qoperation execute -af update_subclient_add_template.xml -appName 'Virtual Server' -clientName xxxxx -backupsetName xxxxx -subclientName xxxxx -useProxy/clientName xxxxx
qoperation execute -af update_subclient_add_template.xml -appName 'Virtual Server' -clientName xxxxx -backupsetName xxxxx -subclientName xxxxx -transportModeForVMWare xxxxx
qoperation execute -af update_subclient_add_template.xml -appName 'Virtual Server' -clientName xxxxx -backupsetName xxxxx -subclientName xxxxx -isSnapBackupEnabled true -proxyESXHost xxxxx
qoperation execute -af update_subclient_add_template.xml -appName 'Virtual Server' -clientName xxxxx -backupsetName xxxxx -subclientName xxxxx -isSnapBackupEnabled true -backupForGranularRecovery true -truncateExDBLogs true
qoperation execute -af update_subclient_add_template.xml -appName 'Virtual Server' -clientName xxxxx -backupsetName xxxxx -subclientName xxxxx -isSnapBackupEnabled true -useSeparateProxyForSnapToTape true -separateProxyForSnapToTape/clientName xxxxx
qoperation execute -af update_subclient_add_template.xml -appName 'Virtual Server' -clientName xxxxx -backupsetName xxxxx -subclientName xxxxx -isSnapBackupEnabled true -snapShotEngineName 'xxxxx'
The following table describes the parameters used in the above sections.
Parameter | Description of Parameter values | ||
clientName | Name of the client computer. | ||
backupsetname | Name of the backup set. If the backup set name is not specified in the command query, the default backup set is used by default. | ||
appName | Name of the application. In this case it would be 'Virtual Server'. | ||
subclientname | Name of the subclient. | ||
backupType | Option to set the backup level at which the
SnapProtect backup should run. Valid values are:
|
||
useProxy/clientName | Name of the client computer that will behave as the proxy. This is useful when you want a different computer to perform the backups. | ||
transportModeForVMWare | Option to set the transport mode of your
environment. Valid values are:
|
||
isSnapBackupEnabled | Option to enable the SnapProtect configuration on
the subclient. Valid values are true/false. |
||
backupForGranularRecovery | Option to enable the application aware backup
operation to allow granular recovery of files. Valid values are
true/false. When this option is set to true, you can also truncate the Exchange Database logs using the truncateExDBLogs parameter. Valid values for this parameter are true/false. |
||
useSeparateProxyForSnapToTape | Option to enable the use of a proxy computer to
perform SnapProtect operations in a different Virtual Server client.
Valid values are true/false. When this option is set to true, you also need to specify proxy computer using the separateProxyForSnapToTape/clientName parameter. |
||
snapShotEngineName | Name of the storage array to be configured with
the subclient. Valid values are:
|
When you are using Virtual Server iDataAgent to create the snapshot of a SQL server, you can truncate the SQL server database logs before creating the snapshot. Follow the steps given below to truncate the SQL server database logs:
Once you install the agent, the CvSQLBackupUtility will be available in the <Base> folder under <Installation Directory> on the virtual machine. This utility will be used to truncate the SQL server database logs.
CvSQLBackupUtility.exe -server <SQL Server> -database <databasename> -op <operation>
This command will execute the SQL command to truncate logs.
For example:
<Install Directory>\Base\CvSQLBackupUtility.exe" -server VSA_SQL2 -database ReportServer -op truncatelog
The post-thaw-script location varies based on ESX versions For more information refer to http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006671.
When you perform the SnapProtect backup of the SQL server, the batch file will be executed while creating the snapshot and the SQL database logs will be truncated.
You can verify a backup to ensure that you can restore the virtual machine.
The recovery verification recreates the virtual machine to ensure backed up application and data are available as expected. |
|
Mount the snapshot
|
|
Browse the data
|
|
BROWSE NEW DATASTORE AND REGISTER THE VIRTUAL MACHINE
|
|
Verify the data using VI client
|
|
unmount the snapshot
|
When restoring VMware data, it is important to consider the backup level that was originally performed. The following table illustrates the types of restores available for each backup level:
Backup Level |
Restore Level from Snap |
Restore from Tape |
Notes |
Disk-Level |
Disk-Level (as virtual machine)
Disk Level (as VMDK file) |
Disk-Level (as virtual machine)
Disk Level (as VMDK file) |
|
Disk-Level with Enable Granular Recovery enabled |
Disk-Level (as virtual machine)
Disk-Level (as VMDK file) Volume-Level (as physical volume)Volume-Level (as VHD) Volume-Level (as VMDK) File-Level |
Disk-Level (as virtual machine)
Disk-Level (as VMDK file) File-Level
|
|
Volume-Level |
Disk-Level (as virtual machine)
Disk Level (as VMDK file) |
Volume-Level (as physical volume) Volume-Level (as VHD) Volume-Level (as VMDK) |
Supported only with volumes formatted with the NTFS file system. |
Volume-Level with Enable Granular Recovery enabled |
Disk-Level (as virtual machine)
Disk-Level (as VMDK file) Volume-Level (as physical volume)Volume-Level (as VHD) Volume-Level (as VMDK) File-Level |
Volume-Level (as physical volume) Volume-Level (as VHD) Volume-Level (as VMDK) File-Level |
Supported only on Windows-based VMware virtual servers formatted with the NTFS file system. |
File-Level |
File-Level Disk-Level (as virtual machine) Disk-Level (as VMDK file) Volume-Level (as physical volume)Volume-Level (as VHD) Volume-Level (as VMDK) |
File-Level | For file level restores, select Enable Granular Recovery option. |
You can override the default restore selection by choosing a different
Virtual Centre or ESX Server to restore, by following the steps given below:
|
To restore files and folders to a Windows client, the client must have one of
the following components installed:
Consider that the following before restoring files and folders from a virtual machine:
You can restore files from NTFS file systems with the following limitations:
If you cannot restore a file, you can restore the complete virtual machine or the disk that contains the file. When restoring a file or folder on a virtual machine, the Enable Granular Recovery must have been selected when the backup was performed.
|
You can restore files and folders from a snapshot when a backup is performed without enabling the Enable Granular Recovery
advanced backup option.
Before performing the browse and restore from a snapshot, note the following:
Follow the steps given below to perform the browse and restore from a snapshot:
|
You can perform a restore from the backup copy by setting the appropriate copy
precedence number.
8. Click OK. 9. Click OK to close the Restore Options dialog box and start the restore job. |
The following procedures describe the available retention configurations for snapshots. For movement to media retention, refer to Data Aging - Getting Started.
By default, snapshots are pruned based on the number of retention days and cycles specified in the storage policy. You can configure your snapshot copy to retain a defined number of SnapProtect backup jobs. When the total number of jobs goes above the specified retention number, the remaining jobs will be pruned. This configuration is recommended for File System and File System like Agents. This feature is supported for SnapProtect operations performed using the NetApp storage array.
The NetApp Snap Management license is required for retaining snaps by number of jobs.
1. |
|
|
2. |
|
The following options are not supported for SnapProtect backup for Virtual Server iDataAgent - VMware:
The backup copy is an additional standby copy of data. It can be created during the SnapProtect backup or at a later time. You can use a separate proxy client and ESX Server to create a backup copy. If you want to reduce the time required for mounting the snapshot, you must use a local Proxy client and ESX server for backup copy operations.
The backup copy can be an inline backup copy, offline backup copy or netapp’s vault or mirror copies.
For example: The default proxy client and ESX Server is in location A and you want to use the backup copy of the data from location B. In such scenario, you can use an ESX server in location B for creating backup copy and then restore virtual machines from the backup copy.
Follow the steps given below to use a separate proxy for creating the backup copy:
|
Follow the steps given below to specify a secondary ESX Server. The snapshots will be mounted to the specified ESX proxy and not to the Primary proxy.
|
Follow the steps given below to perform the browse and restore from a snapshot mounted on the alternate ESX Server:
|
|
The secondary ESX server will be used to restore the virtual machine. |
Quiescing indicates pausing or altering the state of running processes on a computer, particularly those that might modify information stored on disk during a backup, to guarantee a consistent and usable backup.
For windows Microsoft VSS inside the guest will be used to quiesce the file system and applications. This ensures that the data consistency of the file system and all VSS supported applications. By default VMware will engage all of the VSS writers that are configured inside the guest. If it is necessary to exclude a writer please refer to http://kb.vmware.com/kb/1031200
For Linux, the vmsync driver will be used to quiesce the file system and applications. This is included with VMware tools. The vmsync driver ensures that the file system is in a consistent state prior to the vmware snapshot being created. The vmsync driver is only supported with vSphere 5.0 and above.
Consider the following before enabling or disabling the quiescing during the backup:
You can disable quiescing to reduce the backup time. If you disable quiescing, you can perform backup of the virtual machines which has .vmdks with same name.
|
You can use the VMware tools to perform the any operations before or after the backup. For example: A virtual machine hosts a oracle database and you want to enable the Hot backup of the database before performing the backup, you can run a script using the VMware Tools.
For more information about running scripts on Windows virtual machines, refer to http://kb.vmware.com/kb/1006671
On the Linux virtual machines, the script /usr/sbin/pre-freeze-script will be executed when the software snapshot is created and /user/sbin/post-freeze-script will be executed when the software snapshot is removed. Ensure that these scripts are executable by the VMware tools user.
The following scripts are available to perform the Pre/Post processes using VMware tools:
Operation |
Procedure |
Scripts |
The scripts can be used to take snapshot of a VM with DB2 Application. This script allows VMWARE to suspend I/O updates to DB2 database till VMWARE LINUX guest snap shot is completed. |
|
pre-freeze-script.sh |
The scripts can be used to take snapshot of a VM with MAXDB Application. This script allows VMWARE to suspend I/O updates to MAXDB database till VMWARE LINUX guest snap shot is completed. |
|
pre-freeze-script.sh
resume_logwriter.sh
|
The scripts can be used to take snapshot of a VM with Oracle Application. This script allows VMWARE to suspend I/O updates to Oracle database till VMWARE LINUX guest snap shot is completed. |
|
pre-freeze-script.sh pre-freeze-script.sql |
The scripts can be used to take snapshot of a VM with Sybase Application. This script allows VMWARE to suspend I/O updates to Sybase database till VMWARE LINUX guest snap shot is completed. |
|
pre-freeze-script.sh pre-freeze-script.sql |
Several additional options are available to further refine your backup and restore operations. The following table describes the additional options:
Option | Description | Related topics | ||
Job Results Directory |
Ensure that the full path name for the Job Results Directory, combined
with the VMDK file name, is no
greater than 255 characters in length.
|
Refer to Job Management. | ||
Pre/Post Commands |
The Pre/Post commands for SnapProtect backup
can either be executed on the proxy or the source computer. You can use
the Pre/Post Process tab of the Subclient Properties dialog
box to select where you wish to execute the Pre/Post commands. SnapProtect
backup supports Pre/Post commands for the agents that support it.
|
For more information on using the Pre/Post commands, see Pre/Post Processes. | ||
View Snapshot Details |
You can view the details of a snapshot for an agent, job,
or a snapshot copy. When you right-click any of these entities, you will
be able to browse all the snapshots corresponding to the selected entity.
|
|||
Select a Job for Backup Copy |
You can select a specific job for creating backup copy.
Once selected, the Move Snap to Tape field for the specific job will be
changed to Picked (i.e., the next backup copy operation will move this job
to media).
|
|||
Disable a Job for Backup Copy |
You can prevent a job from being moved to media. You
can apply this option to those jobs that were previously selected for moving
to media. On selecting this option, the Move Snap to Tape field for the
specific job will be changed to Not Picked (i.e., the next backup copy operation
will not move this job to media).
|
|||
Offline Snap Copy Job Summary Report | Offline Snap Copy Job Summary Report provides job summary details of backup copy jobs for moving snapshots to media. | See Backup Copy Job Summary Report for more details | ||
Find |
Use Find to search and locate files or folders from a SnapProtect backup. If you want to restore a specific file or folder from a backup set or subclient, you can search the file or folder in the backup set or subclient.
Before searching the subclient, ensure that all the files and folders in the subclient are included in the index. The files and folders are included in the index when you perform the File Level backup or Enable Granular Recovery before performing the Volume Level or Disk Level backup. |
See Finding and Restoring for more details. |