Administration Guide: Snapmanager 7.2 For Microsoft SQL Server
Administration Guide: Snapmanager 7.2 For Microsoft SQL Server
Administration Guide
Contents
Product overview .......................................................................................... 6
Backing up and verifying your databases .................................................. 8
SnapManager backup overview .................................................................................. 8
Two ways that SnapManager performs full database backups ........................ 8
How SnapManager updates the SnapInfo directory ........................................ 9
How SnapManager checks database integrity in backup sets ....................... 10
Prerequisites for VMDK verification or cloning on SnapMirror destination
volumes ................................................................................................................ 12
Formatting requirements for the change list file ........................................... 13
Replacing destination data store UUIDs for VMFS data stores .................... 13
Defining a backup strategy ........................................................................................ 14
Backing up your databases for the first time ............................................................. 16
Verifying the initial backup set .................................................................................. 18
Scheduling recurring backups ................................................................................... 19
Scheduling recurring transaction log backups .......................................................... 20
Scheduling recurring backup set verifications .......................................................... 21
Managing backup retention ....................................................................................... 22
Maximum number of Snapshot copies per volume ....................................... 22
Automatically deleting backups .................................................................... 22
Explicitly deleting backups ........................................................................... 23
Considerations for configuring Availability Groups ................................................. 24
Managing transaction log backups of Availability Group databases ........................ 25
Changing the backup management group of an existing backup set ........................ 26
What to do if a SnapManager backup operation fails ............................................... 26
Restoring databases .................................................................................... 30
How SnapManager a restore operation works .......................................................... 30
Types of SnapManager restore operations .................................................... 31
Sources and destinations for a SnapManager restore .................................... 33
Transaction log backups from SQL Server Management Studio .................. 34
Post-restore database recovery states ............................................................ 34
Requirements for restoring a database ...................................................................... 35
Finding backup sets ................................................................................................... 35
Restoring a database from a local backup set ........................................................... 36
Restoring a database from a backup set created on a different server ....................... 38
Restoring replicated, publisher, and subscriber databases ........................................ 40
Reseeding a database on an Availability Group ........................................................ 40
Recovering databases using archived backup sets .................................................... 41
Recovering databases using SnapMirror ................................................................... 42
Recovering databases on VMDKs using SnapMirror ............................................... 44
Preparing the primary site for recovery ......................................................... 44
Preparing the secondary site for recovery ..................................................... 44
4 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Product overview
SnapManager for Microsoft SQL Server is a host-side component of the NetApp integrated storage
solution for SQL Server, offering application-aware primary Snapshot copies of SQL databases. You
can use SnapManager with Data ONTAP SnapMirror technology to create mirror copies of backup
sets on another volume, and with Data ONTAP SnapVault technology to archive backups efficiently
to disk.
Together these tools offer a complete Snapshot-based data protection scheme that is as scalable,
reliable, and highly available as the underlying storage system. The following illustration shows the
components in a SnapManager deployment with clustered Data ONTAP:
SnapManager highlights
SnapManager features seamless integration with Microsoft products on the Windows host and with
NetApp Snapshot technology on the back end. It offers an easy-to-use, wizard-based administrative
interface.
• Integration with the Microsoft Volume Shadow Copy Service (VSS) ensures that write requests
are frozen and write caches flushed before backups are taken. SnapManager provides full support
for Windows Volume Manager, Windows Server Failover Clustering, Microsoft Multipath I/O
(MPIO), and SQL Server AlwaysOn Availability Groups.
• Fast, nondisruptive Snapshot technology using NetApp SnapDrive for Windows software lets you
back up databases in seconds and restore them in minutes without taking SQL Servers offline.
Snapshot copies consume minimal storage space. You can store up to 255 copies per volume.
• Automated central administration offers hands-off, worry-free data management. You can
schedule routine SQL Server database backups, configure policy-based backup retention, set up
point-in-time and up-to-the-minute restore operations and proactively monitor your SQL Server
environment with periodic email alerts. PowerShell cmdlets are available for easy scripting of
backup and restore operations.
• Support for iSCSI, Fibre Channel, FCoE, RDM, and VMDK over NFS and VMFS
8
Related information
SnapManager 7.2 for Microsoft SQL Server Installation and Setup Guide For Data ONTAP
Operating in 7-Mode
SnapManager 7.2 for Microsoft SQL Server Installation and Setup Guide For Clustered Data
ONTAP
• Transaction logs
• SnapInfo directories
Together these Snapshot copies comprise a backup set. SnapManager uses a backup set to restore a
database.
After SnapManager backs up your databases, it can perform an integrity verification of the backup
sets. SnapManager uses the Database Consistency Checker (DBCC), a Microsoft SQL Server utility,
to verify the page-level integrity of databases. Verification ensures that you can use backup sets to
restore databases as needed.
Important: SnapManager cannot restore databases from Snapshot copies created by Data ONTAP
or SnapDrive. You should perform backups using SnapManager only.
Databases belonging The SnapInfo directory name is SQL__ followed by the name of the SQL
to an SQL Server Server instance:
named instance SQL__InstanceName
For example, the subdirectory for databases that belong to the SQL Server
instance INST2 on the Windows host system ENGR-WINSRVR7 would be
named as follows:
SQL__INST2
10 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
• Using the Configuration wizard, you can verify live databases before and after database
migration.
• Using SnapManager Backup, you can verify live databases before and after a full database
backup.
To perform live verification of databases residing on SMB shares, you must configure the verification
settings in the SnapManager console to use the TABLOCK option.
Databases in backup sets can be verified on creation, separately, or before a restore operation:
• Using SnapManager Backup, you can verify the databases in full database backup sets as they are
created or you can verify the databases in the most recent unverified backup sets.
• Using SnapManager Restore, if you select a backup set on which a consistency check has not
been run successfully, SnapManager prompts (but does not require) you to first verify the
databases in that backup set.
Requirements for running SQL Server DBCC against the databases in a backup set
When you verify the databases in a backup set (as opposed to live databases), Microsoft DBCC
requires that all the database files be mounted at the same time. At a more granular level, this means
that SnapManager, using SnapDrive commands, mounts all the LUNs or VMDKs that contain the
backup sets selected for database verification.
To run the DBCC CHECKDB command, the verification server (whether local or remote) must have a
sufficient number of drive letters available or a mount point to mount all the LUNs or VMDKs
storing the database backup sets that you are verifying.
• When you run database verification against backup sets that are stored on a single LUN or
VMDK, the SQL Server host that is used as the verification server must have at least one drive
letter available or a mount point so that the LUN or VMDK can be mounted during database
verification.
• When you run database verification against backup sets that contain multiple database files stored
on separate LUNs or VMDKs, SnapManager mounts all those LUNs or VMDKs at the same
time.
Consequently, the SQL Server that is used as the verification server must have enough drive
letters available so that SnapManager can mount each of the LUNs or VMDKs simultaneously.
For example, suppose you want to run database integrity verification against backup sets
containing five file groups using three transaction logs stored on eight separate LUNs or VMDKs.
In this case, the verification server would need to have a minimum of eight drive letters or a
mount point available.
Note: Available drive letters are not required if the databases reside on SMB shares.
Backing up and verifying your databases | 11
• The virtual machine is installed on the ESX server on the secondary site.
• SQL Server, SnapDrive, and SnapManager are installed on the virtual machine.
• The ESX server is managed by another vCenter Server and the VSC server on the secondary site.
• SnapDrive is installed on the secondary virtual machine that is pointing to the VSC server on the
secondary site.
• On the primary site, you have selected the SQL Server on the secondary site as the remote
verification server.
• On both the primary and secondary VSC servers, you have created a Windows share on the VSC
repository folder where the backup metadata file resides.
• The SnapManager service account has read permission on the share at the primary site and write
and modify permissions at the share on the secondary site.
• The primary VSC server has discovered the destination storage system.
• For NFS datastores residing on clustered Data ONTAP, a datastore must exist on the SnapMirror
destination volume and the name of the destination datastore must be specified in the change list
file.
• On the primary virtual machine where the backup is initiated, the following registry settings and
values must be defined in HKEY_LOCAL_MACHINE\SOFTWARE\Network Appliance
\SnapManager for SQL Server\Server:
SMVITransformEnable
dword:00000001
SMVITransformScript
SMVI_Metadata_update.exe
SMVIDestinationServer
destination SMVI server name
SMVISourceBackupXmlUNC
\\source SMVI server name\SMVI repository share name\backups.xml
SMVIDestinationBackupXmlUNC
\\destination SMVI server name\SMVI repository share name
\backups.xml
SMVIChangeListFile
change list file name
Backing up and verifying your databases | 13
In this format, DatastoreType is either NFS or VMFS and DatastoreUUID is not required for an
NFS volume.
Note: For NFS datastores residing on ONTAP, SourceStorageName and
DestinationStorageName must be the IP addresses of the source and destination NFS data
LIFs.
The following example shows the contents of an NFS change list file:
NFS
ds-nfs1 ds-nfs1-dest snapmgr-05-vm2 snapmgr-54-vm1 4211945a-124a-b7c9-
ae63-cacc07f3f4f8
420f010b-7e5a-e66e-7ed1-7bef6a357cca snapmgr-05-vm1 snapmgr-54-vm1
172.17.233.24
172.17.232.74 snapmgr05_vmw1 snapmgr05_vmw1_mir
Steps
2. Select the SnapMirror destination volume on which the data store is available, and then bring the
data store online.
3. On the secondary SMVI server, select Resignature the LUN to add the LUN to the destination
volume as the destination data store on the secondary ESX server.
5. Replace the destination data store name and the destination data store UUID with the new values
that you made a note of in the change list file.
14 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
For both types of backups, you can choose the copy-only option to specify that SQL Server not
truncate transaction logs. Use this option when you are backing up your databases with another
backup application. Keeping transaction logs intact ensures that any backup application can restore
the databases. You typically should not use copy-only in any other circumstance.
Important: SnapManager can perform one operation at a time. Do not schedule overlapping
SnapManager operations.
For the same reason, it is usually not necessary to run backup set verification every time you perform
a backup. Performing verification at regular but less frequent intervals is usually sufficient to ensure
the integrity of the backup. A single verification job can verify multiple backup sets at the same time.
Important: SnapManager can perform one operation at a time. Do not schedule overlapping
SnapManager operations.
Generic Adds the string “recent” to the name of the most recent Snapshot copy. All
other Snapshot copies include a time stamp.
Example:
The selected naming convention applies to all backups. You should use the unique naming
convention unless you have a script that requires the constant string “recent”.
Also, when the database resides on a VMDK, you must use the Unique naming convention when you
want to clone Snapshot copies.
You can change the naming convention in the Backup Settings dialog box.
Which backup management group do you want to assign to the backup job?
You select a backup management group to apply a labeling convention to Snapshot copies. When you
back up a database, you can choose from three management groups:
Management Description
group
Standard Does not include the name of the management group in Snapshot copy
names.
Example:
Management Description
group
Weekly Adds “Weekly” to Snapshot copy names.
Example:
For example, if you schedule daily and weekly backups, you should assign the backups to the Daily
and Weekly management groups, respectively.
Note: Management groups do not enforce a backup schedule.
How long do you want to retain backup copies on the source storage system and the
SnapMirror destination?
You can choose either the number of days you want to retain backup copies, or specify the number of
backup copies you want to retain, up to 255. For example, your organization might require that you
retain 10 days worth of backup copies.
If you set up SnapMirror replication, the retention policy is mirrored on the destination volume.
Note: For long-term retention of backup copies, you should use SnapVault.
How long do you want to retain transaction log backups on the source storage
system?
SnapManager needs transaction log backups to perform up-to-the-minute restore operations, which
restore your database to a time between two full backups. For example, if SnapManager took a full
backup at 8:00 a.m. and another full backup at 5:00 p.m, it could use the latest transaction log backup
to restore the database to any time between 8:00 a.m. and 5:00 p.m. If transaction logs are not
available, SnapManager can perform point-in-time restore operations only, which restore a database
to the time that SnapManager completed a full backup.
Typically, you require up-to-the-minute restores for only a day or two, which means you would retain
transaction log backups for one or two days.
Do you want to verify backup copies using the source volume or destination volume?
If you use SnapMirror or SnapVault, you can verify backup copies using the Snapshot copy on the
SnapMirror or SnapVault destination volume, rather than the Snapshot copy on the primary storage
system. Verification using a destination volume reduces load on the primary storage system.
If you need to create backups using another tool, what backup type should you use?
If you need to create backups using another backup tool, create copy or differential backups only
with that tool. Normal (full) and incremental backups truncate transaction logs, effectively disabling
SnapManager up-to-the-minute restores.
Steps
1. In the Console Root tree, expand the server on which the databases reside and click Backup.
2. In the Backup pane, select the databases that you want to backup.
4. In the Backup and Verification dialog box, keep Full database backup selected and define the
properties for the backup job:
Steps
1. In the Backup pane, select the databases that you want to include in the backup verification
schedule.
3. In the Backup and Verification dialog box, select Verify most recent unverified snapshot
backups only and then define the properties for the backup verification:
Steps
1. In the Backup pane, select the databases that you want to include in the backup schedule.
3. In the Backup and Verification dialog box, keep Full database backup selected and define the
properties for the backup schedule, as described in Backing up your databases for the first time on
page 16.
4. Click Schedule.
5. In the Schedule Job dialog box, enter a job name, choose a schedule service (SQL Server Agent
or Windows Scheduled Tasks), and click OK.
d. Expand SQL Server Agent, expand Jobs, right-click the job and
then click Properties.
f. Fill out the New Job Schedule dialog box and click OK.
c. Click OK.
Steps
1. In the Backup pane, select the databases that you want to include in the backup schedule.
3. In the Backup and Verification dialog box, select Transaction log backup and then define the
properties for the transaction log backup schedule:
4. Click Schedule.
5. In the Schedule Job dialog box, enter a job name, choose a schedule service (SQL Server Agent
or Windows Scheduled Tasks), and click OK.
d. Expand SQL Server Agent, expand Jobs, right-click the job and
then click Properties.
f. Fill out the New Job Schedule dialog box and click OK.
c. Click OK.
Steps
1. In the Backup pane, select the databases that you want to include in the backup verification
schedule.
3. In the Backup and Verification dialog box, select Verify most recent unverified snapshot
backups only and define the properties for the backup verification schedule as described in
Verifying the initial backup set on page 18.
You might need to modify the Number of snapshot backups to verify field, depending on the
number of backups SnapManager will take between scheduled verifications.
4. Click Schedule.
5. In the Schedule Job dialog box, enter a job name, choose a schedule service (SQL Server Agent
or Windows Scheduled Tasks), and click OK.
d. Expand SQL Server Agent, expand Jobs, right-click the job and
then click Properties.
f. Fill out the New Job Schedule dialog box and click OK.
c. Click OK.
Also suppose you have set the Delete Oldest Backups in Excess Of dialog box to 1 to preserve only
one of each backup set, the most recent one.
In order to preserve one good backup for Database B, SnapManager does not delete the Snapshot
copy sqlsnap__orbit3_10-23-2013_16.21.07. Therefore, two backups for Database B remain
instead of one.
Option to retain up-to-the-minute restore ability
If you delete backups that are not the oldest backups in your backup list (as can happen when you are
deleting backups of a particular backup management group), the corresponding transaction logs are
also deleted. That means the older remaining backups are no longer available for an up-to-the-minute
restore because the transaction logs are no longer contiguous from the time when the older backup
was taken to the present time.
SnapManager for Microsoft SQL Server enables you to preserve the logs in this case, thereby
retaining the ability to use the older backups in an up-to-the-minute restore.
Steps
4. Specify the backups to delete based on the delete operation that you chose:
If you chose... Then...
Delete backups
a. Select one or more databases.
c. Specify the management group of the backup copies that you want to
delete.
5. You can delete the backup sets immediately or you can preview the operation:
If you want to... Then...
View the list of backup sets Click Delete Preview.
that SnapManager will delete
The Delete backups dialog box appears. After a moment, the dialog box
displays a count and list of the backups identified for deletion. To view a
report, click Show Report. Based on the list displayed in the Delete
backups dialog box, you can either cancel the delete operation or proceed
with it.
• User databases, including Availability Group databases, should not share the same LUN or
VMDK as system databases.
• To improve Availability Group backup performance, the preferred backup replica option with
variable weights for each replica must be used.
• At least one complete backup must be present on all of the participating AlwaysOn nodes.
Transaction log backups must be done regularly from the preferred replica or from SnapManager
for Microsoft SQL Server if it is the primary replica.
• The status of the Availability Group databases must be checked before launching the Availability
Group backup.
Backing up and verifying your databases | 25
• Automatic failover of the Availability Group can have one primary replica and one out of the four
maximum participating secondary replicas.
Manual failover of the Availability Group must be performed if the automatic failover option is
not selected.
• The primary failover instance of each Availability Group must have its own SnapInfo LUN or
SnapInfo volume.
The secondary failover instance must also have its own SnapInfo LUN or SnapInfo volume.
• You should use a SnapManager for Microsoft SQL Server share to synchronize all transaction
logs from the backup.
A SnapManager for Microsoft SQL Server share can be used for various Availability Groups.
• The SQL Server instances for AlwaysOn Availability Groups must be installed as stand-alone
instances and not as clusters.
Each node must have dedicated disks and not clustered shared disks.
Steps
1. In the Console Root tree, click the server on which the databases reside, and then select Backup .
3. Click Repository Log backup Options, and then specify the options for copying transaction log
backups to shares.
4. Under Repository Log backup Options, specify the options for copying transaction log
backups to shares.
a. Click either Apply to all Databases or Apply to only Availability Group Databases.
b. Optional: Click Delete Share Log backups, and then choose how the backups are selected for
deletion.
Note: The Copy transaction log backup to share option is enabled by default for Availability
Group databases.
26 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Steps
2. In the Restore panel, locate the backup set whose management group you want to change:
• Database Snapshots (Standard group)
◦ sqlsnap__sqlserverhostname__date_time
◦ sqlsnap__sqlserverhostname__ recent
◦ sqlsnap__sqlserverhostname__date_time__backupmgmtgroup
◦ sqlsnap__sqlserverhostname__backupmgmtgroup__recent
3. Right-click the name of the backup set to open a context menu and then select Change
Management Group.
4. Review the backups listed in the Backups sharing this Snapshot list.
The backup management group for all these backups is changed if you complete this operation
because they share a common backup set.
5. In the New Management Group list, select the backup management group you want to change
to.
When you change a backup's backup management group, you also change that backup's name
because the name includes the backup management group.
6. Click OK.
The backup management group for this backup and all backups listed in the All Backups Sharing
This Snapshots list is changed.
The report for the backup management group change is in the Miscellaneous report
directory.
“Managing SnapManager operational reports.” You can also review common backup failures to
correct the issue.
• Restart SnapManager.
• The system clock on the host running SnapManager might not be synchronized with the clock on
the storage system.
These two clocks must be synchronized for SnapDrive to function correctly. For more
information, see the Data ONTAP Software Setup Guide for your version of Data ONTAP.
• If a SnapMirror replication job is running when you attempt to begin a SnapManager backup, the
backup can fail.
You can avoid this issue by ensuring that SnapMirror replications have enough time to finish
before you begin another SnapManager backup.
The SQL Server instance might be hidden, or the SQL Browser service might be down.
To unhide the instance or to start the SQL Browser service, you should close the SnapManager for
Microsoft SQL Server GUI, restart the SnapManager service from within the services.msc console,
and then reopen the SnapManager GUI.
VMDK backup fails when you specify a physical server as the verification server
The backup copy created on the VMDK cannot be verified on a physical server. To resolve this error,
you must select a verification server that is running on a virtual machine.
Backup operation might fail if the host system is running SQL Server 2005
If the SnapManager host system is running SQL Server 2005, a SnapManager backup operation
might fail with the following message in the backup report:
[Microsoft][ODBC SQL Server Driver][DBMSLPCN]ConnectionRead
(WrapperRead()).
To avoid this issue, you should install MDAC 2.8 SP1 on the Windows host.
To correct this, you should change the Readable Secondary option to “Yes” for all of the replicas
participating in backups.
Backing up and verifying your databases | 29
Error when the Availability Group is “Cloned as Replica” and Availability Group
backup is taken for all replicas
SnapManager can clone an Availability Group to the selected replica with the Readable Secondary
backup option set to “No”, but afterwards, if the user tries to select the same Availability Group and
tries to take a backup across all replicas, the backup of the cloned Availability Group is omitted
because the databases are mounted as read-only.
This issue occurs because the requested database is not configured for backup. Instead, the database
is marked as “Database is on a LUN backed by snapshot.” The message is similar to
[02:14:38.145] [SQL2012HA3] Database requested has not been configured for
backup. This database is marked as: Database is on a LUN backed by
snapshot. Server: SQL2012HA2 Database:1ag-db1. This Database will be
skipped.
Note: Available drive letters are not required if the databases reside on SMB shares.
30
Restoring databases
You can use SnapManager to restore an SQL Server database without taking the server offline. You
can restore the database to a number of different destinations in addition to its original location.
• The backup set contains only a subset of the databases that reside on the same LUN, SMB share,
or VMDK (not recommended).
• You select only a subset of the databases contained in the backup set.
• A new database was added to the same LUN, SMB share, or VMDK after the backup was
created.
In a volume-wide backup, all the databases that reside on a single volume are backed up concurrently
using Snapshot copies. Because the maximum number of databases supported per storage system
volume is 35, the total number of Snapshot copies created equals the number of databases divided by
35.
If the database has transaction log backups, SnapManager Restore can apply the transaction log
backups (if necessary).
Depending on the database restore option selected, SnapManager Restore performs a point-in-time
restore or an up-to-the-minute restore.
The Snapshot copy name contains the name of the SQL Server instance to which the backup was
restored (indicated by the variable SqlServerName) and the Snapshot copy creation date and time
(indicated by the variable date_time).
Restoring databases | 31
After you verify that a restore was completed successfully and you are satisfied with the results, you
can delete the restored Snapshot copy.
If you select a database on which a consistency check has not been run successfully, SnapManager
prompts (but does not require) you to run DBCC before performing a restore. Running database
consistency checking as part of recovery increases the time the recovery takes.
• The databases are restored from the full database sets you select.
All the transaction logs that were not committed to the databases, including transaction logs from the
backup sets, from the time the backup set was created up to the most current time, are played forward
and applied to the databases (if selected).
An up-to-the-minute restore requires a contiguous set of transaction logs. The up-to-the-minute
restore type is selected by default.
Because SnapManager cannot restore transaction logs from log-shipping backup files, you might not
be able to restore the database using an up-to-the-minute restore. For this reason, you should use
SnapManager only to back up your SQL Server database transaction log files.
If you do not need to retain up-to-the-minute restore capability for all backups, you can configure
your system's transaction log backup retention through Up-to-minute Restore Options, located in the
Backup and Verify window.
Example
You run SnapManager Backup every day at noon, and on Wednesday at 4:00 p.m. you need to restore
from a backup. For some reason, the backup set from Wednesday lunch time failed verification, so
you decide to restore from the Tuesday lunch time backup. If the After that backup is restored, all the
transaction logs are played forward and applied to the restored databases, starting with those that
were not committed when you created Tuesday's backup set and continuing through the latest
transaction log written on Wednesday at 4:00 p.m. (if the transaction logs were backed up).
• The database is restored and only a subset of backed up transaction logs are applied to it.
Note: When you restore a database to a point in time, it results in a new recovery path.
The following image illustrates the potential problems when a point-in-time restore is performed:
In the image, Recovery path 1 consists of a full backup followed by the number of transaction log
backups. The database administrator restores the database to a point in time. New transaction log
backups are created after the point-in-time restores which results in Recovery path 2. The new
transaction log backups are created without creating a new full backup. Due to data corruption or
other problems, if you need to restore the current database, you will not be able to restore it because a
Restoring databases | 33
new full backup was not created. Also, it is not possible to apply the transaction logs created in
Recovery path 2 to the full backup belonging to Recovery path 1.
Note: You must ensure that you always create a full backup after restoring a database to a point in
time.
If you apply transaction log backup sets, you can also specify a particular date and time at which you
want to stop the application of backed up transactions. To do this, you specify a date and time within
the available range and SnapManager will roll back any transactions that were not committed prior to
that point in time. You can use this method to restore databases back to a point in time before a
corruption occurred, or to recover from an accidental database, or table deletion.
Example
Suppose you take full database backups once at midnight and a transaction log backup every hour.
The database crashes at 9:45 a.m., but you still back up the transaction logs of the failed database.
You can choose from among three point-in-time restore scenarios:
• Restore the full database backup taken at midnight and accept the loss of the database changes
made afterward.
• Restore the full database backup and apply all the transaction log backups until 9:45 a.m.
• Restore the full database backup and apply transaction log backup sets. Specifying the time you
want the transactions to restore from the last set of transaction log backups.
In this case, you would calculate the date and time where a certain error was reported. Any
transactions that were not committed prior to the date and time specified in the Restore command
are rolled back.
These transaction marks are recorded in the transaction log and included in the logs of the affected
database.
Source Description
SnapManager You can restore databases from SnapManager backup sets created for the
backup set same SQL Server instance or created for a different server instance. The
LUNs, SMB shares, or VMDKs containing the selected SQL Server's
databases are restored from the backup.
Unmanaged media You can also use SnapManager Restore to restore databases from offline
archives (unmanaged media) of backup sets.
34 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Source Description
Database residing You can restore databases that reside on multiple LUNs, SMB shares, or
on multiple LUNs, VMDKs. The restore operation takes some time to complete because
SMB shares, or SnapManager takes one database at a time, serially, for the complete restore
VMDKs operation.
Destination Description
The original By default, SnapManager restores to a database to the same location on the
location same SQL Server instance.
A different location You can restore a database to a different location on the same SQL Server
instance.
A different location You can use SnapManager Restore to restore an online database as a new
as a database clone database on the same SQL Server instance.
However, you cannot restore an online database as a new database on a
different SQL Server instance. You must clone the database.
Original or different You can restore to a different server instance on the same or different server
location using using different database names.
different database
names
A different location, The database is mounted at a temporary alternate location, but the
but only temporarily transaction logs are not applied. Because the data is not current, you should
mounted use this function to view only the layout of the data.
• The SQL Server must be online and running before you can restore a database. This applies to
both user database restore operations and system database restore operations.
• If you want to restore online databases, the online restore option must be enabled in the Restore
Settings dialog box.
• If you restore multiple databases to the same SQL Server instance, you must not assign the same
target database name for multiple databases.
• All Windows Explorer instances must be closed on the SQL Server computer running
SnapManager.
• SnapManager operations that are scheduled to run against the SQL Server data you are restoring
must be disabled, including any jobs scheduled on remote management or remote verification
servers.
• If the restore is from a database on a different SQL server, the source storage must have been
made available to the current SQL server.
• If system databases are not functional, you must first rebuild the system databases using an SQL
Server utility.
Steps
1. In the Console Root tree, expand the server on which the databases reside and click Restore.
4. On the SQL Server page, choose whether you want to find a backup set created on this SQL
Server, created on a different SQL Server, or a backup set residing on unmanaged media, and then
click Next.
5. If you chose to restore from a different SQL Server or unmanaged media, enter the SnapInfo
directory path for the backup set and click Next.
Steps
1. In the Console Root tree, expand the server on which the databases reside, and then click
Restore.
2. In the Restore pane, double-click the backup set from which you want to restore the database.
4. Restore the database with a different name than that of the original database:
c. In the Restore as Database dialog box, enter the database name to which you want the backup
restored.
This database name must not already exist on the SQL Server instance to which you will be
restoring the database.
6. Select or enter the server name to which you want the database to be restored.
7. Choose the connection by selecting the Use Windows Authentication or Use SQL Server
Authentication radio button.
b. In the Point-in-Time dialog box, specify the date and time after which
transaction logs are not applied to the restored database.
c. Click OK.
Restore to a marked
a. Click the tab marked ... next to Marked Transaction.
transaction
The Marked Transaction dialog box opens.
c. Click OK.
10. To run a command or script before performing the restore operation or after the restore operation
finishes, select the Run Command Settings option.
b. Edit the location by selecting and modifying the Restore To field for each row, or select the ...
tab, and then browse for the location.
Note the following requirements for the location:
• If you restore a database to a different path and that path is an SMB share, the SMB share
must be accessible from SnapDrive.
• If you choose to restore from unmanaged media, you must enter the location of the
mounted disk where the database files are available.
• If you choose to restore from unmanaged media, you must place the database files in the
restoring location.
• You cannot spread a database's files across SAN and NAS environments.
Note: If the alternate location does not have enough space, the restore will fail. If this
happens, you must delete the partially copied database files.
13. After all the restore tasks are finished, click OK.
Your restore operation is complete, and your SQL Server computer comes back online.
38 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Steps
1. If you have LUNs and the source LUNs for the failed databases are still online and mapped on the
primary storage, do the following:
b. Unmap the LUNs using System Manager or the storage system console.
c. In Microsoft Failover cluster configurations, remove any cluster resource dependencies you
might have configured on these LUNs.
2. If you have LUNs, reconnect the restored LUN objects with the SnapDrive MMC interface using
the original drive letters.
Consult the SnapDrive documentation for details. Ensure that the LUNs are accessible on the
hosting SQL Server.
3. Use SQL Server Management Studio to attach the database located on the LUNs and SMB
shares.
If you cannot attach the database, you can reduce the loss of data by ensuring that the last active
transaction log of the database is automatically backed up by SnapManager Restore:
• See Microsoft KB article 253817, “HOW TO: Back up the Last Transaction Log When the
Master and the Database Files Are Damaged.”
This article describes how you can back up the currently active transaction log even if the
SQL Server database file is damaged, provided that the transaction log file is still accessible.
• Use this same Microsoft KB article as a general guide for gaining access to the last active
transaction log of the database.
While referring to the steps in that article, observe the following key points:
◦ When you create a similar database that contains the same number of data and transaction
log files as the original database, you are creating the database you will be restoring using
SnapManager.
◦ Instead of using the SQL Server Backup Log command to back up the transaction log (as
described in the Microsoft article), proceed to the next step.
5. Make sure that all other Windows Explorer windows are closed on the SQL Server computer
running SnapManager.
6. Disable any SnapManager operations that are scheduled to run against the SQL Server data you
are restoring including any jobs scheduled on remote management or remote verification servers.
Restoring databases | 39
7. In the SnapManager Console Root tree, expand the server on which the databases reside and
click Restore.
10. On the SQL Server page, select Restore backup created on a different server and click Next.
11. On the Alternate SQL Server page, specify details about the alternate SQL Server:
a. Select the SQL Server whose backup sets you want to use to restore databases to this SQL
Server.
b. In the SnapInfo Directory Path dialog box, enter or browse to the name of the SnapInfo
directory for those backup sets.
c. Leave the Use this server's SnapInfo directory check box cleared.
d. Click Next.
12. In the Backup Set page, double-click to select the backup under the database you want to restore.
Click Next.
13. Use the Point-in-time option in the Transaction Logs screen to perform an up-to-the-minute
restore operation or a point-in-time restore operation:
• For an up-to-the-minute restore, backup the most recent transactions and select them for
restore by selecting Most recent backup selected.
• For a point-in-time restore operation, select the backup set, a combination of transaction log
backups to be restored, or both, and select Committed transactions at the specified time.
b. Edit the location by selecting and modifying the Restore To field for each row or select the ...
tab and browse for the location.
Note the following requirements for the location:
• If you restore a database to a different path and that path is an SMB share, the SMB share
must be accessible from SnapDrive.
• You cannot spread a database's files across SAN and NAS environments.
Note: If the alternate location does not have enough space, the restore fails. If this happens,
delete the partially copied database files.
16. After you verify that all the settings in the page are correct, click Finish.
The Restore wizard closes and the Restore Status dialog box appears and displays the Restore
Task List, which is used to show the progress of the restore operation after you start it.
If the restore is successful, the Task window shows the checklist with the tasks completed, and a
dialog box reports that the restore was successful.
Note: If Notification is enabled, email is sent to the specified address. All events are posted to
the Windows event log, even if notification is not enabled.
18. After the restore is complete, click OK to close the dialog box.
Your restore is now complete and your SQL Server computer comes back online.
19. After the restore operation is complete, you should perform a full backup and verification to
verify that your restored database is free of physical-level corruption. This step is especially
important if you restored a database to a different path that is shared by existing databases.
• Before restoring replicated databases, you must have stopped the running SQL Agent.
1. Distribution database
2. Publisher database
3. Subscriber database
Note: If you do not restore the distribution database first, the replication settings are not
maintained and you will have to restart the replication.
Steps
2. Select the check box options Retain SQL database replication settings and Restore database
even if existing databases are online.
3. If you have multiple replication sets, restore the most recent distribution database to maintain the
replication settings for all the other replicated databases.
4. Reinitialize the restored publisher or subscriber databases because they are out of sync with the
latest distribution database.
• You must have a common SnapManager share for all of the replica nodes.
Restoring databases | 41
Steps
1. From the management console, select the standalone server hosting the Availability Group
databases that you want to use to reseed.
Example
Console Root > SnapManager for SQL Server > AlwaysOn Cluster 1
3. Follow the steps in the Reseed Wizard to start the reseed operation.
In the Reseed Wizard, you can select the database logs and an optional custom command before
verifying the reseed settings and starting the reseed operation.
• The storage system must be up and running and ready for data to be restored.
• The backup media must be available and ready to be used for restore.
• The database must be detached, using SQL Server Enterprise Manager or SQL Server
Management Studio.
• For LUNs and SMB shares, you must know the original drive letters used by LUNs and the
original names of the shares.
Steps
1. Run the Restore wizard and select the option Restore from unmanaged media.
2. Recover the archived LUNs and SMB shares containing the full backup dataset to the active file
system of the storage system.
3. Reconnect the LUNs to the original drive letters and give the hosts access to the shares.
42 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
• You must have configured SnapMirror to replicate SQL Server database backups to mirrored
volumes.
• For each LUN on the SnapMirror source volume, you must have the drive letter mappings on the
SQL Server computer.
• For an SMB share, you must have the name of the original share.
Steps
1. If any LUNs from the failed source volume still appear to be connected, disconnect them.
You have LUNs Use SnapDrive to connect to the corresponding LUNs in the SnapMirror
destination volume. Use the same drive letters for connecting to the
mirrored LUNs that were used on the source volume.
For each mirrored volume, SnapDrive breaks the replica and restores the
LUN using the most recent Snapshot copy generated by SnapDrive or
SnapManager.
b. Create a new share that matches the name of the original share.
4. Use SQL Server Management Studio to attach the database located on the associated LUNs or
SMB shares in the SnapMirror destination volume.
5. If you cannot attach the database on the SnapMirror destination volume and none of the
transaction log files were lost, you can reduce the loss of data by ensuring that the last active
transaction log of the database is automatically backed up by SnapManager:
• See Microsoft KB article 253817, "HOW TO: Back up the Last Transaction Log When the
Master and the Database Files Are Damaged."
This article describes how you can back up the currently active transaction log even if the
SQL Server database file is damaged, provided that the transaction log file is still accessible.
• Use this same Microsoft KB article as a general guide for gaining access to the last active
transaction log of the database on the SnapMirror destination volume.
While referring to the steps in that article, observe the following key points:
◦ When you create a similar database that contains the same number of data and transaction
log files as the original database on the SnapMirror destination volume, you are creating
the database you will restore using SnapManager.
◦ Instead of using the SQL Server Backup Log command to back up the transaction log (as
described in the Microsoft article), go to the next step.
Restoring databases | 43
If any of the transaction log files were lost, no workaround is possible and you cannot minimize
data loss.
6. If you attached the database on the SnapMirror destination volume, the steps for restoring the
database depend on whether the transaction log volume was lost:
If... Then...
You lost only the data files of Run SnapManager and use the newest full database backup copy to
the database perform either an up-to-the-minute restore or a point-in-time restore:
ii. In the Restore Settings dialog box, clear Create transaction log
backup before restore.
The reason you must disable this restore option is that the active
transactions were lost due to the failure of the volume containing the
transaction log. If the transaction log files were lost, the active
transactions are lost and unrecoverable. Because the active
transactions are unavailable, you must use SnapManager to perform a
point-in-time restore and not an up-to-the minute restore.
If you fail to disable this transaction log backup, subsequent
SnapManager backup sets reside on a recovery path that is
inconsistent with that of the database. Such backup sets cannot be
applied to the database; attempts to restore the database from such
backup sets results in failure, with the following error message in the
restore log:
Failed with error code 0x800410df
b. Run SnapManager and use the newest full database backup copy to
perform a point-in-time restore.
Select the backup set, a combination of transaction log backups to be
restored, or both.
44 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Steps
1. On the primary server, navigate to the location of the registry keys at: HKEY_LOCAL_MACHINE
\SOFTWARE\NetworkAppliance\SnapManager for SQL Server\Server
• SMVITransformEnable: 1
Steps
2. Configure VSC to use the volumes on the destination side (secondary site) storage systems.
3. Enter the vCenter server and storage system IP addresses or names in the VSC Setup window.
4. Run the smvi servercredential set command from the CLI, if necessary.
6. Establish the SnapMirror relationship on the underlying volume from the primary site to
secondary site.
Volumes used for VSC on the destination side storage should be used as the SnapMirror
destination volumes.
7. Create a Windows share on the repository of both the primary and secondary VSC servers.
Ensure that the SnapManager service account has Read permission on the share at the primary
site and Write and Modify permissions at the share on the disaster recovery site.
8. Create a text file and save the following list information in the file:
Restoring databases | 45
Ensure that all of the above information is in one line per datastore. Each field is separated with a
space.
Note: The virtual machine name and its universal unique identifier (UUID) can be the same if
there is no preinstalled standby virtual machine on the disaster recovery site.
9. Save this file to any folder on the primary virtual machine or any other server that the
SnapManager service can access through Windows share.
Steps
2. Bring online the SnapMirror destination volumes on which the datastores reside.
3. Create an NFS export for the NFS storage on the storage system for the destination volume.
4. Add the new NFS export to each of the destination VSC servers on the ESX host.
7. In the right pane, right-click the virtual machine's VMX file and select the option Add to
Inventory.
8. Follow the steps in the wizard to add the virtual machine to the ESX server.
12. Switch to the secondary VSC server by entering the following command:
sdcli smvi_config set -host IP_of_the_secondary_SMVI_Server
13. Restart the SnapDrive for Windows service by using the following commands:
net stop swsvc
net start swsvc
14. After the SnapDrive for Windows service starts successfully, check that all of the VMDKs are
available by entering the sdcli disk list command.
15. On the recovered virtual machine, run SnapManager for Microsoft SQL Server restore to recover
SQL databases.
46
Cloning databases
Database cloning is the process of creating a point-in-time copy of a production database or its
backup set. You might clone databases during application development, to populate data warehouses,
or to recover data.
You can use database clones for several reasons:
• During application development cycles, for testing functionality that has to be implemented using
the current database structure and content
• For data extraction and manipulation tools when populating data warehouses
The database cloning feature enables you to clone specific databases or all databases simultaneously.
You can either rename a cloned database or accept the default name provided. You can select the
SQL Server instance either from a host on which the database resides or from a remote host
connected to the storage system.
Note: If a database resides on a virtual machine with a VMDK disk, SnapManager cannot clone
the database to a physical server.
A database cloning operation generates two reports: a backup report and a restore report.
• You cannot perform a database clone on a remote physical server when the database resides on a
VMDK.
• You cannot clone a database on a SnapVault secondary because there is no remote backup
available for clone operation.
• When the databases are hosted on the VMDKs that are replicated to a site by SnapMirror, you
cannot clone databases from a SnapMirror destination volume to the local SQL Server. However,
you can clone databases from destination volumes to an SQL Server running on a remote virtual
machine.
• SnapManager does not support cloning on SnapMirror destination volumes if the source and
destination volumes contain VMFS datastores.
Note: This limitation applies to clustered Data ONTAP only.
• The virtual machine is installed on the ESX server on the secondary site.
Cloning databases | 47
• SQL Server, SnapDrive, and SnapManager are installed on the virtual machine.
• The ESX server is managed by another vCenter Server and the VSC server on the secondary site.
• SnapDrive is installed on the secondary virtual machine that is pointing to the VSC server on the
secondary site.
• On the primary site, you have selected the SQL Server on the secondary site as the remote
verification server.
• On both the primary and secondary VSC servers, you have created a Windows share on the VSC
repository folder where the backup metadata file resides.
• The SnapManager service account has read permission on the share at the primary site and write
and modify permissions at the share on the secondary site.
• The primary VSC server has discovered the destination storage system.
• For NFS datastores residing on clustered Data ONTAP, a datastore must exist on the SnapMirror
destination volume and the name of the destination datastore must be specified in the change list
file.
• On the primary virtual machine where the backup is initiated, the following registry settings and
values must be defined in HKEY_LOCAL_MACHINE\SOFTWARE\Network Appliance
\SnapManager for SQL Server\Server:
SMVITransformEnable
dword:00000001
SMVITransformScript
SMVI_Metadata_update.exe
SMVIDestinationServer
destination SMVI server name
SMVISourceBackupXmlUNC
\\source SMVI server name\SMVI repository share name\backups.xml
SMVIDestinationBackupXmlUNC
\\destination SMVI server name\SMVI repository share name
\backups.xml
SMVIChangeListFile
change list file name
In this format, DatastoreType is either NFS or VMFS and DatastoreUUID is not required for an
NFS volume.
Note: For NFS datastores residing on ONTAP, SourceStorageName and
DestinationStorageName must be the IP addresses of the source and destination NFS data
LIFs.
The following example shows the contents of an NFS change list file:
NFS
ds-nfs1 ds-nfs1-dest snapmgr-05-vm2 snapmgr-54-vm1 4211945a-124a-b7c9-
ae63-cacc07f3f4f8
420f010b-7e5a-e66e-7ed1-7bef6a357cca snapmgr-05-vm1 snapmgr-54-vm1
172.17.233.24
172.17.232.74 snapmgr05_vmw1 snapmgr05_vmw1_mir
Steps
2. Select the SnapMirror destination volume on which the data store is available, and then bring the
data store online.
3. On the secondary SMVI server, select Resignature the LUN to add the LUN to the destination
volume as the destination data store on the secondary ESX server.
5. Replace the destination data store name and the destination data store UUID with the new values
that you made a note of in the change list file.
Steps
3. Click Next.
4. On the Clone Type page, select Clone Databases from existing Backup Set and click Next.
5. On the Backup Selection page, double-click the backup from which you want to create the clone
and then click Next.
Cloning databases | 49
Note: The first time you select a database that resides on an LUN, SnapManager automatically
selects all databases on the same storage. You can then deselect any databases that you do not
want to be cloned.
7. Click Next.
SnapManager displays the list of databases to be cloned. By default, SnapManager provides the
same name to the clone as the original database.
9. On the Restore Settings page, specify the clone database name and click Next.
10. On the Clone to Server page, specify the clone server name, choose whether you will use a letter
drive or a mount point, and click Next.
If you specify a mount point, make sure the directory is empty. If there is a database in the
directory, the database will be in an invalid state after the mount.
12. On the Restore Settings page, do any of the following and click Next:
• Choose whether you want to clone the database on an available SnapMirror destination
volume.
• Choose whether you want to change the clone database paths based on the new database
name.
13. On the Clone Life Cycle Management page, choose to resynchronize the clone and to
automatically delete the clone and define a schedule for each.
Cloned database resynchronization syncs the cloned database with the live database and
automates cloned database deletion. Automatically deleting clones improves resource and storage
efficiency by deleting unnecessary clones.
14. On the Restore Settings page, select the state of the database you want after the restore operation
and click Next.
If you select Leave the database in read-only mode and available for restoring additional
transaction logs, the Undo file directory option activates.
Note: The default path for the SnapInfo directory in the Undo file directory option is that of
the source host.
15. To run a command or script before performing the clone operation or after the clone operation
finishes, select the Run Command Settings option and click Next.
Steps
4. On the Clone Type page, select Clone Active Production Databases and click Next.
Note: If you select Run Through Clone QuickStart Wizard, the wizard applies default options
for most of the settings.
5. On the Database Selection page, double-click the backup from which you want to create the
clone, and then click Next.
Note: The first time you select a database that resides on an LUN, SnapManager automatically
selects all other databases on the same storage. You can then deselect any databases that you do
not want to clone.
7. If you want to rename the new database clone's paths based on the name of the new database,
select the appropriate check box in the wizard.
Note: You cannot specify database paths for a clone.
9. To run a command or script before performing the clone operation or after the clone operation
finishes, select the Run Command Settings option.
10. The wizard takes you to the final option that displays the SnapManager clone task list. Click
Start Now to begin the specified tasks.
SnapManager checks off tasks in the Clone Task List as they complete. A message appears
indicating the successful completion of the cloning operation.
completed, you have a new replica created on the existing availability group as a normal secondary
replica.
Steps
3. Follow the steps in the SnapManager for SQL Server Availability Group Replica Wizard to
specify the source, the settings for the replica, and the destination for the replica.
In the Quick Clone Replica page, you can click Run through Quick Availability Group Clone
Replica Wizard so that the wizard automatically sets the mandatory settings.
Steps
3. Click Next.
4. On the Clone Type page, select Clone Databases from existing Backup set or Clone Active
Production Databases and click Next.
Note: While choosing Clone Active Production Databases, you can see the Run Through Clone
QuickStart Wizard option, and the wizard applies default options for most of the settings.
5. On the Backup Selection page, double-click the backup copy (clone) from which you want to
create a clone and then click Next.
Note:
• You cannot select an SQL server database beyond the second level of the clone.
• When selecting an SQL server database that resides on VMDKs over VMFS, the clone of
clone continues to work beyond two levels.
• You cannot select an SQL server database beyond the second level of clone for backup and
restore operations with verification.
7. Click Next.
SnapManager displays the list of databases to be cloned. By default, SnapManager provides the
same name to the clone as the original database.
9. On the Restore Settings page, specify the clone database name and click Next.
10. On the Clone to Server page, specify the clone server name, choose whether to use a letter drive
or a mount point, and click Next.
If you specify a mount point, make sure that the directory is empty. If there is a database in the
directory, that database will be in an invalid state after the mount.
12. On the Restore Settings page, do any of the following and click Next:
• Choose whether you want to clone the database on an available SnapMirror destination
volume.
• Choose whether you want to change the clone database paths based on the new database
name.
13. On the Clone Life Cycle Management page, choose to resynchronize the clone and to
automatically delete the clone and define a schedule for each.
Cloned database resynchronization synchronizes the cloned database with the live database and
automates cloned database deletion. Automatically deleting clones improves resource and storage
efficiency by deleting unnecessary clones.
14. On the Restore Settings page, select the state of the database you want after the restore operation
and click Next.
If you select Leave the database in read-only mode and available for restoring additional
transaction logs, the Undo file directory option activates.
Note: The default path for the SnapInfo directory in the Undo file directory option is that of
the source host.
15. To run a command or script before performing the clone operation or after the clone operation
finishes, select the Run Command Settings option and click Next.
Steps
3. Click Next.
4. On the Clone Type page, select Split Cloned Database and click Next.
6. Click Finish.
Note: After splitting a cloned database that is cloned from the source database, the split
database cannot be migrated to the LUN where the source database is located.
SnapManager checks off tasks in the Clone Task List as they become complete. A message
appears, indicating the successful completion of the split operation.
Steps
3. Click Next.
SnapManager displays an option for selecting the operation that you want to perform.
6. In the Delete clone summary screen, verify the settings selected in the previous steps and click
Finish.
54 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Report Description
Backup Contains a log file for every backup set (full database backup or transaction log
backup) created by SnapManager
Config Contains a log file for each time SnapManager migrates a database
Debug Contains a debugging log in SnapManager when debug logging is enabled
Delete Backup Contains a log file for every delete backup operation
Set
Miscellaneous Contains log files for all other operations
Monitor Contains a log file for SnapManager monitoring features
Restore Contains a log for every restore operation (whether it is a stream-based restore,
a copy-based restore, or an online Snapshot restore) performed on an SQL
Server that is configured using SnapManager
Steps
1. In the SnapManager Console Root tree, expand a server and click Reports.
2. In the Reports pane, expand a folder and select the report you want to display.
• A summary of operations
• A summary of individual SQL Server instances, with the number of successful and failed
operations
• A summary of successful, failed, and “not run” operations on individual SQL Server instances
56 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Note: For backup and verification operations, incomplete or “not run” operations are logged as
an error in the Windows event log, but are logged with an informational message for clone
operations.
Steps
• For Backup
• For Verification
Note: If you select For Backup and For Clone Resync, you receive email notifications on all
backup and clone operations, but not on verification operations.
5. In the Select Reporting Interval pane, specify how often you want to receive notifications.
Example
Select 1 in the days field to receive email notifications once per day.
6. In the Report operations starting at field, set the time at which the report operations should
start.
7. Click OK.
By default, the SnapManager reports are stored in a subdirectory named Report under the directory in
which the SnapManager application is installed.
If you change the name or location of the SnapManager report directory, you cannot use the
SnapManager Reports option to view or print any reports that were created in that report directory.
However, if the previous report directory was not explicitly changed or removed, any reports created
Using SnapManager reports | 57
in that directory are still accessible. To view or print those older reports, you must change the report
directory back to its previous location.
Steps
4. To refresh the information displayed in the Reports option, go the Actions pane and select
Refresh.
• A separate SnapInfo directory for multiple databases on one or two LUNs, SMB shares, or
VMDKs
If you currently have multiple SnapInfo directories, you can choose to combine them into a single
directory.
Steps
• Verification Settings
• Database Selection
3. On the SnapInfo Settings page, select the Single SnapInfo Directory option, and then click
Next.
The Specify a Single SnapInfo Directory screen appears. Note that, in the Current SnapInfo
Directory list, all the current SnapInfo directories are selected by default.
4. On the Available Disks page, select the LUN, SMB share, or VMDK to which you want to move
all the SnapInfo directories.
6. If you want to specify a different location or name, modify the information in the Result
SnapInfo Directory dialog box.
Note: The Configuration wizard will allow you to create the SnapInfo directory only in valid
locations.
7. Complete the remaining pages of the Configuration wizard without specifying any further
configuration changes.
Modifying your database configuration on NetApp storage | 59
8. In the Finish page, verify the changes you specified, and then click Finish.
10. When a message box is displayed and notifies you that the configuration changes were completed
successfully, click OK to close the message.
Steps
2. Select Enable databases to be migrated back to local disks, and click OK.
a. In the Database Location Results pane, select the databases that you want to move back to a
local disk.
b. Click Reconfigure.
c. In the Database Selection pane, select the databases you just reconfigured.
Tip: In the database list, the Disk column displays Reconfig instead of the database
location.
d. In the Disk Selection pane, select a local drive, and then click the <=> button.
e. Click Next.
8. Complete the remaining pages of the Configuration wizard without specifying any further
configuration changes.
10. On the Configuration page, click Start Now to migrate your databases back to local disk.
Group replica, those transaction logs are still accessible and can be used for tasks such as up-to-the-
minute restores, database reseeding, and using a clone as a replica.
Steps
2. Click Next until you reach the Setup SnapManager Share window.
3. Check Enable SnapManager share and enter or browse to an accessible network share.
• Disaster recovery
• Mass deployment
The configuration settings contained in the control file are grouped into the following sections:
• Storage Layout
• Notification settings
• Verification settings
• Backup settings
• SnapMirror Volumes
• Scheduled Jobs
Steps
2. On the Start page, select Use Control File and click Next.
3. On the Import or Export page, define the settings for importing or exporting your configuration:
b. If you are importing a configuration, select Review settings in configuration wizards if you
want to see a summary of the imported configuration settings and do not want to proceed
through the remaining pages of the wizard.
c. In the Use control file field, specify the location to import or export the control file.
d. Click Advanced.
If you chose export, the wizard closes and confirms that the file was exported.
4. If you chose import, follow the remaining pages in the wizard to import your configuration.
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>mastlog</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\mastlog.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>tempdb</DATABASE_NAME>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>tempdev</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
empdb.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>templog</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
emplog.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>model</DATABASE_NAME>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>modeldev</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\model.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>modellog</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\modellog.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>msdb</DATABASE_NAME>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>MSDBData</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\MSDBData.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>MSDBLog</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\MSDBLog.ldf</FILE_PATH>
Modifying your database configuration on NetApp storage | 63
</LOG_FILE>
</LOG_FILES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>DB1</DATABASE_NAME>
<SNAPINFO_PATH>K:\SMSQL_SnapInfo</SNAPINFO_PATH>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>DB1</FILE_NAME>
<FILE_PATH>K:\MP\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB1.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>DB1_log</FILE_NAME>
<FILE_PATH>K:\MP2\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB1_log.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
- <DB_VOLUMES>
- <DB_VOLUME>
<FILER_NAME>rhine</FILER_NAME>
<VOLUME_NAME>grace2</VOLUME_NAME>
</DB_VOLUME>
</DB_VOLUMES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>DB3</DATABASE_NAME>
<SNAPINFO_PATH>K:\SMSQL_SnapInfo</SNAPINFO_PATH>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>DB3</FILE_NAME>
<FILE_PATH>I:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB3.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>DB3_log</FILE_NAME>
<FILE_PATH>I:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB3_log.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
- <DB_VOLUMES>
- <DB_VOLUME>
<FILER_NAME>rhine</FILER_NAME>
<VOLUME_NAME>grace1</VOLUME_NAME>
</DB_VOLUME>
</DB_VOLUMES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>DB2</DATABASE_NAME>
<SNAPINFO_PATH>K:\SMSQL_SnapInfo</SNAPINFO_PATH>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>DB2</FILE_NAME>
<FILE_PATH>K:\MP2\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
64 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
\DB2.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>DB2_log</FILE_NAME>
<FILE_PATH>K:\MP\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB2_log.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
- <DB_VOLUMES>
- <DB_VOLUME>
<FILER_NAME>rhine</FILER_NAME>
<VOLUME_NAME>grace2</VOLUME_NAME>
</DB_VOLUME>
</DB_VOLUMES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>DB4</DATABASE_NAME>
<SNAPINFO_PATH>K:\SMSQL_SnapInfo</SNAPINFO_PATH>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>DB4</FILE_NAME>
<FILE_PATH>I:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB4.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>DB4_log</FILE_NAME>
<FILE_PATH>I:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB4_log.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
- <DB_VOLUMES>
- <DB_VOLUME>
<FILER_NAME>rhine</FILER_NAME>
<VOLUME_NAME>grace1</VOLUME_NAME>
</DB_VOLUME>
</DB_VOLUMES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>DB5</DATABASE_NAME>
<SNAPINFO_PATH>K:\SMSQL_SnapInfo</SNAPINFO_PATH>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>DB5</FILE_NAME>
<FILE_PATH>I:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB5.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>DB5_log</FILE_NAME>
<FILE_PATH>I:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
\DB5_log.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
- <DB_VOLUMES>
Modifying your database configuration on NetApp storage | 65
- <DB_VOLUME>
<FILER_NAME>rhine</FILER_NAME>
<VOLUME_NAME>grace1</VOLUME_NAME>
</DB_VOLUME>
</DB_VOLUMES>
</DATABASE>
</DATABASES>
</SQL_INSTANCE>
- <SQL_INSTANCE>
<SQL_INSTANCE_NAME>SNAPMGR-19\MARS</SQL_INSTANCE_NAME>
<SQL_INSTANCE_SNAPINFO_PATH>K:\SMSQL_SnapInfo</
SQL_INSTANCE_SNAPINFO_PATH>
<ADD_MSISIC_DEPENDENCY>false</ADD_MSISIC_DEPENDENCY>
- <DATABASES>
- <DATABASE>
<DATABASE_NAME>master</DATABASE_NAME>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>master</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA
\master.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>mastlog</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA
\mastlog.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>tempdb</DATABASE_NAME>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>tempdev</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA
empdb.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>templog</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA
emplog.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>model</DATABASE_NAME>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>modeldev</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA
\model.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
66 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>modellog</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA
\modellog.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
</DATABASE>
- <DATABASE>
<DATABASE_NAME>msdb</DATABASE_NAME>
- <FILE_GROUPS>
- <FILE_GROUP>
<GROUP_NAME>PRIMARY</GROUP_NAME>
- <DATABASE_FILES>
- <DATABASE_FILE>
<FILE_NAME>MSDBData</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA
\MSDBData.mdf</FILE_PATH>
</DATABASE_FILE>
</DATABASE_FILES>
</FILE_GROUP>
</FILE_GROUPS>
- <LOG_FILES>
- <LOG_FILE>
<FILE_NAME>MSDBLog</FILE_NAME>
<FILE_PATH>C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA
\MSDBLog.ldf</FILE_PATH>
</LOG_FILE>
</LOG_FILES>
</DATABASE>
</DATABASES>
</SQL_INSTANCE>
</SQL_INSTANCES>
</STORAGE_LAYOUT>
Notification settings
The following schema depicts the notification settings section:
-<COMMON_SETTINGS>
-<NOTIFICATION>
-<SEND_EMAIL_NOTIFICATION>
<SMTP_SERVER>SNAPMGR-19</SMTP_SERVER>
<FROM>SMSQLAutoSender</FROM>
<TO>[email protected]</TO>
<SUBJECT>SnapManager for SQL Server</SUBJECT>
<NOTIFY_AUTO>true</NOTIFY_AUTO>
<LONG_MSG>false</LONG_MSG>
<AS_ATTACHMENT>false</AS_ATTACHMENT>
<SEND_ON_FAILURE>true</SEND_ON_FAILURE>
</SEND_EMAIL_NOTIFICATION>
<EMS_ENABLED>true</EMS_ENABLED>
<ASUP_ENABLED>true</ASUP_ENABLED>
<ASUP_ON_FAIL>true</ASUP_ON_FAIL>
</NOTIFICATION>
Verification settings
The following schema depicts the verification settings section:
-<VERIFICATION>
-<VERIFICATION_CLIENT_SETTING>
<VERIFICATION_SERVER>SNAPMGR-19</VERIFICATION_SERVER>
<VER_SERVER_NTAUTH>true</VER_SERVER_NTAUTH>
Modifying your database configuration on NetApp storage | 67
<VER_DBCC_NOINDEX>false</VER_DBCC_NOINDEX>
<VER_DBCC_ALL_ERROR_MSG>false</VER_DBCC_ALL_ERROR_MSG>
<VER_DBCC_NO_INFO_MSGS>false</VER_DBCC_NO_INFO_MSGS>
<VER_DBCC_TABLOCK>false</VER_DBCC_TABLOCK>
<VER_DBCC_PHYSICAL_ONLY>false</VER_DBCC_PHYSICAL_ONLY>
<VER_DBCC_ATTACH_DB>false</VER_DBCC_ATTACH_DB>
<VER_DBCC_BEFORE_MIGRATION>true</VER_DBCC_BEFORE_MIGRATION>
<VER_DBCC_AFTER_MIGRATION>false</VER_DBCC_AFTER_MIGRATION>
<VER_DELETE_DB_FILE_ORIG>true</VER_DELETE_DB_FILE_ORIG>
<VER_RUN_UPDATE_STATISTICS>true</VER_RUN_UPDATE_STATISTICS>
</VERIFICATION_CLIENT_SETTING>
-<VERIFICATION_SERVER_SETTING>
<AUTO_DRIVELETTER>true</AUTO_DRIVELETTER>
<MP_DIR>C:\Program Files\NetApp\SnapManager for SQL Server
\SnapMgrMountPoint</MP_DIR>
</VERIFICATION_SERVER_SETTING>
</VERIFICATION>
- <MONITORING.>
<REPORT_BACKUP> true</REPORT_BACKUP>
<REPORT_CLONE>false</REPORT_CLONE>
<INTERVAL_HOURS>1</INTERVAl_HOURS>
<REPORT_CLOCK>23:15:00</REPORT_CLOCK>
</MONITORING>
Backup settings
The following schema depicts the backup settings section:
-<BACKUP>
-<BACKUP_CLIENT_SETTING>
<NAMING_CONVENTION>0</NAMING_CONVENTION>
<BACKUP_SET_TO_KEEP>3</BACKUP_SET_TO_KEEP>
<BACKUP_SET_TO_KEEP_IN_DAYS>0</BACKUP_SET_TO_KEEP_IN_DAYS>
<LOG_BACKUP_SET_TO_KEEP>7</
LOG_BACKUP_SET_TO_KEEP><LOG_BACKUP_SET_TO_KEEP_IN_DAYS>0</
LOG_BACKUP_SET_TO_KEEP_IN_DAYS><DELETE_BACKUPS_OPTION>0</
DELETE_BACKUPS_OPTION>
<DELETE_LOG_BACKUPS_OPTION>0</
DELETE_LOG_BACKUPS_OPTION><BACKUP_SET_TO_VERIFY>0</BACKUP_SET_TO_VERIFY>
<BACKUP_SET_TO_KEEP_UTM>8</BACKUP_SET_TO_KEEP_UTM>
<BACKUP_SET_TO_KEEP_IN_DAYS_UTM/>
<DELETE_BACKUPS_OPTION_UTM>0</DELETE_BACKUPS_OPTION_UTM></
BACKUP_CLIENT_SETTING>
-<BACKUP_SERVER_SETTING>
<RUN_CMD_HOST>SNAPMGR-19</RUN_CMD_HOST> <RUN_CMD_PATH>notepad.exe</
RUN_CMD_PATH>
<RUN_CMD_ARGUMENT>$SqlSnapshot $InfoSnapshot</RUN_CMD_ARGUMENT>
</BACKUP_SERVER_SETTING>
</BACKUP>
68 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
-<VERIFICATION_ON_DESTINATION>
-<SELECTED_DESTINATIONS>
-<SELECTED_DESTINATION>
<SOURCE_FILER>rhine</SOURCE_FILER>
<SOURCE_VOLUME>grace2</SOURCE_VOLUME>
<DESTINATION_FILER>rhine</DESTINATION_FILER>
<DESTINATION_VOLUME>grace2_mir</DESTINATION_VOLUME>
</SELECTED_DESTINATION>
-<SELECTED_DESTINATION>
<SOURCE_FILER>rhine</SOURCE_FILER>
<SOURCE_VOLUME>grace2</SOURCE_VOLUME>
<DESTINATION_FILER>rhine</DESTINATION_FILER>
<DESTINATION_VOLUME>grace2_mir</DESTINATION_VOLUME>
</SELECTED_DESTINATION>
</SELECTED_DESTINATIONS>
</VERIFICATION_ON_DESTINATION>
-<VERIFICATION_ON_DESTINATION>
-<SELECTED_DESTINATIONS>
-<SELECTED_DESTINATION>
<SOURCE_FILER>rhine</SOURCE_FILER>
<SOURCE_VOLUME>grace2</SOURCE_VOLUME>
<DESTINATION_FILER>rhine</DESTINATION_FILER>
<DESTINATION_VOLUME>grace2_mir</DESTINATION_VOLUME>
</SELECTED_DESTINATION>
-<SELECTED_DESTINATION>
<SOURCE_FILER>rhine</SOURCE_FILER>
<SOURCE_VOLUME>grace2</SOURCE_VOLUME>
<DESTINATION_FILER>rhine</DESTINATION_FILER>
<DESTINATION_VOLUME>grace2_mir</DESTINATION_VOLUME>
</SELECTED_DESTINATION>
</SELECTED_DESTINATIONS>
</VERIFICATION_ON_DESTINATION>
-<SCHEDULE_JOBS>
-<JOB>
<SCHEDULER>Windows Task Scheduler</SCHEDULER>
<JOB_NAME>bkup1</JOB_NAME>
<HOST_NAME>snapmgr-19</HOST_NAME>
<START_DIR>C:\Program Files\NetApp\SnapManager for SQL Server\</
START_DIR> <APPLICATION_NAME>C:\Program Files\NetApp\SnapManager for SQL
Server\SMSQLJobLauncher.exe</APPLICATION_NAME>
<EndDay>0</EndDay>
<StartHour>13</StartHour>
<StartMinute>32</StartMinute>
<MinutesDuration>0</MinutesDuration>
<MinutesInterval>0</MinutesInterval>
<Flags>0</Flags>
<Type>TIME_TRIGGER_WEEKLY</Type>
-<Data>
-<daily>
<DaysInterval>1</DaysInterval>
</daily>
-<weekly>
<WeeksInterval>1</WeeksInterval>
<DaysOfTheWeek>4</DaysOfTheWeek>
</weekly>
-<monthlyDate>
<Days>262145</Days>
<Months>0</Months>
</monthlyDate>
-<monthlyDOW>
<WhichWeek>1</WhichWeek>
<DaysOfTheWeek>4</DaysOfTheWeek>
<Months>0</Months>
</monthlyDOW>
</Data>
<Reserved2>0</Reserved2>
<RandomMinutesInterval>0</RandomMinutesInterval>
</TASK_TRIGGER>
</WEEKLY_TRIGGER>
</WEEKLY_TRIGGERS>
</SCHEDULES>
</JOB>
-<JOB>
<SCHEDULER>SQL Server Agent</SCHEDULER>
<JOB_NAME>bkupSqlAgt</JOB_NAME>
<HOST_NAME>SNAPMGR-19</HOST_NAME>
<START_DIR>C:\Program Files\NetApp\SnapManager for SQL Server\</
START_DIR> <APPLICATION_NAME>C:\Program Files\NetApp\SnapManager for SQL
Server\SMSQLJobLauncher.exe</APPLICATION_NAME>
<COMMAND>ackup ñsvr 'SNAPMGR-19' -db 'SNAPMGR-19', '8', 'DB1', 'DB2',
'DB3', 'DB4', 'DB5', 'master', 'model', 'msdb', 'SNAPMGR-19\MARS', '3',
'master', 'model', 'msdb' -ver ñversvr 'SNAPMGR-19' -del -rtbkups 2 -
lgbkafbk -noutm -uniq ñmgmt standard</COMMAND>
<START_TIME>11/7/2007 1:00:00 AM</START_TIME>
-<SQLAGENTSCHEDULES>
<START_DATE_TIME>11/5/2007 12:00:00 AM</START_DATE_TIME>
<START_TIME_OF_DAY>01:00:00</START_TIME_OF_DAY>
<END_DATE_TIME>12/31/9999 12:00:00 AM</END_DATE_TIME>
<END_TIME_OF_DAY>23:59:59</END_TIME_OF_DAY>
<FREQUENCY_TYPE>Daily</FREQUENCY_TYPE>
<FREQUENCY_INTERVAL>1</FREQUENCY_INTERVAL>
<FREQUENCY_SUBDAY_TYPE>Once</FREQUENCY_SUBDAY_TYPE>
<FREQUENCY_SUBDAY_INTERVAL>0</FREQUENCY_SUBDAY_INTERVAL>
<FREQUENCY_RELATIVE_INTERVAL>First</FREQUENCY_RELATIVE_INTERVAL>
<FREQUENCY_RECURRENCE_FACTOR>0</FREQUENCY_RECURRENCE_FACTOR>
</SQLAGENTSCHEDULES>
</JOB>
-<JOB>
<SCHEDULER>SQL Server Agent</SCHEDULER>
<JOB_NAME>bkupSqlAgtMars</JOB_NAME>
<HOST_NAME>SNAPMGR-19\MARS</HOST_NAME>
<START_DIR>C:\Program Files\NetApp\SnapManager for SQL Server\</
START_DIR> <APPLICATION_NAME>C:\Program Files\NetApp\SnapManager for SQL
Server\SMSQLJobLauncher.exe</APPLICATION_NAME>
<COMMAND>backup ñsvr 'SNAPMGR-19' -db 'SNAPMGR-19', '8', 'DB1', 'DB2',
'DB3', 'DB4', 'DB5', 'master', 'model', 'msdb', 'SNAPMGR-19\MARS', '3',
'master', 'model', 'msdb' -ver ñversvr 'SNAPMGR-19' -del -rtbkups 2 -
lgbkafbk -noutm -uniq ñmgmt standard</COMMAND>
<START_TIME>11/11/2007 2:00:00 AM</START_TIME>
-<SQLAGENTSCHEDULES>
<START_DATE_TIME>11/5/2007 12:00:00 AM</START_DATE_TIME>
70 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
<START_TIME_OF_DAY>02:00:00</START_TIME_OF_DAY>
<END_DATE_TIME>12/31/9999 12:00:00 AM</END_DATE_TIME>
<END_TIME_OF_DAY>23:59:59</END_TIME_OF_DAY>
<FREQUENCY_TYPE>Weekly</FREQUENCY_TYPE>
<FREQUENCY_INTERVAL>1</FREQUENCY_INTERVAL>
<FREQUENCY_SUBDAY_TYPE>Once</FREQUENCY_SUBDAY_TYPE>
<FREQUENCY_SUBDAY_INTERVAL>0</FREQUENCY_SUBDAY_INTERVAL>
<FREQUENCY_RELATIVE_INTERVAL>First</FREQUENCY_RELATIVE_INTERVAL>
<FREQUENCY_RECURRENCE_FACTOR>1</FREQUENCY_RECURRENCE_FACTOR>
</SQLAGENTSCHEDULES>
</JOB>
</SCHEDULE_JOBS>
</COMMON_SETTINGS>
</SMSQLCONFIG>
<?xml version="1.0"?>
<SMSQLCONFIG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<HOST_NAME>W2K8R2SP1X64</HOST_NAME>
<COMMON_SETTINGS>
<SCHEDULE_JOBS>
<JOB>
<SCHEDULER>SQL Server Agent</SCHEDULER>
<JOB_NAME>CloneAutoDel__abc__09-17-2012_21-38-44</JOB_NAME>
<HOST_NAME>W2K8R2SP1X64</HOST_NAME>
<START_DIR>"C:\Program Files\NetApp\SnapManager for SQL Server\
</START_DIR>
<APPLICATION_NAME>
"C:\Program Files\NetApp\SnapManager for SQL Server
\SmsqlJobLauncher.exe
</APPLICATION_NAME>
<COMMAND>delete-clone –svr 'W2K8R2SP1X64' -inst 'W2K8R2SP1X64'
-d 'abc__Clone' -JobInstance 'W2K8R2SP1X64'
-ResyncCloneJob
'CloneResync__abc__09-17-2012_21-38-44'</COMMAND>
<START_TIME>9/18/2012 9:38:37 PM</START_TIME>
<SQLAGENTSCHEDULES>
<START_DATE_TIME>20120918</START_DATE_TIME>
<START_TIME_OF_DAY>213837</START_TIME_OF_DAY>
<END_DATE_TIME>99991231</END_DATE_TIME>
<END_TIME_OF_DAY>235959</END_TIME_OF_DAY>
<FREQUENCY_TYPE>OneTime</FREQUENCY_TYPE>
<FREQUENCY_INTERVAL>0</FREQUENCY_INTERVAL>
<FREQUENCY_SUBDAY_TYPE>Unknown</FREQUENCY_SUBDAY_TYPE>
<FREQUENCY_SUBDAY_INTERVAL>0</FREQUENCY_SUBDAY_INTERVAL>
<FREQUENCY_RELATIVE_INTERVAL>First</
FREQUENCY_RELATIVE_INTERVAL>
<FREQUENCY_RECURRENCE_FACTOR>0</FREQUENCY_RECURRENCE_FACTOR>
</SQLAGENTSCHEDULES>
</JOB>
<JOB>
<SCHEDULER>SQL Server Agent</SCHEDULER>
<JOB_NAME>CloneResync__abc__09-17-2012_21-38-44</JOB_NAME>
<HOST_NAME>W2K8R2SP1X64</HOST_NAME>
<START_DIR>
"C:\Program Files\NetApp\SnapManager for SQL Server\
</START_DIR>
Server\SnapMgrMountPoint' -Resynchronize
-ForceTerminateConnection -ver
–verInst 'W2K8R2SP1X64' -mp
–mpdir 'C:\Program Files\NetApp
\SnapManager for SQL
Server\SnapMgrMountPoint' -RetainShareBackups 7
–mgmt standard </COMMAND>
<START_TIME>9/18/2012 9:38:37 PM</START_TIME>
<SQLAGENTSCHEDULES>
<START_DATE_TIME>20120917</START_DATE_TIME>
<START_TIME_OF_DAY>213837</START_TIME_OF_DAY>
<END_DATE_TIME>99991231</END_DATE_TIME>
<END_TIME_OF_DAY>235959</END_TIME_OF_DAY>
<FREQUENCY_TYPE>Daily</FREQUENCY_TYPE>
<FREQUENCY_INTERVAL>1</FREQUENCY_INTERVAL>
<FREQUENCY_SUBDAY_TYPE>Hour</FREQUENCY_SUBDAY_TYPE>
<FREQUENCY_SUBDAY_INTERVAL>12</FREQUENCY_SUBDAY_INTERVAL>
<FREQUENCY_RELATIVE_INTERVAL>First</
FREQUENCY_RELATIVE_INTERVAL>
<FREQUENCY_RECURRENCE_FACTOR>0</FREQUENCY_RECURRENCE_FACTOR>
</SQLAGENTSCHEDULES>
</JOB>
</SCHEDULE_JOBS>
</COMMON_SETTINGS>
</SMSQLCONFIG>
72
Steps
2. In the Full Database Backup tab, specify settings for full database backups:
a. Choose a backup naming convention:
Convention Description
Generic Adds the string “recent” to the name of the most recent Snapshot
copy. All other Snapshot copies include a timestamp.
If you enable the enhanced Snapshot copy naming convention by
clicking Advanced, the most recent backup copy per management
group (daily, weekly, standard) has the suffix “__recent”. For
example, after enhanced Snapshot copy naming is enabled, backup
copies have the following names:
• sqlsnap__SqlServerName__Daily__recent
• sqlsnap__SqlServerName__Weekly__recent
• sqlsnap__SqlServerName__recent
Unique Adds a timestamp to all Snapshot copy names. This is the default
option and is almost always the best choice.
The naming convention you select applies to all backups. You should use the Unique naming
convention unless you have a script that requires the constant string “recent”. Also, when the
database resides on a VMDK, you must use the Unique naming convention when you want to
clone Snapshot copies.
b. Keep both of the Run DBCC physical integrity verification... options unselected.
It is best to verify databases in an operation separately from the database backup operation.
3. In the Transaction Log Backup tab, specify settings for transaction log backups, including how
long you want to retain SnapInfo Snapshot copies, whether you want to copy transaction log
backup copies to a share, and how long you want to retain the backup copies on the share.
4. In the Backup Concurrency tab, keep the default setting or enter a smaller number, if needed for
performance reasons.
Configuring SnapManager application settings | 73
Microsoft recommends setting a maximum of 35 databases per backup Snapshot copy if SQL
Server thread resources are strained.
Note: During backup, SnapManager might use a different number of maximum databases per
Snapshot copy than what is configured in the Backup Settings dialog box. This happens
because SnapManager tries to use the smallest number of Snapshot copies as possible. For
example, if the maximum databases per Snapshot copy setting is 35 and there are 45 databases
to back up, SnapManager might back up all 45 databases in the same Snapshot copy operation.
Steps
2. In the Verification Settings tab, define how SnapManager should verify backup copies:
For this field... Do this...
Verification Server For optimal performance, choose a remote verification server, which
offloads work from the SQL production server.
SQL Server Connection Choose an authentication method for SnapManager to connect to the
SQL Server on the verification server during backup verification:
Use Windows authentication
SnapManager connects to the SQL Server using
the Windows account under which SnapManager
runs (the SnapManager service account). This is
the most common method.
Use SQL Server authentication
SnapManager connects to the SQL Server using an
account defined on the SQL Server. The account
must have sysadmin server role privileges on the
SQL Server instance.
Access a mounted LUN in Keep the default option for mounting Snapshot copies to an empty NTFS
snapshot directory. SnapManager mounts Snapshot copies to the verification server
when it verifies backup copies. Using an empty NTFS directory is
typically better than assigning drive letters because the verification server
can run out of drive letters if there are more backup copies than available
drive letters.
For a Windows Failover Cluster, the mount point directory must be a
shared disk.
3. In the SnapMirror and SnapVault Options tab, click Verification on Destination Volumes and
choose the volumes.
4. In the DBCC options tab, specify the DBCC options that SnapManager uses to verify backup
sets.
For more information about DBCC options, see your Microsoft SQL Server documentation.
74 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Steps
Option Description
Recover database If the database is not fully operational and you want to leave it
without restoring at operational after restore, SnapManager skips the restore operation and
the end of restore performs the recover operation.
operation if needed
Restore databases If an existing database is online at the time of the restore operation,
even if existing SnapManager proceeds with the restore operation and overwrites the
databases are online existing database.
Retain SQL database If you restore databases for an SQL Server instance that is acting as a
replication settings Publisher or as a Subscriber in a replication topology, the replication
relationship is retained after the SnapManager restore operation
finishes.
Create transaction If this option is not selected, SnapManager does not create a transaction
log backup before log backup before the restore operation is performed, thereby
restore operation decreasing overall restore time.
Clear this option under the following circumstances:
Abort database If the transaction log backup fails, SnapManager aborts the database
restore operation if restore operations.
transaction log
backup before
restore fails
Ignore log backups Log backups on the repository share are not used in the restore.
from SMSQL
Repository Share
3. Click OK.
The new settings will be applied to all subsequent database restore operations.
Configuring SnapManager application settings | 75
Steps
2. In the Notification Settings dialog box, configure the settings for email notifications, event
logging, and AutoSupport notifications.
Most fields in this dialog box are self-explanatory. The following table describes fields for which
you might need guidance:
Field Description
Send e-mail notification Enables email notifications to the specified address about the success or
failure of SnapManager operations.
If you enable this field, click Advanced to tune the notification settings
—for example, to receive notifications only when operations fail.
Log SnapManager events to Posts SnapManager events to the storage system's event log, if
storage system syslog AutoSupport is enabled on the storage system.
Technical support can use this information to troubleshoot issues.
3. Click OK.
Steps
2. Select the operation (for example, backup, verify, restore, or clone) for which you want these
default settings to apply.
4. If you want the SnapManager for SQL Server operation to stop when an error occurs in the
custom user command, select Treat pre command errors as fatal by stopping the remaining
SnapManager operation.
76 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
5. In the Specify a computer where... box, enter or browse to the name of the host on which your
program or script resides.
6. In the Specify the full path... box, select your program or script.
• To enter text directly into the Command Arguments box, click the box and type the desired
text.
• To enter a SnapManager variable into the Command Arguments box, do the following:
b. In the SnapManager Variables list, select the variable you want to enter.
c. Click Select.
Note: Several parameters, like the $SnapInfoPath and $LogBackupFile variables, are
enclosed within double quotes by default so that the actual path name can contain spaces
without affecting the script invocation on the Windows command line. If you do not want
the double quotes to appear in your command line, remove them from the Command
Arguments field in the Run Commands dialog box.
Precommand arguments
The following precommand arguments apply to backup, verify, restore, and clone operations:
Variable Description
$Database Specifies the logical name of the database processes.
To prevent PowerShell from interpreting the value of this parameter, be
sure to enclose the entire parameter value with single quotes: -
PreCmdArg '$Database $ServerInstance'.
Example:
DatabaseAccounting
If you want to have more than one database expanded, repeat the
parameter as many times as you want.
Example:
Variable Description
$ServerInstance Specifies the name of the SQL server instance that is actually processed.
Example:
ACMESERVER1\SQLINSTANCE1
Postcommand arguments
The following postcommand arguments apply to backup, verify, restore, and clone operations.
Note: To prevent PowerShell from interpreting the value of a parameter, be sure to enclose the
entire parameter value within single quotes: -PostCmdArg ‘$Database $ServerInstance
$SqlSnapshot'
Variable Description
$InfoSnapshot Expands to the name of a SnapInfo directory Snapshot copy.
Examples:
sqlinfo__winsrvr2__01-31-2014_15.03.09
sqlinfo__winsrvr2__recent
$LogBackupFile Expands to the full path name of the transaction log backup file.
Example:
I:\SMSQL_SnapInfo\SQL__WINSRVR2\DB__Northwind
\LogBackup\ 11-01-2004_13.34.59__Northwind.TRB
WINSRVR2__recent
WINSRVR2_11-23-2013_16.21.07__Daily
If you use this variable, you must also provide the correct path
to the directory.
78 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Variable Description
$SnapInfoPath Expands to the name of the SnapInfo subdirectory. This
argument is used in backup and verification operations.
Example:
I:\SMSQL_SnapInfo\SQL__WINSRVR2\DB__Northwind
For restore and clone operations, this argument specifies the
path to the Snapshot copy information metadata that is being
used for the database restore.
Example:
U:\SMSQL_SnapInfo\VDISK__E\FG__
\05-14-2010_15.33.41\SnapInfo__05-14-2010_15.33
.41.sml
sqlsnap__winsrvr2__01-31-2014_15.03.09
sqlsnap__winsrvr2__recent
sqlsnap__winsrvr2__01-31-2014_15.03.09
sqlsnap__winsrvr2__recent
Several parameters, like the $SnapInfoPath and $LogBackupFile variables, are enclosed within
double quotes by default so that the actual path name can contain spaces without affecting the script
invocation on the Windows command line. If you do not want the double quotation marks to appear
in your command line, remove them from the Command Arguments field in the Run Commands
dialog box.
The following postcommand arguments apply only to restore and clone operations:
Configuring SnapManager application settings | 79
Variable Description
$StandbyFile This is the full file system path of the SQL standby file used on
a restore. This file path is calculated during the restore-clone
operation as a temporary file when incomplete transactions are
removed from the database and stored in the file for later use.
The user requests to generate a standby (or undo) file in a
certain directory, but the full file name path actually used is not
known until the restore or clone operation is launched. This
happens when several databases are restored at the same time
to the same LUNs. By default, this is created in the snap-
info directory.
Example:
U:\SMSQL_SnapInfo\VDISK__E
\UNDO_SECLOCSYS_db5.dat
DatabaseAccountingRestoredCopy
ACMESERVER2\SQLINSTANCECOPY
• If you enable the unrestricted database layout option and then move databases to a new
configuration, you should take a full backup of all databases before taking any log backups.
Taking a full backup ensures that you can perform up-to-the-minute restore operations.
• If you enable the unrestricted database layout option and you have an existing LUN that contains
multiple databases, you can continue to restore and clone the entire LUN, as long as the LUN
contains the entire contents of multiple databases.
For example, you can no longer restore or clone at the LUN level if you add a database to the
existing LUN by spreading its files across the existing LUN and other LUNs. The entire database
must reside on the LUN.
Configuring SnapManager application settings | 81
Steps
Steps
2. Note the space consumption for each LUN that stores SQL Server data or SnapInfo directories.
The following columns display SnapManager configuration information:
Drive Letter or MountPoint
A SnapManager configuration setting for the LUN. The drive letter or NTFS mount point
on which the LUN is mounted.
Fractional Overwrite Reserve (%)
The percent of space reserved for overwrites on the storage system volume that contains
this LUN. Expressed as a percentage of the total size of all space-reserved LUNs in the
volume. If Fractional Overwrite Reserve (%) is 100, the LUN is contained in a fully
space-reserved volume rather than a fractionally space-reserved volume.
Backup AutoDelete Trigger (%)
A SnapManager fractional space reservation policy setting for the storage system volume
that contains the LUN. The percentage of overwrite reserve utilization that triggers
automatic deletion of SQL Server backup sets.
Disable Database Trigger (%)
A SnapManager fractional space reservation policy setting for the storage system volume
that contains the LUN. The percentage of overwrite reserve utilization that triggers
automatic disabling of SQL Server databases.
The following columns display the fractional overwrite reserve settings and status:
Storage System Snapshot AutoDelete
For the storage system volume that contains this LUN, the state of the Data ONTAP
Snapshot copy automatic deletion feature: enabled or disabled. If this LUN stores SQL
Server data files and is contained in a storage system volume for which the Data ONTAP
Snapshot copy automatic deletion feature is enabled, disable this feature on that volume or
ensure that it is configured so that it does not delete SnapManager backup set components.
Used Overwrite Reserve
For the storage system volume that contains this LUN, the amount of overwrite reserve in
use. Expressed in two ways: as a percentage of the total size of all space-reserved LUNs in
the volume and in megabytes.
Available Reserve (MB)
For the storage system volume that contains this LUN, the amount of overwrite reserve
available.
3. If “Enabled” appears in the Storage System Snapshot AutoDelete column, investigate the cause
and take preventive action, if necessary.
82 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Attention: If AutoDelete is enabled, the LUN is contained in a FlexVol volume that has
overwrite reserve set to less than 100 percent and that also has the Data ONTAP automatic
Snapshot copy deletion feature enabled and configured to trigger when the overwrite reserve is
nearly full. If SQL Server data or SnapManager SnapInfo directories are stored on LUNs
contained in a volume with these characteristics, the Data ONTAP Snapshot copy automatic
deletion policy might delete SQL Server backup set components.
The SnapManager fractional space reservation policy includes a separate, SQL Server-aware
automatic deletion feature. The SnapManager automatic deletion feature can be used in place of
or in conjunction with the Data ONTAP automatic deletion feature; you can also select to disable
the SnapManager automatic deletion feature.
Steps
3. In the left navigation tree, select the scope of the policy you want to view or change in the main
panel on the right side of the tab:
6. In the “Trigger point for overwrite reserve utilization” field, enter the level of overwrite reserve
utilization (in percentage of total reserve) that you want to trigger deletion of SQL Server backup
Snapshot copies.
Note: The value must be a non-negative integer that is less than the “Trigger point for
overwrite reserve utilization” value in the Automatic dismount of databases panel.
7. In the Number of most recent backups to retain field, enter the number of backups to be
retained if automatic backup set deletion is triggered.
Note: The value must be an integer from 1 through 255 and should be based on the backup
creation and verification schedule.
8. Use the Automatically dismount databases panel to configure automatic dismounting of SQL
Server databases in fractional space-reserved LUNs on the volume.
Because automatic deletion of SQL Server backup Snapshot copies does not necessarily prevent
an out-of-space condition on the volume, SnapManager does not allow you to disable the
dismounting of databases for any fractional space reservation policy.
In the Trigger point for overwrite reserve utilization field, enter the level of overwrite reserve
utilization (in percentage of total reserve) that you want to trigger dismounting of SQL Server
databases. The value must be an integer from 0 through 99.
If Snapshot copy automatic deletion is enabled, SnapManager requires that this threshold be set to
a higher level than the threshold that triggers automatic Snapshot copy deletion. This ensures that
Snapshot copy automatic deletion is triggered first.
Advanced administration
For very large implementations, you need to be aware of SnapManager's configuration limits. You
also should be aware of requirements for advanced configurations.
• Windows cluster
25
• Stand-alone Windows host 50
LUNs per SQL Server host 165
VMDKs per SQL Server host 56
Databases per LUN or VMDK 500
Databases per storage system volume 500
Databases across all SQL Server instances in a stand-alone SQL
Server 5000
Databases across all SQL Server Failover Cluster Instances in a
Windows Server Failover Cluster 2500
File groups per database 5000
Storage system volumes that can be used to store the following:
• A single database
30
• LUNs connected to an individual SQL Server computer
165
• VMDKs connected to an individual SQL Server computer 56
• DFM.DataBase.Read Global
• DFM.DataSet.Write Global
• DFM.Policy.Read Global
• DFM.BackupManager.Backup Global
• DFM.BackupManager.Read Global
• DFM.BackupManager.Restore Global
You can use the dfm role create, dfm role add, and dfm user
add commands to create the role, add the capabilities, and create the
user.
Assign full-control Assign the SnapManager service account full-control rights on the
permissions DataFabric Manager server as shown in the following examples:
• On Windows:
• On UNIX:
• Each instance must have its own LUNs that cannot be used by other instances.
• All LUNs assigned to a specified instance must be in the cluster group for that instance and in the
SQL Server list of dependencies.
• For node 1
• For node 2
Each node must be able to own all clustered disk resources in a cluster at any time.
87
Upgrading SnapManager
When a new version of SnapManager becomes available, you can upgrade your existing installation
using either an interactive wizard or a command.
• Your host and storage systems must meet the minimum requirements for the version of
SnapManager to which you are upgrading.
• You should have backed up your SQL databases using SnapManager.
Steps
Steps
3. From a Windows command prompt, change to the location where you downloaded the product
installer.
Variable Description
installer The name of the .exe file.
Domain\UserName The user account that Windows uses to run SnapManager. This
SnapManager service account must have specific permissions on the
Windows host and the SQL Server. For details, see the Installation and
Setup Guide.
Password The password for the specified user account. Leave the password blank if
you entered a group Managed Service Account in the Account field.
DirPath\LogFileName The location and name of a log file, which is useful for troubleshooting.
The asterisk (*) specifies that all installation information (such as status
messages, non-fatal warnings, and error messages) should be logged.
Example
Repairing SnapManager
In many cases, you can correct stability issues with SnapManager by repairing the software.
Repairing the software fixes missing or corrupt files, shortcuts, and registry entries.
Steps
3. Click Repair.
Result
Windows configures SnapManager for Microsoft SQL Server.
Reinstalling SnapManager
You might reinstall SnapManager if you want to install an older version of it or if you ran a repair
operation that did not resolve a stability issue within the software.
Steps
2. Uninstall SnapManager.
3. Reinstall SnapManager.
4. Configure SnapManager with the same SnapInfo directory locations that were used by
SnapManager before the reinstallation.
If you configure SnapManager with different SnapInfo directory locations than were used
previously, then SnapManager no longer has records of any backups taken before you reinstalled
it.
90 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Uninstalling SnapManager
You can uninstall SnapManager if you no longer require the software or if you need to troubleshoot
issues.
Steps
Example:
C:\NetApp\downloads\SMSQL7.1_x64.exe /
v"REMOVE=ALL
REMOVEREPORTFOLDER=1 /qn”
91
2. If the policy displayed is “Allsigned” or “Restricted,” enter any of the following commands:
set-executionpolicy unrestricted or set-executionpolicy remotesigned
Common parameters
The following parameters are common to each cmdlet:
Debug (-db)
Displays the debug information for the cmdlet used.
ErrorAction Action Preference (-ea)
Determines what to do in case of an error. Scripting blocks use this parameter. The
following examples explain the use of this parameter:
ErrorVariable (-ev)
Displays the error data in the specified variable.
92 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
OutVariable (-ov)
Displays the output data string.
OutBuffer (-ob)
Displays the output buffer.
Whatif
Provides a preview of an operation.
Confirm
Prompts you for confirmation before the actual deletion operation starts.
Verbose (-vb)
Displays the report content for backup, restore, configuration, and verification options.
clone-backup
Name
clone-backup
Synopsis
Use this cmdlet to clone databases from an existing backup or archive using the SnapManager SQL
Server PowerShell command-line interface. You can also use this cmdlet to add (by cloning) a
database to an Availability Group.
Syntax
clone-backup [-Server <String>] [-UserName <String>] [-Password <String>]
[-ServerInstance <String[]>] -Database <String[]> [-Backup <String>] [-
RestoreLastBackup <Int32>] [-TransLogsToApply <Int32[]>] [-ForceRestore
[<Boolean>]] [-ClusterAware] [-TargetDatabase <String[]>] [-
TargetServerInstance <String[]>] [-TargetServerMountPointDir <String>] [-
PointInTime <String[]>] [-SnapInfoDirectory <String>] [-MarkName
<String[]>] [-MarkTime <String[]>] [-RestoreBeforeMark [<Boolean>]] [-
RecoverDatabase <Boolean[]>] [-StandbyPath <String>] [-apicontext] [-
RestoreArchivedBackup] [-SnapVaultSecondary] [-CloneOnMirrorDestination] [-
ChangeClonePath] [-CloneMirrorDestVolumes <String[]>] [-PreCommand] [-
PreCommandPath <String>] [-PreCommandArguments <String>] [-PreCommandHost
<String>] [-PreCommandErrors <EnumHandleCmdError[]>] [-PostCommand] [-
PostCommandPath <String>] [-PostCommandArguments <String>] [-
PostCommandHost <String>] [-PostCommandErrors <EnumHandleCmdError[]>] [-
AvailabilityGroup] [-IgnoreRepLogs] [-WhatIf] [-Confirm]
[<CommonParameters>]
Description
You can use this cmdlet to clone a live database or a database that is already backed up in a backup
set. This cmdlet restores the database from the existing backup set, to clone the database to an
alternate temporary writable LUN location, or to an Availability Group for further use.
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
SnapManager cmdlet guidelines | 93
This parameter denotes the name of the host SQL server on which the SQL server instances reside.
SnapManager takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
Multiple database names should be specified only if those databases share a single LUN or multiple
LUNs together. For a multiple database restore, all the selected databases should be present in the
selected Snapshot copy.
You cannot restore a database with a new name if you specify multiple databases. If you want to
restore with a new name, restore those databases one by one. In case of restore to alternate location,
specify only one database name.
-Backup <String> - Short Form: -bkup
Use this option to specify the name of the backup set. This is a mandatory parameter. The following
example illustrates the usage:
-bkup sqlsnap__SYMNASQLDEV170_04-11-2007_15.22.27
-RestoreLastBackup <Int32> - Short Form: -lastBkup
Use this parameter to restore backups without specifying the name. If you try to use the Backup and
RestoreLastBackup parameters together, SnapManager ignores the RestoreLastBackup
parameter and uses the Backup parameter during restore operation. A typical usage example of the
restorelastbackup parameter is as follows:
Note: If the value for RestoreLastBackup parameter is 0, SnapManager restores the latest backup.
If the value is 1, SnapManager restores second-to-latest backup and so on.
This parameter specifies the list of transactions logs that need to be applied. SnapManager applies all
transaction logs of the databases specified in the -Database parameter by default. You can specify the
number of transaction logs to be applied for every database mentioned in the -Database parameter.
The list of number of transaction logs that have to applied has to be listed in the same sequence as the
databases listed in the -Database parameter. For example,
restore-backup -svr MACHINE1\INST1 -database db1,db2 -TransLogsToApply 3,7
The parameter defines the new database name to which the original database is restored. The old
database name is defined at the same position in the -Database parameter.
If no new database name is given, the database is restored to the original database name the database
had during backup. If this original name already exists, the name is modified to:
originalDbName__clone, or originalDbName__mount.
-TargetServerInstance <String[]> - Short Form: -tgInst
This parameter specifies the name of the new SQL server if you want to restore the database to a new
SQL Server. SnapManager takes the source SQL server instance as the default.
-TargetServerMountPointDir <String> - Short Form: -tgmpdir
Use this parameter to specify the mount point path or directory of the target server instance in which
the backups are cloned or mounted.
-PointInTime <String[]> - Short Form: -pit
Use this switch to restore databases until a specific point in time. The format for the point-in-time
string is yyyy-mm-ddThh:mm:ss, with time specified in a 24-hour format.
In case of multiple databases you should specify the point-in-time values for every database
separated by a comma. The number of values after the parameter name should equal the number of
databases selected. The first value will be applied to the first database specified after the -Database
parameter, the second value to the second database, and so on. The following example illustrates the
usage:
-pit 2008-10-22T11:50:00, 2008-11-25T22:50:00
Note: The parameter correspondence is one-to-one, that is, the first point-in-time parameter value
specified after the parameter -pit is applied to the first database specified in the parameter -
Database and the second point-in-time parameter value to second database and so on. The values
should conform to the required PointInTime regular expression.
This parameter specifies a unique timestamp to guarantee the uniqueness of the input restored mark.
-RestoreBeforeMark [<Boolean>] - Short Form: -beforemk
This true or false value indicates whether the specified marked transaction log should be included in
the restore.
-RecoverDatabase <Boolean[]> - Short Form: -recoverdb
This parameter indicates whether the database fully recovered or left in a partially recovered state
after the cmdlet finishes, to facilitate future SQL transaction log restores. This is an array of
booleans, so it must match the same number of elements of the -database array. If the it does not
match the number of elements of the -database array, an error is given. This defaults to $true for all
databases unless the -standbyPath is given, in which case it defaults to $false for all databases.
-StandbyPath <String> - Short Form: -standby
This parameter indicates the path to the standby recovery file where incomplete transactions are
stored after restoring a full database and its transaction logs. There is no default if you specify this
parameter. The path must be to the standby directory if more than one database shares a LUN. If the
database is on a dedicated LUN, then it must be a specific file. If the -standbypath parameter is given,
the -RecoveryDatabase given must be -RecoverDatabase $False, otherwise it defaults to $false for all
databases if no _RecoverDatabase parameter is specified.
-apicontext - Short form: none
Use this parameter when calling the cmdlet as an API call.
-RestoreArchivedBackup - Short Form: -rstarchbkup
Use this parameter to specify using remote backup to clone the database.
-SnapVaultSecondary - Short Form: -vaultsec
This optional parameter identifies the backup vault from which you want to clone a database. If you
do not specify this parameter, SnapManager chooses one of the backup vaults. You use this parameter
in conjunction with the -RestoreArchivedBackup parameter. If you specify this parameter with
the -AvailabilityGroup parameter, then the Availability Group databases must be spread across
the same volumes. Otherwise, do not specify this parameter and SnapManager will choose one of the
backup vaults. This parameter applies to clustered Data ONTAP only.
The syntax for this parameter is as follows:
-SnapVaultSecondary n, Vserver:volume
Where n is the number of Storage Virtual Machine (SVM, formerly known as Vserver):volume pairs.
Example: -SnapVaultSecondary 3, Vserver1:volume1, Vserver2:volume2,
Vserver3:volume3
Note: You cannot have more than one space between items that may be parsed in this parameter's
value.
Examples
Example 1: clone-backup -Server win-225-165 -Database DB2 -Inst win-225-165
-Backup sqlsnap__win-225-165_09-06-2008_13.44.51
This command restores the most recent clone that was created.
Example 3: clone-backup -Server win-225-165 -Inst win-225-165 -
AvailabilityGroup Ag1 -RestoreLastBackup 0
This command restores the most recent clone of the Availability Group that was created.
Example 4: clone-backup -svr win-225-165 -Database DB2 -Inst win-225-165 -
Backup sqlsnap__win-225-165_09-06-2008_13.44.51 -RestoreArchivedBackup -
vaultsec 2,vserver1:volume1,vserver2:volume2
This command creates a clone of database DB2 from the specified SnapVault secondary volume.
clone-database
Name
clone-database
Synopsis
This cmdlet enables you to clone a live database or a database that is already backed up in a backup
set using the SnapManager SQL Server PowerShell command-line interface.
Syntax
clone-database [-Server <String>] [-UserName <String>] [-Password <String>]
[-LogBkup] [-Verify] [-VerifyServerInstance <String>] [-VerSvrLogin
<String>] [-VerSvrPassword <String>] [-VerDestVolume] [-VerifyOnDestVolumes
<String[]>] [-DBCCOption <EnumDbccOption[]>] [-CloneOnMirrorDestination] [-
ChangeClonePath] [-Resynchronize] [-ForceTerminateConnection] [-
ClusterAware] [-CloneMirrorDestVolumes <String[]>] [-VerifyDisable] [-
UseMountPoint] [-MountPointDir <String>] [-UseDriveAvailable] [-
RetainBackups <Int32>] [-RetainBackupDays <Single>] [-AttachDB] [-
98 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Description
This cmdlet enables you to clone a live database or a database that is already backed up in a backup
set. It creates a backup set of the database and uses the backup set to clone the database. This cmdlet
provides you various verification options, DBCC, recovery after restore, retaining backups,
management groups and many other options.
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short form: -svr
This parameter denotes the name of the host SQL Server on which the SQL Server instances reside.
SnapManager takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
Here the SQL server instance is the local or remote SQL server instance to verify on. SnapManager
takes the configured SQL server instance that is used for verify in client configuration (registry) as
the default SQL server instance.
-VerSvrLogin <String> - Short form: -verlogin
This parameter specifies that SQL Server authentication is used. If not specified, the default Windows
NT Authentication mechanism is used.
-VerSvrPassword <String> - Short form: -verpwd
This parameter is used to input the verification server password. SnapManager ignores this parameter
if the parameter -VerSvrLogin is not specified.
-VerDestVolume - Short form: -verdest
Use this parameter to verify the database on the SnapMirror destination volume. SnapManager sets it
to "false" by default.
-VerifyOnDestVolumes <String[]> - Short form: -vermirror
Specify this parameter in order to override the default SnapMirror relationships. Enter the source and
destination storage systems and volumes as a comma-separated list. SnapManager sets it to "false" by
default.
-DBCCOption <EnumDbccOption[]> - Short form: -dbccopt
This parameter specifies options to the DBCC SQL command that are used to validate and verify the
database that is being processed. When you use this parameter, you are explicitly requesting DBCC
options, and the system does read the registry to determine the default DBCC options. The security
access issues for the registry are bypassed when you use this cmdlet option. The parameter uses the
following values:
NOOPTION
NOINDEX
ALL_ERRORMSGS
NO_INFOMSGS (default)
TABLOCK
PHYSICAL_ONLY (default)
For more information about these options, see your Microsoft SQL Server documentation.
-CloneOnMirrorDestination - Short form: -cloneonmir
Use this parameter to clone a database based on the Snapshot copy on the SnapMirror destination
volume. Ensure that the SnapMirror relationship exists and SnapMirror was updated when using this
option.
-ChangeClonePath - Short form: -chgpath
Use this parameter to change clone database paths based on the new database clone name.
-Resynchronize - Short form: -resync
Use this parameter to specify that the existing clone is refreshed with the live database.
-ForceTerminateConnection - Short form: -ftc
Use this parameter to specify that all the connections to the existing clone are terminated during
clone resynchronize.
100 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
The first database specified in the -Database parameter refers the first server instance in the -
ServerInstance parameter, the second database in the -Database parameter refers to the second server
instance in the -ServerInstance parameter and so on.
SnapManager cmdlet guidelines | 103
Multiple database names should be specified only if those databases share a single LUN or multiple
LUNs together. For a multiple database restore, all the selected databases should be present in the
selected Snapshot copy.
You cannot restore a database with a new name if you specify multiple databases. If you want to
restore with a new name, restore those databases one by one. In case of restore to alternate location,
specify only one database name.
-TransLogsToApply <Int32[]> - Short form: -translogs
This parameter specifies the count of transactions logs that need to be applied to each database
restored. If the TransLogsToApply parameter is not given, then all transaction logs that apply to the
full backup restored are applied by default (just as the GUI does). You can specify the number of
transaction logs to be applied for every database mentioned in the -Database parameter. The list of
number of transaction logs that are applied must be listed in the same sequence as the databases listed
in the -Database parameter. For example:
-Database db1,db2
might correspond to:
-TransLogsToApply 1,8
which means 1 transaction log backup will be applied to db1, and 8 will be applied to db2.
-ForceRestore [<Boolean>] - Short form: -force
Use this parameter to force the restore of a database based on its state. SnapManager sets it's value to
"true" by default.
-TargetDatabase <String[]> - Short form: -tgDb
Use this parameter to restore a database with a new name. The following example illustrates the
usage:
-tgDb "NewDatabaseName1"," NewDatabaseName2"," NewDatabaseName3"
The parameter defines the new database name to which the original database is restored. The old
database name is defined at the same position in the -Database parameter.
If no new database name is given, the database is restored to the original database name the database
had during backup. If this original name already exists, the name is modified to:
originalDbName__clone, or originalDbName__mount.
-TargetServerInstance <String[]> - Short form: -tgInst
This parameter specifies the name of the new SQL server if you want to restore the database to a new
SQL server. SnapManager takes the source SQL server instance as the default.
-TargetServerMountPointDir <String> - Short form: -tgmpdir
Use this parameter to specify the mount point path or directory of the target server instance in which
the databases are to be cloned or mounted.
-MarkName <String[]> - Short form: -mark
This parameter indicates the marked transaction at which to stop the transaction log recovery.
-MarkTime <String[]> - Short form: -mktm
This parameter specifies a unique timestamp to guarantee the uniqueness of the input restored mark.
-RestoreBeforeMark [<Boolean>] - Short form: -beforemk
104 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
This true or false value indicates whether the specified marked transaction log should be included in
the restore.
-RecoverDatabase <Boolean[]> - Short form: -recoverdb
This parameter indicates whether the database fully recovered or left in a partially recovered state
after the cmdlet finishes, to facilitate future SQL transaction log restores. This is an array of
booleans, so it must match the same number of elements of the -database array. If the it does not
match the number of elements of the -database array, an error is given. This defaults to $true for all
databases unless the -standbyPath is given, in which case it defaults to $false for all databases.
-StandbyPath <String> - Short form: -standby
This parameter indicates the path to the standby recovery file where incomplete transactions are
stored after restoring a full database and its transaction logs. There is no default if you specify this
parameter. The path must be to the standby directory if more than one database shares a LUN. If the
database is on a dedicated LUN, then it must be a specific file. If the -standbypath parameter is given,
the -RecoveryDatabase given must be -RecoverDatabase $False, otherwise it defaults to $false for all
databases if no -RecoverDatabase parameter is specified.
-apicontext - Short form: none
Use this parameter when calling the cmdlet as an API call.
-RestoreArchivedBackup - Short form: -rstarchbkup
Use this parameter to specify using remote backup to perform the clone operation.
-RetainShareBackups <Integer> - Short form: -rtsharebackups
Use this parameter to specify the number of log backups retained in the SnapManager for SQL
repository share.
-RetainShareBackupDays <Integer> - Short form: -rtsharedays
Use this parameter to specify for how many days log backups are retained in the SnapManager
Repository Share.
-AvailabilityGroup <String> - Short form: -ag
Use this parameter to reseed databases belonging to the given Availability group.
-IgnoreRepLogs: - Short form: -nosharelogs
Use this parameter to ignore the transaction logbackups from SnapManager Repository Share.
-WhatIf - Short form: -wi
This parameter gives you a preview of an operation.
-Confirm - Short form: -cf
This parameter prompts you for confirmation before the actual operation starts.
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable,
WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Examples
Example 1: clone-database -svr sql1 -Database "Db1"
This command clones database Db1 located on SQL Server sql1.
Example 2: clone-database -svr win-225-166 -Inst win-225-166 -Database
dbtest1 -Verify -verinst win-225-166 -RecoverDatabase
SnapManager cmdlet guidelines | 105
This example enables database cloning with a default name for a default instance.
Example 3: clone-database -svr win-225-166 -Inst win-225-166 -Database
dbtest1 -Verify -verinst win-225-166 -TargetDatabase dbtest1_Clone -
RecoverDatabase
This example enables database cloning with a new name for a default instance.
Example 4: clone-database -svr win-225-166 -Inst win-225-166\Named -Database
dbtest2 -Verify -verinst win-225-166 -RecoverDatabase
This example enables database cloning with a default name for a named instance.
Example 5: clone-database -svr win-225-166 -Inst win-225-166\Named -Database
dbtest2 -Verify -verinst win-225-166 -TargetDatabase dbtest2_Clone -
RecoverDatabase
This example enables database cloning with a new name for a named instance.
Example 6: clone-database -svr 'SNAPMGR-19' -inst 'SNAPMGR-19',
'SNAPMGR-19', 'SNAPMGR-19' -d 'DB3', 'DB4', 'DB5' -tgInst 'SNAPMGR-19' -
tgDb 'DB3__Clone', 'DB4__Clone', 'DB5__Clone' -tgmpdir 'E:\Program Files
\NetApp\SnapManager for SQL Server\SnapMgrMountPoint' -ClusterAware -
Resynchronize -ForceTerminateConnection -RetainBackups 3 -lb -mgmt standard
This example creates a new backup on database "DB3," "DB4," and "DB5" and refreshes the cloned
databases on the active node.
Example 7: clone-database -svr 'venudhar-2k8vm2' -inst
'venudhar-2k8vm2\heitz' -ag 'testag'
This command clones all the databases belonging to the specified Availability group.
clone-replica
Name
clone-replica
Synopsis
Use this cmdlet to create an Availability Group replica by cloning existing Availability Group
databases to a specified server, which then becomes a secondary.
Syntax
clone-replica [-Server <String>] [-UserName <String>] [-Password <String>]
[-LogBkup] [-Verify] [-VerifyServerInstance <String>] [-VerSvrLogin
<String>] [-VerSvrPassword <String>] [-VerDestVolume] [-VerifyOnDestVolumes
<String[]>] [-DBCCOption <EnumDbccOption[]>] [-CloneOnMirrorDestination] [-
ChangeClonePath] [-Resynchronize] [-ForceTerminateConnection] [-
ClusterAware] [-CloneMirrorDestVolumes <String[]>] [-VerifyDisable] [-
UseMountPoint] [-MountPointDir <String>] [-UseDriveAvailable] [-
RetainBackups <Int32>] [-RetainBackupDays <Single>] [-AttachDB] [-
UpdateMirror] [-NoRetainUTM] [-ManagementGroup <String>] [-LogBkupOnly] [-
BkupSIF] [-RetainSnapofSnapInfo <Int32>] [-RetainSnapofSnapInfoDays
<Single>] [-TruncateSqlLog [<Boolean>]] [-TruncateLogs] [-PreCommand] [-
PreCommandPath <String>] [-PreCommandArguments <String>] [-PreCommandHost
<String>] [-PreCommandErrors <EnumHandleCmdError[]>] [-PostCommand] [-
PostCommandPath <String>] [-PostCommandArguments <String>] [-
106 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Description
The cmdlet uses Snapshot technology to quickly replicate databases to a remote cluster SQL
instance, and then groups them in an Availability Group. The replicated databases are associated with
instances in the same cluster so that Availability Group failover can take place when required or
requested.
An Availability Group supports up to three synchronous commit replicas and up to two automatic
failover replicas.
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short form: -svr
This parameter denotes the name of the host SQL Server on which the SQL Server instances reside.
SnapManager takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
Here the SQL server instance is the local or remote SQL server instance to verify on. SnapManager
takes the configured SQL server instance that is used for verify in client configuration (registry) as
the default SQL server instance.
-VerSvrLogin <String> - Short form: -verlogin
This parameter specifies that SQL Server authentication is used. If not specified, the default Windows
NT Authentication mechanism is used.
-VerSvrPassword <String> - Short form: -verpwd
This parameter is used to input the verification server password. SnapManager ignores this parameter
if the parameter -VerSvrLogin is not specified.
-VerDestVolume - Short form: -verdest
Use this parameter to verify the database on the SnapMirror destination volume. SnapManager sets it
to "false" by default.
-VerifyOnDestVolumes <String[]> - Short form: -vermirror
Specify this parameter in order to override the default SnapMirror relationships. Enter the source and
destination storage systems and volumes as a comma-separated list. SnapManager sets it to "false" by
default.
-DBCCOption <EnumDbccOption[]> - Short form: -dbccopt
This parameter specifies options to the DBCC SQL command that are used to validate and verify the
database that is being processed. When you use this parameter, you are explicitly requesting DBCC
options, and the system does read the registry to determine the default DBCC options. The security
access issues for the registry are bypassed when you use this cmdlet option. The parameter uses the
following values:
NOOPTION
NOINDEX
ALL_ERRORMSGS
NO_INFOMSGS (default)
TABLOCK
PHYSICAL_ONLY (default)
For more information about these options, see your Microsoft SQL Server documentation.
-CloneOnMirrorDestination - Short form: -cloneonmir
Use this parameter to clone a database based on the Snapshot copy on the SnapMirror destination
volume. Ensure that the SnapMirror relationship exists and SnapMirror was updated when using this
option.
-ChangeClonePath - Short form: -chgpath
Use this parameter to change clone database paths based on the new database clone name.
-Resynchronize - Short form: -resync
Use this parameter to specify that the existing clone is refreshed with the live database.
-ForceTerminateConnection - Short form: -ftc
Use this parameter to specify that all the connections to the existing clone are terminated during
clone resynchronize.
-ClusterAware - Short form: -cl
Use this parameter to specify that the cmdlet runs solely on the active node in a cluster environment.
108 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Use this option if you want to delete the oldest Snapshot copies in the SnapInfo directory, specified
that the backup type is a transaction log backup only. It has an integer value. The following example
illustrates the usage of this parameter: -rtsifsnap Number of SnapInfo Snapshots to keep
Note: This option is valid only if you specify the parameter - BkupSIF.
This parameter specifies the operation system path for the command to be run after the SMSQL
operation is complete.
-PostCommandArguments <String> - Short form: -postcmdargs
This parameter contains a list of strings of SnapManager operation-specific information or user-
defined arguments to be passed to the program or script. The default is to pass no parameters to the
script. If the parameter contains white spaces (tabs or spaces) you enclose it in double quotes. This
parameter is processed only if the parameters -PostCommand and -PostCommandPath are specified.
-PostCommandHost <String> - Short form: -postcmdhost
This parameter specifies the host machine name on which the command is run after the operation is
complete. The default is to run on the current machine. This parameter is considered only if the
parameters -PostCommand and -PostCommandPath are specified.
-PostCommandErrors <EnumHandleCmdError[]> - Short form: -postcmderrors
This parameter specifies how to handle SnapManager operation errors on the post-command run. The
ContinueOnError value (the default) indicates that the SMSQL operation executes even if an error is
detected during the post-command launch. The StopOnPostCmdError value indicates that if a post-
command script gets an error, the remaining SMSQL operation is not attempted. This parameter is
considered only if the parameters -PostCommand and -PostCommandPath are specified.
-RunDBCCAfter - Short form: -dbccaf
If the operation includes a database backup, use this parameter if you want to verify the live database
after the backups are performed.
-RunDBCCBefore - Short form: -dbccbf
If the operation includes a database backup, use this parameter if you want to verify the live database
before the backups are performed.
-GenericNaming - Short form: -gen
This parameter specifies that the backups must follow the Generic backup naming convention.
-ArchiveBackup - Short form: -arch
Use this parameter to archive database to a secondary storage system during the backup phase of the
operation.
-VerifyArchiveBackup - Short form: -verarch
Use this parameter to verify database archived at the secondary storage system.
-ArchivedBackupRetention <String> - Short form: -archret
Use this parameter to specify whether you want to retain backups at the archived location on a daily,
hourly, weekly, monthly or unlimited basis.
-ServerInstance <String[]> - Short form: -inst
This parameter specifies the SQL server instance where the database is backed up originally.
SnapManager takes the local computer name as the default server instance.
You can specify multiple server instance names here as a comma-separated list. If multiple databases
reside on the same LUN but are owned by different SQL server instances when you backed them up
originally, use the following format:
-Inst "SQLServerInstance1","SQLServerInstance2"
The first database specified in the -Database parameter refers the first server instance in the -
ServerInstance parameter, the second database in the -Database parameter refers to the second server
instance in the -ServerInstance parameter and so on.
-Database <String[]> - Short form: -d
SnapManager cmdlet guidelines | 111
Use this option to specify the databases that need to be cloned. Use a comma-separated list of strings:
-d Database 1, Database 2, Database 3, Database 4,....
Multiple database names should be specified only if those databases share a single LUN or multiple
LUNs together. For a multiple database restore, all the selected databases should be present in the
selected Snapshot copy.
You cannot restore a database with a new name if you specify multiple databases. If you want to
restore with a new name, restore those databases one by one. In case of restore to alternate location,
specify only one database name.
-TransLogsToApply <Int32[]> - Short form: -translogs
This parameter specifies the count of transactions logs that need to be applied to each database
restored. If the TransLogsToApply parameter is not given, then all transaction logs that apply to the
full backup restored are applied by default (just as the GUI does). You can specify the number of
transaction logs to be applied for every database mentioned in the -Database parameter. The list of
number of transaction logs that are applied must be listed in the same sequence as the databases listed
in the -Database parameter. For example:
-Database db1,db2
might correspond to:
-TransLogsToApply 1,8
which means 1 transaction log backup will be applied to db1, and 8 will be applied to db2.
-ForceRestore [<Boolean>] - Short form: -force
Use this parameter to force the restore of a database based on its state. SnapManager sets it's value to
"true" by default.
-TargetDatabase <String[]> - Short form: -tgDb
Use this parameter to restore a database with a new name. The following example illustrates the
usage:
-tgDb "NewDatabaseName1"," NewDatabaseName2"," NewDatabaseName3"
The parameter defines the new database name to which the original database is restored. The old
database name is defined at the same position in the -Database parameter.
If no new database name is given, the database is restored to the original database name the database
had during backup. If this original name already exists, the name is modified to:
originalDbName__clone, or originalDbName__mount.
-TargetServerInstance <String[]> - Short form: -tgInst
This parameter specifies the name of the new SQL server if you want to restore the database to a new
SQL server. SnapManager takes the source SQL server instance as the default.
-TargetServerMountPointDir <String> - Short form: -tgmpdir
Use this parameter to specify the mount point path or directory of the target server instance in which
the databases are to be cloned or mounted.
-MarkName <String[]> - Short form: -mark
This parameter indicates the marked transaction at which to stop the transaction log recovery.
-MarkTime <String[]> - Short form: -mktm
This parameter specifies a unique timestamp to guarantee the uniqueness of the input restored mark.
-RestoreBeforeMark [<Boolean>] - Short form: -beforemk
112 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
This true or false value indicates whether the specified marked transaction log should be included in
the restore.
-RecoverDatabase <Boolean[]> - Short form: -recoverdb
This parameter indicates whether the database will be fully recovered or left in a partially recovered
state after the cmdlet finishes to facilitate future SQL transaction log restores. This is an array of
booleans, so it must match the same number of elements of the -database array. If the it does not
match the number of elements of the -database array, an error is given. This defaults to $true for all
databases unless the -standbyPath is given, in which case it defaults to $false for all databases.
-StandbyPath <String> - Short form: -standby
This parameter indicates the path to the standby recover file where incomplete transactions are stored
after restoring a full database and its transaction logs. There is no default if you specify this
parameter. The path must be to the standby directory if more than one database shares a LUN. If the
database is on a dedicated LUN, then it must be a specific file. If the -standbypath parameter is given,
the -RecoveryDatabase given must be -RecoverDatabase $False, otherwise it defaults to $false for all
databases if no -RecoverDatabase parameter is specified.
-apicontext - Short form: none
Use this parameter when calling the cmdlet as an API call.
-RestoreArchivedBackup - Short form: -rstarchbkup
Use this parameter to specify using remote backup to perform the clone operation.
-WhatIf - Short form: -wi
This parameter gives you a preview of an operation.
-Confirm - Short form: -cf
This parameter prompts you for confirmation before the actual operation starts.
-AvailabilityGroup <String> - Short form: -ag
This parameter specifies the name of the source Availability Group.
-SynchronousCommit - Short form: -syncCommit
This parameter specifies that replica databases are synchronized to their primary. If not specified,
false is assumed.
-FailoverMode - Short form: -flMd
This parameter specifies that failover occur to the preferred replica, if the primary replica becomes
unavailable. If not specified, false is assumed.
-ReadableSecondary - Short form: -readsec
This parameter specifies read-only access for all of the new secondary databases. If not specified,
false is assumed.
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable,
WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Examples
Example 1: clone-replica -svr 'SQL2012HA2' -inst 'SQL2012HA2\INST2' -ag
'snapmgr2012 ' -tgInst 'SQL2012HA1\INST1'
SnapManager cmdlet guidelines | 113
This command creates a secondary replica for the Availability Group "snapmgr2012" on the
secondary "SQL2012HA1\INST1". Values for -SynchronousCommit, FailoverMode, and
ReadableSecondary are not specified, so the default, false, is used.
Example 2: clone-replica -svr 'SQL2012HA2' -inst 'SQL2012HA2\INST2' -ag
'snapmgr2012 ' -tgInst 'SQL2012HA1\INST1' -SychronousCommit -FailoverMode -
ReadableSecondary
This command creates a secondary replica for the Availability Group "snapmgr2012" on the
secondary "SQL2012HA1\INST1". The replica is created with the properties synchronous commit,
failover mode, and readable secondary set to true.
delete-backup
Name
delete-backup
Synopsis
This cmdlet enables you to delete the SnapManager backup sets using the SnapManager SQL Server
PowerShell command-line interface.
Syntax
delete-backup [-Server <String>] [-UserName <String>] [-Password <String>]
[-ServerInstance <String>] -Database <String> -Backup <String> [-
apicontext] [-ArchiveBackup] [-SnapVaultSecondary] [-WhatIf] [-Confirm]
[<CommonParameters>]
Description
This cmdlet enables you to delete a database depending on the input criteria specified in the
command-line interface. It deletes the specified backup set if it contains the specified database name.
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL Server on which the SQL Server instances reside.
SnapManager takes the local computer name as the default server name. In case of a clustered
configuration, the virtual server name is the default server name.
Using this parameter, you can also specify a particular SQL Server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
Where n is the number of Storage Virtual Machine (SVM, formerly known as Vserver):volume pairs.
Example: -SnapVaultSecondary 3, Vserver1:volume1, Vserver2:volume2,
Vserver3:volume3
Examples
Example 1: delete-backup -d "Db1" -bk "Db1bkup"
This command deletes the backup set Db1bkup where DB1 is the cloned database.
Example 2: delete-backup -d "Db1" -bk "Db1bkup" -ArchiveBackup -vaultsec
2,sn_vserver_dev:test_volume_sec,sn_vserver_dev:test_volume_sec2
This command deletes the backup set Db1bkup from the specified SnapVault secondary volume.
delete-clone
Name
delete-clone
SnapManager cmdlet guidelines | 115
Synopsis
This cmdlet enables you to delete a cloned database.
Syntax
delete-clone [-Server <String>] [-UserName <String>] [-Password <String>]
[-ServerInstance <String>] -Database <String[]> [-JobInstance <String>] [-
ResyncCloneJob <String>] [-ClusterAware] [-TerminateConnection] [-
apicontext] [-WhatIf] [-Confirm] [ <CommonParameters>]
Description
This cmdlet helps you delete a cloned database using the SnapManager PowerShell command-line
interface. Before deleting a clone, make sure all connections to the cloned database are disconnected.
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL Server on which the SQL Server instances reside.
SnapManager takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
Examples
Example 1: delete-clone -svr sql1 -d "Db1"
This command deletes the clone Db1 on Server sql1.
Example 2: delete-clone -svr 'SNAPMGR-25' -inst 'SNAPMGR-25' -d
'DB1__Clone', 'DB2__Clone' -ClusterAware -ResyncCloneJob
"CloneResync_VDISK_W_07-08-2011_13-02-29" -JobInstance "SNAPMGR-19\MARS"
This example deletes the clone of database "DB1" and "DB2" from SQL Server "SNAPMGR-25"
and the corresponding clone refresh job "CloneResync_VDISK_W_07-08-2011_13-02-29" from
SQL agent instance "SNAPMGR-19\MARS".
export-config
Name
export-config
Synopsis
This cmdlet enables you to export the existing configuration information of an SQL server to a
control-file using SnapManager PowerShell command-line interface.
Syntax
export-config [-Server <String>] [-ControlFilePath <String>] [-Section
<String[]>] [-apicontext] [-exportobject] [-WhatIf] [-Confirm]
[<CommonParameters>]
Description
This cmdlet enables you to export the existing configuration information of an SQL server to a
control-file using SnapManager PowerShell command-line interface.
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL server on which the SQL server instances reside.
SnapManager takes the local computer name as the default server name.
SnapManager cmdlet guidelines | 117
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
Examples
Example 1 export-config -Server win-225-166 -ControlFilePath "C:\Program
Files\NetApp\SnapManager for SQL Server\SMSQLConfig_16July_test4.xml" -
Section storage,notification
This cmdlet exports all sections of the existing configuration and settings to the specified control-file.
get-backup
Name
get-backup
Synopsis
This cmdlet allows you to list the backup sets made by SnapManager for Microsoft SQL Server.
118 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Syntax
get-backup [-Server <String>] [-BackupServer <String>] [-UserName <String>]
[-Password <String>] [-ServerInstance <String>] [-Database <String>] [-
SnapInfoDirectory <String>] [-apicontext] [-WhatIf] [-Confirm]
[<CommonParameters>]
Description
This cmdlet enables you to list the backup sets of a particular database by specifying an SQL Server,
an SQL Server instance, or a database set. You can also implement these options with the
SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL Server on which the SQL Server instances reside.
SnapManager takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL Server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
For virtual server instances, specify the virtual server name. For example:
get-backup -server <virtual_server> -ServerInstance <virtual_instance> -d
aa1
The server is connected to a new server where the restore will be performed. But the backup was
originally created on 'SQL2K8VI1', and the instance was 'DE1'.
-Username <String> - Short Form: -usr
This parameter denotes the SQL Server account name. If the login name is not specified,
SnapManager uses Windows NT Authentication.
-Password <String> - Short Form: -pwd
This parameter is the SQL Server account password. SnapManager ignores this parameter if the
parameter -UserName is not specified.
-ServerInstance <String> - Short Form: -inst
This parameter specifies the SQL Server instance where the database is backed up originally.
SnapManager takes the local computer name as the default server instance. For named SQL Server
instances, enter the instance in the following format: HostName\InstanceName
-Database <String> - Short Form: -d
SnapManager cmdlet guidelines | 119
This is a mandatory parameter that specifies the database. If you do not specify the database
parameter, the cmdlet backs up all of the SQL Server instances that are peer instances of the SQL
server in the -Server parameter.
-SnapInfoDirectory <String> - Short Form: -sif
This parameter enables you to list the system and user databases on a remote server.
-apicontext - Short form: none
Use this parameter when calling the cmdlet as an API call.
-WhatIf - Short form: -wi
This parameter gives you a preview of an operation.
-Confirm - Short form: -cf
This parameter prompts you for confirmation before the actual operation starts.
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable,
WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Examples
Example 1 get-backup -svr 'VM-VS-1' -inst vm-vs-1 -d 'ds_test7'
This example retrieves the backed up database on a server instance of the specified server.
Example 2 get-backup -svr snapmgr-62 -inst snapmgr-63\FEDERATED -snapinfo \
\172.17.233.163\ G$\SMSQL_SnapInf
This example shows all the server and user databases on the remote server.
import-config
Name
import-config
Synopsis
This cmdlet enables you to import the configuration information from a SnapManager for SQL
control-file using SnapManager PowerShell command-line interface.
Syntax
import-config [-Server <String>] [-ControlFilePath <String>] [-Section
<String[]>] [-ValidateAndApply] [-AllowLocal] [-UserName <String>] [-
Password <String>] [-ClusterAware] [-DBCCBefore [<Boolean>]] [-DBCCAfter
[<Boolean>]] [-DeleteOriginalDBFile [<Boolean>]] [-UpdateStatisticsTable
[<Boolean>]] [-apicontext] [-WhatIf] [-Confirm] [<CommonParameters>]
Description
This cmdlet enables you to import the configuration information from a SnapManager for SQL
control-file using SnapManager PowerShell command-line interface. You can import sections like
storage, notification, verification, report, backup, scheduled job, snapmirror volume and so on. You
can also control DBCC integrity verification and update statistics table using this cmdlet.
120 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL server on which the SQL server instances reside.
SnapManager takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
Examples
Example 1: import-config -server "sql1" -ControlFilePath "C:\Program Files
\NetApp\SnapManager for SQL\SMSQLConfig_01_23_2007_23.10.20.xml" -Section
backup
This cmdlet validates the backup settings in the control-file. It does not apply the settings to the SQL
server.
Example 2 import-config -Server win-225-166 -Section storage,notification -
ControlFilePath "C:\Program Files\NetApp\SnapManager for SQL Server
\SMSQLConfig_16July_test4.xml" -ValidateAndApply -AllowLocal
This cmdlet validates the imported storage and notification settings from control-file and applies it to
the system.
new-backup
Name
new-backup
Synopsis
This cmdlet enables you to back up the SQL server databases in the SnapManager PowerShell
command-line interface.
Syntax
new-backup [-Server <String>] [-UserName <String>] [-Password <String>] [-
Database <String[]>] [-FederatedGroups <String[]>] [-Mark <String>] [-
MarkDesc <String>] [-LogBkup] [-Verify] [-VerifyServerInstance <String>] [-
VerSvrLogin <String>] [-VerSvrPassword <String>] [-RetainBackups <Int32>]
[-RetainBackupDays <Single>] [-RetainUtmBackups <Int32>] [-RetainUtmDays
<Single>] [-UseMountPoint] [-MountPointDir <String>] [-UseDriveAvailable]
[-AttachDB] [-UpdateMirror] [-NoRetainUTM] [-VerDestVolume] [-
ManagementGroup <String>] [-LogBkupOnly] [-BkupSIF] [-RetainSnapofSnapInfo
<Int32>] [-RetainSnapofSnapInfoDays <Single>] [-TruncateSqlLog [<Boolean>]]
[-TruncateLogs] [-Command] [-RunCommand <String>] [-CommandArguments
<String>] [-CommandServer <String>] [-PreCommand] [-PreCommandPath
<String>] [-PreCommandArguments <String>] [-PreCommandHost <String>] [-
PreCommandErrors <EnumHandleCmdError[]>] [-PostCommand] [-PostCommandPath
122 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Description
This cmdlet enables you to begin the backup-only and backup-with-verify operations. SnapManager
provides a separate cmdlet for verification. You can also implement these options with the
SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL Server on which the SQL server instances reside.
SnapManager takes the local computer name as the default server name. If no default host exists,
SnapManager attempts to use the following as the default:
• The configured verification server for the current machine (in the registry) done in the
configuration wizard, or backup verification settings
• The VerificationServerInstance from the SQL Server being backed up as the verification
server
Using this parameter, you can also specify a particular SQL Server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
To back up all instances on a server that has a default instance, specify the following:
-server <server_name>
To back up all instances on a server that does not have a default instance, specify one of the named
instances on the server in the following format:
-server <host\instance>
For example:
–server 'sql1' -d 'sql1\instance1', '0', 'sql1\instance2', '0'
This parameter is the SQL Server account password. SnapManager ignores this parameter if the
parameter -UserName is not specified.
-Database <String[]> - Short Form: -d
Use this parameter to specify the original database that you want to back up. You can also specify
multiple database names, but only if the databases share a single LUN or multiple LUNs. In this case,
list the databases followed by -Database in following format:
-database sql-server-instance, count-of-databases, "database1"," database2"
If you do not specify the database parameter explicitly, the cmdlet backs up all the databases from all
the SQL Server instances in the host. If storage other than NetApp storage exists on your system, the
cmdlet omits databases located on that storage. Databases incompletely configured or databases in
incompatible states are omitted when not explicitly provided with this parameter.
-FederatedGroups <String[]> - Short Form: -g
This parameter specifies the original federated groups to back up. If you specify multiple federated
groups, the items in the list are separated by commas. If you do not specify the FederatedGroups
parameter, the cmdlet backs up only the databases specified in the Database parameter. If neither
parameter is specified, the cmdlet backs up all SQL server instances that are peer instances of the
SQL server in the -Server parameter.
-Mark <String> - Short Form: -m
Use this parameter to specify a mark name when backing up transaction logs. If you do not specify a
name, the default mark name “snapmgr_sqlbackup_[timestamp]” is used.
-MarkDesc <String> - Short Form: -md
Use this parameter to specify a mark description when backing up transaction logs. If you do not
specify a name, the default mark description “snapmanager sql backup mark generated at
[timestamp]” is used.
-Logbkup - Short form: -lb
Use this option to specify that the transaction logs also need to be backed up after a full backup.
-Verify - Short form: -ver
Use this parameter to verify the backed up databases and logs.
-VerifyServerInstance <String> - Short form: -verInst
This parameter specifies the separate SQL server that is used to run the Database Consistency Check
(DBCC) utility. If you have not specified the -verify parameter, SnapManager ignores this
parameter.
The following example illustrates the usage:
-verInst win-225-161
In this example, the SQL server instance is the local or remote SQL server instance to verify on.
SnapManager takes the configured SQL server instance that is used for verify in client configuration
(registry) as the default SQL server instance.
-VerSvrLogin <String> - Short form: -verlogin
This parameter specifies that SQL Server authentication is used. If not specified, the default Windows
NT Authentication mechanism is used.
-VerSvrPassword <String> - Short form: -verpwd
This parameter is used to input the verification server password. SnapManager ignores this parameter
if the parameter -VerSvrLogin is not specified.
-RetainBackups <Int32> - Short Form: -rtbackups
124 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Use this parameter to specify the number of backups to be retained after the delete operation.
-RetainBackupDays <Single> - Short Form: -rtdays
Use this parameter to specify the number of days you want to retain the backups. SnapManager
deletes backups older than the specified number of days. The parameters RetainBackups and
RetainBackupDays are mutually exclusive.
Use this parameter to specify the host machine name on which the command is to be run before the
operation starts.
-PreCommandErrors <EnumHandleCmdError[]> - Short form: -precmnderrors
Use this parameter to specify how to handle errors on the precommand and the following SMSQL
operation. The ContinueOnError value indicates that the following SMSQL operation is to be
executed anyway. The StopOnPreCmdError value indicates that if a precommand script results in
an error, the remaining SMSQL operation is not attempted.
-PostCommand - Short form: -postcmd
Use this parameter to run a command after the current operation.
-PostCommandPath <String> - Short form: -postcmdpath
Use this parameter to specify the operating system path to the command to be run after the SMSQL
operation starts.
-PostCommandArguments <String> - Short form: -postcmdargs
Use this parameter to specify a list of strings of SnapManager operation-specific information or user
defined arguments to be passed to the program or script.
-PostCommandHost <String> - Short form: -postcmdhost
Use this parameter to specify the host name on which the command is to be run after the operation is
complete.
-PostCommandErrors <EnumHandleCmdError[]> - Short form: -postcmderrors
Use this parameter to specify how to handle errors on the next postcommand run. The
ContinueOnError value indicates that the following SMSQL operation is to be executed anyway.
The StopOnPostCmdError value indicates that if a postcommand script results in an error, the
remaining SMSQL operation is not attempted.
-RunDBCCAfter - Short form: -dbccaf
If the operation includes a database backup, use this parameter if you want to verify the live database
after the backups are performed.
-RunDBCCBefore - Short form: -dbccbf
If the operation includes a database backup, use this parameter if you want to verify the live database
before the backups are performed.
-DBCCOption <EnumDbccOption[]> - Short form: -dbccopt
This parameter specifies options to the DBCC SQL command that are used to validate and verify the
database that is being processed. When you use this parameter, you are explicitly requesting DBCC
options, and the system reads the registry to determine the default DBCC options. The security
access issues for the registry are bypassed when you use this cmdlet option. The parameter uses the
following values:
NOOPTION
NOINDEX
ALL_ERRORMSGS
NO_INFOMSGS (default)
TABLOCK
PHYSICAL_ONLY (default)
For more information about these options, see your Microsoft SQL Server documentation.
-GenericNaming - Short Form: -gen
SnapManager cmdlet guidelines | 127
This parameter sets the naming convention for new backups as generic.
-GenericNamingAdvanced - Short Form: -genadv
This parameter sets the naming convention for new backups as enhanced.
After you use or enable the enhanced naming convention, it is permanent. You should continue to use
-genadv and not revert to using only -gen.
Use this parameter to specify that only the preferred backup replica is backed up. The preferred
backup replica is set from the Availability Group properties in the SQL Server 2012 Management
Studio.
-CopyOnlyLogBackup - Short form: -cpyonlylgBk
Use this parameter to specify that transaction log backups are made as copy-only log backups.
-CopyLogBackupToShare <EnumBackupToShareType[]> - Short Form: -cpylgbkshare
Use this parameter to specify which transaction log backups are copied to the predefined repository
share. The possible values are one of NOTHING_TOSHARE, COPYLOG_TOSHARE, or
COPYLOG_TOSHARE_AGONLY. The repository share is set by the SnapManager for SQL
repository share option.
-RetainShareBackups <Integer> - Short Form: -rtsharebackups
Use this parameter to specify the number of log backups retained in the SnapManager for SQL
repository share.
-RetainShareBackupDays <Integer> - Short Form: -rtsharedays
Use this parameter to specify for how many days log backups are retained in the SnapManager
Repository Share.
If you specify -PreferredBackupReplica along with -Primary, -Secondary, or -
BackupPriority, the -PreferredBackupReplica value is used, and the others are ignored.
<CommonParameters>
This cmdlet supports the common parameters Verbose, Debug, ErrorAction, ErrorVariable,
WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Examples
Example 1: new-backup -Server 'DBServer1' -Verify - VerifyServerInstance
'Snapmgr-50'
This command creates a backup of all databases on the host DBServer1 and verifies the backups
using the remote server Snapmgr-50.
Example 2: new-backup -svr 'VM-VS-1' -d 'VM-VS-1', '4', 'ds_test1',
'ds_test2', 'ds_test6', 'ds_test7' -ver -verInst 'ZEUS-VM1\VERSERVER' -
rtbackups 7 -lb -bksif -rtsifsnap 8 -trlog -noutm -mgmt standard -
ArchiveBackup -VerifyArchiveBackup -ArchivedBackupRetention daily
This example illustrates the creation of a new backup with verification of local backups and archive
backups.
Example 3: new-backup -svr 'VM-VS-1' -d 'VM-VS-1', '2', 'model', 'sm_test' -
ver -verInst 'ZEUS-VM1\VERSERVER' -rtbackups 7 -lb -bksif -rtsifsnap 8 -
trlog -noutm -gen -mgmt standard
This example creates a new backup with the generic naming convention.
Example 4: new-backup -svr 'VM-VS-1' -d 'VM-VS-1', '2', 'model', 'sm_test' -
ver -verInst 'ZEUS-VM1\VERSERVER' -rtbackups 7 -lb -bksif -rtsifsnap 8 -
trlog -noutm -mgmt standard
This example creates a new backup with the unique naming convention.
Example 5: new-backup -Server 'SNAPMGR-63' -Database
'SNAPMGR-63\SQL63INSTANCE1', '2', 'master', 'testdb2',
SnapManager cmdlet guidelines | 129
This example creates a new backup with the federated backup feature.
Example 6: new-backup -Server 'SNAPMGR-63' -Database
'SNAPMGR-63\SQL63INSTANCE1', '2', 'testdb4', 'testdb5'-FederatedGroups 2,
'SNAPMGR-63\SQL63INSTANCE1', '1', 'testdb1', 'SNAPMGR-19\SQLINSTANCE', '1',
'testdb2', 3, 'SNAPMGR-63\SQL63INSTANCE1', '2', 'testdb2', testdb3',
'SNAPMGR-63\SQL63INSTANCE2', '1', 'testdb1', 'SNAPMGR-19\SQLINSTANCE', '2',
'testdb1', 'testdb3',1, 'SNAPMGR-63\SQL63INSTANCE3', 0
This example creates backups on all replicas, because the default is all replicas.
Example 8: new-backup -svr 'SQL2012HA2' -ag snapmgr2012 -mgmt standard
This example creates backups on all replicas with backup priorities within the range of 50 to 70,
because the default is all replicas.
Example 9: new-backup -svr 'SQL2012HA2' -ag snapmgr2012 -prm -sec -bp 50,70
-mgmt standard
reseed-backup
Name
reseed-backup
Synopsis
This command enables you to reseed databases from SnapManager backups.
Syntax
reseed-backup [-Server <String>] [-UserName <String>] [-Password <String>]
[-ServerInstance <String[]>] -Database <String[]> [-Backup <String>] [-
RestoreLastBackup <Int32>] [-VerifyServerInstance <String>] [-VerSvrLogin
<String>] [-VerSvrPassword <String>] [-VerifyDisable] [-DBCCOption
<EnumDbccOption[]>] [-apicontext] [-PreCommand] [-PreCommandPath <String>]
[-PreCommandArguments <String>] [-PreCommandHost <String>] [-
PreCommandErrors <EnumHandleCmdError[]>] [-PostCommand] [-PostCommandPath
<String>] [-PostCommandArguments <String>] [-PostCommandHost <String>] [-
PostCommandErrors <EnumHandleCmdError[]>] [-AvailabilityGroup] [-
RestoreArchivedBackup] [-SnapVaultSecondary] [-IgnoreRepLogs] [-WhatIf] [-
Confirm] [<CommonParameters>]
Description
This cmdlet enables you to reseed a secondary database or a secondary Availability group replica. It
has many other options. You can also implement these options with the SnapManager user interface.
130 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL Server on which the SQL Server instances reside.
SnapManager takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
The first database specified in the -Database parameter refers the first server instance in the -
ServerInstance parameter, the second database in the -Database parameter refers to the second
server instance in the -ServerInstance parameter, and so on.
-Database <String[]> - Short Form: -d
Use this parameter to specify the original database that you want to reseed. You can specify multiple
database names using this option if the databases share a single LUN or multiple LUNs; also, the
backups for multiple databases must all have the same name. Use the following format:
-Database "DatabaseName1"," DatabaseName2"
Note: All the databases selected should be present in the selected Snapshot copy.
restore-backup -restorelastbackup 1
Note: If the value for RestoreLastBackup parameter is 0, SnapManager reseeds the latest
backup. If the value is 1, SnapManager reseed the second-to-latest backup, and so on.
SnapManager cmdlet guidelines | 131
In this example, the SQL Server instance is the local or remote SQL Server instance to verify on.
SnapManager takes the configured SQL Server instance that is used for verify in client configuration
(registry) as the default SQL Server instance.
-VerSvrLogin <String> - Short Form: -verlogin
This parameter specifies that SQL Server authentication is used. If not specified, the default Windows
NT Authentication mechanism is used.
-VerSvrPassword <String> - Short Form: -verpwd
SnapManager ignores this parameter if the parameter -VerSvrLogin is not specified.
-VerifyDisable - Short Form: -verDis
This parameter overrides verification and can disable verification even if the database was not
verified after backup.
-DBCCOption <EnumDbccOption[]> - Short form: -dbccopt
This parameter specifies options to the DBCC SQL command that are used to validate and verify the
database that is being processed. When you use this parameter, you are explicitly requesting DBCC
options, and the system does read the registry to determine the default DBCC options. The security
access issues for the registry are bypassed when you use this cmdlet option. The parameter uses the
following values:
NOOPTION
NOINDEX
ALL_ERRORMSGS
NO_INFOMSGS (default)
TABLOCK
PHYSICAL_ONLY (default)
For more information about these options, see your Microsoft SQL Server documentation.
-apicontext - Short form: none
Use this parameter when calling the cmdlet as an API call.
-PreCommand <String> - Short form: -precmd
This parameter indicates to run a command before the current operation.
-PreCommandPath <String> - Short form: -precmdpath
This parameter specifies the operating system path to the command to be run before the
SnapManager operation starts.
-PreCommandArguments <String> - Short form: -precmdargs
Use this parameter to specify a list of strings of SnapManager operation-specific information or user
defined arguments to be passed to the program or script.
-PreCommandHost <String> - Short form: -precmdhost
132 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Use this parameter to specify the host machine name on which the command is to be run before the
operation starts.
-PreCommandErrors <EnumHandleCmdError[]> - Short form: -precmnderrors
Use this parameter to specify how to handle errors on the precommand and the following SMSQL
operation. The ContinueOnError value indicates that the following SMSQL operation are to be
executed anyway. The StopOnPreCmdError value indicates that if a precommand script get an
error, the remaining SMSQL operation is not attempted.
-PostCommand - Short form: -postcmd
Use this parameter to run a command after the current operation.
-PostCommandPath <String> - Short form: -postcmdpath
Use this parameter to specify the operating system path to the command to be run after the SMSQL
operation starts.
-PostCommandArguments <String> - Short form: -postcmdargs
Use this parameter to specify a list of strings of SnapManager operation-specific information or user-
defined arguments to be passed to the program or script.
-PostCommandHost <String> - Short form: -postcmdhost
Use this parameter to specify the name of the host on which the command is to be run after the
operation is complete.
-PostCommandErrors <EnumHandleCmdError[]> - Short form: -postcmderrors
Use this parameter to specify how to handle errors on the next postcommand run. The
ContinueOnError value indicates that the following SMSQL operation is executed anyway.
StopOnPostCmdError value indicates that if a postcommand script results in an error, the remaining
SMSQL operation is not attempted.
-AvailabilityGroup <String> - Short form: -ag
This parameter specifies the name of the Availability Group to which the databases belong.
-RestoreArchivedBackup - Short Form: -rstarchbkup
Use this parameter to specify using a remote backup to reseed the database.
-SnapVaultSecondary - Short Form: -vaultsec
This optional parameter identifies the backup vault from which you want to reseed a database. If you
do not specify this parameter, SnapManager chooses one of the backup vaults. You use this parameter
in conjunction with the -RestoreArchivedBackup parameter. If you specify this parameter with
the -AvailabilityGroup parameter, then the Availability Group databases must be spread across
the same volumes. Otherwise, do not specify this parameter and SnapManager chooses one of the
backup vaults. This parameter applies to clustered Data ONTAP only.
The syntax for this parameter is as follows, where n is the number of Vserver:volume pairs:
-SnapVaultSecondary n, Vserver:volume
Examples
Example 1: reseed-backup -svr venudhar-2k8vm2 -inst venudhar-2k8vm2 -ag
tstag1 -backup sqlsnap__VENUDHAR-2K8VM2_08-26-2012_20.46.42
This command reseeds Availability Group tstag1. Note that only unhealthy databases or databases
that are already dropped in the given Availability Group are reseeded.
Example 2: reseed-backup -svr venudhar-2k8vm2 -inst venudhar-2k8vm2 -d
db1,db2,db3 -backup sqlsnap__VENUDHAR-2K8VM2_08-26-2012_20.46.42
This example reseeds the specific databases db1, db2, and db3.
Example 3: reseed-backup -svr 'venudhar-2k8vm2' -inst 'venudhar-2k8vm2\heitz'
-ag 'testag' -restorelastbackup 0
This example reseeds all databases that belong to the Availability Group.
Example 4: reseed-backup -svr 'venudhar-2k8vm2' -inst 'venudhar-2k8vm2' -ag
'testag1' -backup 'sqlsnap__VENUDHAR-2K8VM2_08-26-2012_20.46.42' -
RestoreArchivedBackup
This example reseeds databases that belong to the specified Availability Group from a SnapVault
secondary volume chosen by SnapManager. The command does not specify a SnapVault secondary
volume because the Availability Group databases are not spread across the same volumes.
restore-backup
Name
restore-backup
Synopsis
This cmdlet enables you to restore databases from SnapManager backups.
Syntax
restore-backup [-Server <String>] [-BackupServer <String>] [-UserName
<String>] [-Password <String>] [-ServerInstance <String[]>] -Database
<String[]> [-Backup <String>] [-RestoreLastBackup <Int32>] [-
TransLogsToApply <Int32[]>] [-ForceRestore [<Boolean>]] [-
VerifyServerInstance <String>] [-VerSvrLogin <String>] [-VerSvrPassword
<String>] [-VerDestVolume] [-VerifyOnDestVolumes <String[]>] [-
VerifyDisable] [-DBCCOption <EnumDbccOption[]>] [-TargetDatabase
<String[]>] [-TargetLocation] <String[]>] [-TargetServerInstance
<String[]>] [-PointInTime <String[]>] [-RestoreArchive] [-
RestoreFromUnmanagedMedia] [-SnapInfoDirectory <String>] [-MarkName
<String[]>] [-MarkTime <String[]>] [-RestoreBeforeMark [<Boolean>]] [-
RecoverDatabase <Boolean[]>] [-StandbyPath <String>] [-apicontext] [-
134 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Description
This cmdlet enables you to restore a database. It also gives point-in-time restore, verification, force
restore and many other options.
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL Server on which the SQL Server instances reside.
SnapManager takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-BackupServer <String> - Short Form: -bkupsvr
Use this parameter to specify where the backup was originally created. Use the host name or cluster
name where the SQL Server instance resides. This parameter cannot be an SQL Server instance
name. This parameter is optional, and is mainly used for a restore backup created from a different
server. For example, this parameter can be used for DR using SnapMirror. By default, the backup
server is the server currently connected, specified by -Server parameter. For example:
-Server win2k8-248-137 -backupserver 'SQL2K8VI1' -inst 'SQL2K8VI1\DE1' -
TargetServerInstance win2k8-248-137 -SnapInfoDirectory 'H:\SMSQL_SnapInfo'
The server is connected to a new server where the restore will be performed. But the backup was
originally created on 'SQL2K8VI1', and the instance was 'DE1'. The -SnapInfoDirectory
parameter is required when you specify this parameter.
-Username <String> - Short Form: -usr
UserName is the SQL Server account name. It is specified if the SQL Server computer is accessed
using a different account from that used to access the production SQL Server. If not specified the
Windows NT Authentication username will be taken.
-Password <String> - Short Form: -pwd
This parameter is the SQL Server account password. SnapManager ignores this parameter if the
parameter -UserName is not specified.
-ServerInstance <String[]> - Short Form: -inst
This parameter specifies the SQL Server instance where the database is backed up originally.
SnapManager takes the local computer name as the default server instance.
You can specify multiple server instance names here as a comma-separated list. If multiple databases
reside on the same LUN but are owned by different SQL Server instances when you backed them up
originally, use the following format:
-Inst "SQLServerInstance1","SQLServerInstance2"
The first database specified in the -Database parameter refers the first server instance in the -
ServerInstance parameter, the second database in the -Database parameter refers to the second server
instance in the -ServerInstance parameter and so on.
SnapManager cmdlet guidelines | 135
Note: If the value for RestoreLastBackup parameter is 0, SnapManager restores the latest backup.
If the value is 1, SnapManager restores the second-to-latest backup and so on.
Here the SQL Server instance is the local or remote SQL Server instance to verify on. SnapManager
takes the configured SQL Server instance that is used for verify in client configuration (registry) as
the default SQL Server instance.
-VerSvrLogin <String> - Short Form: -verlogin
This parameter specifies that SQL Server authentication is used. If not specified, the default Windows
NT Authentication mechanism is used.
-VerSvrPassword <String> - Short Form: -verpwd
This parameter is used to input the verification server password. SnapManager ignores this parameter
if the parameter -VerSvrLogin is not specified.
-VerDestVolume - Short Form: -verdest
136 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Use this parameter to verify the database on the SnapMirror destination volume. SnapManager sets it
to "false" by default.
-VerifyOnDestVolumes <String[]> - Sort form: -verMirror
Specify this parameter to override the default SnapMirror relationships. Enter a comma-separated list
of the source storage system, the source volume, the destination storage system, and the destination
volume.
-VerifyDisable - Short Form: -verDis
This parameter overrides verification and can disable verification even if the database was not
verified after backup.
-DBCCOption <EnumDbccOption[]> - Short form: -dbccopt
This parameter specifies options to the DBCC SQL command that are used to validate and verify the
database that is being processed. When you use this parameter, you are explicitly requesting DBCC
options, and the system does read the registry to determine the default DBCC options. The security
access issues for the registry are bypassed when you use this cmdlet option. The parameter uses the
following values:
NOOPTION
NOINDEX
ALL_ERRORMSGS
NO_INFOMSGS (default)
TABLOCK
PHYSICAL_ONLY (default)
For more information about these options, see your Microsoft SQL Server documentation.
-TargetDatabase <String[]> - Short Form: -tgDb
When you want to restore the database with a new name, use this parameter
-TargetLocation - Shot Form: -tgloc
This parameter defines the location to which you want to restore a database.
Syntax: -TargetLocation Source_Database_Name, n, Logical_FileName_1,
Desination_FilePath_1,....,Logical_FileName_n, Desination_FilePath_n
parameter, the second value to the second database, and so on. The following example illustrates the
usage:
-pit 2008-10-22T11:50:00, 2008-11-25T22:50:00
Note: The parameter correspondence is one-to-one, that is, the first point-in-time parameter value
specified after the parameter -pit is applied to the first database specified in the parameter -
Database and the second point-in-time parameter value to second database and so on. The values
should conform to the required PointInTime regular expression.
the same volumes. Otherwise, do not specify this parameter and SnapManager will choose one of the
backup vaults. This parameter applies to clustered Data ONTAP only.
The syntax for this parameter is as follows:
-SnapVaultSecondary n, Vserver:volume
Where n is the number of Storage Virtual Machine (SVM, formerly known as Vserver):volume pairs.
Example: -SnapVaultSecondary 3, Vserver1:volume1, Vserver2:volume2,
Vserver3:volume3
Use this parameter to specify how to handle errors on the following post-command run.
ContinueOnError value indicates that the following SMSQL operation will be executed anyway.
StopOnPostCmdError value indicates that if a post-command script get an error, the remaining
SMSQL operation will not be attempted.
-AvailabilityGroup <String> - Short Form: -ag
Use this parameter to specify one or more names of Availability Groups for which this backup
applies.
-IgnoreRepLogs - Short form: -nosharelogs
Use this parameter to ignore the transaction logbackups from SnapManager Repository Share.
-WhatIf - Short form: -wi
This parameter gives you a preview of an operation.
-Confirm - Short form: -cf
This parameter prompts you for confirmation before the actual deletion operation starts.
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable,
WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Examples
Example 1: restore-backup -Server sql1 -Database "Db1"
This command restores the backup of database Db1 on SQL Server sql1.
Example 2: restore-backup -svr 'VM-VS-1' -inst vm-vs-1 -d 'ds_test7' -backup
sqlsnap__VM-VS-1_07-18-2008_03.19.14__Daily
This example restores the specified backup on the given server instance.
Example 3: restore-backup -inst 'SNAPMGR-65' -Database 'dbDef_1' -
restorelastbackup 0 - standbypath u:\temp\standby -recoverdatabase $false
This example specifies the path where incomplete transactions are stored after restoring a full
database and its transaction logs.
Example 4: restore-backup -Server snapmgr-62 -FederatedGroups 1,
snapmgr-62\SQLEXPRESS62, 1, TestData -Mark mypsmark -MarkDesc "mymark
description" -Logbkup
This command restores all the databases belonging to the specified Availability group.
Example 6: restore-backup -svr 'VM-VS-1' -inst vm-vs-1 -d 'ds_test7' -backup
sqlsnap__VM-VS-1_07-18-2008_03.19.14__Daily -RestoreArchivedBackup -
vaultsec 2,vserver1:volume1,vserver2:volume2
This example restores the database ds_test7 from the specified SnapVault secondary volume on the
specified server instance.
140 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
split-clone
Name
split-clone
Synopsis
This cmdlet enables you to split the cloned database from the parent database.
Syntax
split-clone -Database <string> [ ] Database_name [ -Server <string> Server_name ] [ -
UserName <string> User_name ] [ -Password <string> Password ] [ -ServerInstance
<string> ] [ -GetStatus ] [ -ClusterAware ] [ -apicontext ] [ -WhatIf ] [ -Confirm ]
[ <CommonParameters> ]
Parameters
-Database <String[]> - Short Form: -d
Specifies the databases that you wanted to split. Use a comma-separated list of strings:
-d Database 1, Database 2, Database 3, Database 4,....
Multiple database names should be specified only if those databases share a single LUN or multiple
LUNs together. For a multiple database restore, all the selected databases should be present in the
selected Snapshot copy.
-Server <String> - Short Form: -svr
Denotes the name of the host SQL server on which the SQL server instances reside. SnapManager
takes the local computer name as the default server name.
Using this parameter, you can also specify a particular SQL server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
Denotes the SQL Server account name. If the login name is not specified, SnapManager uses
Windows NT Authentication.
-Password <string> - Short Form: -pwd
Specifies the SQL Server account password. SnapManager ignores this parameter if the parameter -
UserName is not specified.
Specifies the SQL Server instance where the database is backed up originally. SnapManager takes the
local computer name as the default server instance. If multiple databases reside on the same LUN but
are owned by different SQL server instances when you backed them up originally, you should use the
following format:
-Inst "SQLServerInstance1","SQLServerInstance2"
SnapManager cmdlet guidelines | 141
The first database specified in the -Database parameter refers the first server instance in the -
ServerInstance parameter, the second database in the -Database parameter refers to the second
server instance in the -ServerInstance parameter and so on.
-GetStatus - Short Form: -gtst
Enables you to view the status of the split job. The split process might take time based on the size and
load on the volume that is being split. You can check the status by using the -GetStatus option in
the cmdlet. This provides you with the status of each of the volumes being split. Each mount point
that has unique volumes is shown in the status; other mount points or disks from the same volume are
ignored, because the split occurs at the volume level.
Note: You are not able to see the status of the split operation through the graphical user interface
(GUI).
Specifies that the cmdlet runs solely on the active node in a cluster environment.
-apicontext - Short Form: none
Example
split-clone -Server snapmgr-63 -Database 'DB1' -getstatus
verify-backup
Name
verify-backup
Synopsis
This cmdlet enables you to verify the SQL Server databases in SnapManager PowerShell command-
line interface.
Syntax
verify-backup [-Server <String>] [-UserName <String>] [-Password <String>]
[-Database <String[]>] [-VerifyServerInstance <String>] [-VerSvrLogin
<String>] [-AttachDB] [-VerSvrPassword <String>] [-UpdateMirror] [-
VerDestVolume] [-VerifyOnDestVolumes <String[]>] [-ManagementGroup
<String>] [-BackupNo <Int32>] [-MountPointDir <String>] [-UseMountPoint] [-
UseDriveAvailable] [-Command] [-RunCommand <String>] [-CommandArguments
<String>] [-CommandServer <String>] [-PreCommand] [-PreCommandPath
<String>] [-PreCommandArguments <String>] [-PreCommandHost <String>] [-
142 | SnapManager 7.2 for Microsoft SQL Server Administration Guide
Description
This cmdlet enables you to perform verification operations. You can mount the Snapshot copies,
manage SnapMirror relationships and destinations, assign management groups for verification and so
on.
You can also implement these options with the SnapManager user interface.
Parameters
-Server <String> - Short Form: -svr
This parameter denotes the name of the host SQL Server on which the SQL Server instances reside.
SnapManager takes the local computer name as the default server name. If no default host exists,
SnapManager attempts to use the following as the default:
• The configured verification server for the current machine (in the registry) done in the
configuration wizard, or backup verification settings
• The VerificationServerInstance from the SQL Server being backed up as the verification server
Using this parameter, you can also specify a particular SQL Server instance. The following examples
illustrate the usage:
-svr win-225-161
-svr sql1
-verInst win-225-161
Here the SQL Server instance is the local or remote SQL Server instance to verify on. SnapManager
takes the configured SQL Server instance that is used for verify in client configuration (registry) as
the default SQL Server instance.
-VerSvrLogin <String> - Short Form: -verlogin
This parameter specifies that SQL Server authentication is used. If not specified, the default Windows
NT Authentication mechanism is used.
-AttachDB - Short Form: -attdb
If the operation includes a database or transaction log verification, use this option when you want to
specify that the databases are to be attached after the verification operation completes.
-VerSvrPassword <String> - Short Form: -verpwd
This parameter is used to input the verification server password. SnapManager ignores this parameter
if the parameter -VerSvrLogin is not specified.
-UpdateMirror - Short Form: -updmir
Use this option to update the SnapMirror destination after the backup or verification operations are
complete, if you are using backups that reside on volumes configured as SnapMirror sources.
-VerDestVolume - Short Form: -verdest
Use this parameter to verify the database on the SnapMirror destination volume. SnapManager sets it
to false by default.
-VerifyOnDestVolumes <String[]> - Short form: -vermirror
Specify this parameter to override the default SnapMirror relationships. Enter a comma-separated list
of the source storage system, the source volume, the destination storage system, and the destination
volume.
-ManagementGroup <String> - Short form: -mgmt
This parameter denotes the backup or verify operation that SnapManager performs on daily, or
weekly, or standard basis. The default management group is standard.
-BackupNo <Int32> - Short Form: -bkno
This option specifies the number of most recent unverified backups to verify. It is an integer with a
default value of 1.
-MountPointDir <String> - Short Form: -mpdir
Use this parameter to specify the mount point directory on which a backup set is mounted during
database verification. This parameter should be used along with the parameter -UseMountPoint.
Note: This option is valid only if you specify the parameter -BkupSIF.
If this parameter is defined, then the backup is taken on all secondary replicas. If BackupPriority is
also defined, then the secondary replicas must also satisfiy the BackupPriority values.
-PreferredBackupReplica - Short form: -preferbkreplica
Use this parameter to specify that only the preferred backup replica is verified. The preferred backup
replica is set from the Availability Group properties in the SQL Server 2012 Management Studio.
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable,
WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Examples
Example 1: verify-backup -svr 'VM-VS-1' -d 'VM-VS-1', '2', 'ds_test6',
'ds_test7' -verInst 'ZEUS-VM1\VERSERVER' -bkno 1 -mgmt standard -
ArchiveBackup -VerifyArchiveBackup -ArchivedBackupRetention Daily
This command initiates deferred verification for the specified database at the specified server, with
one unverified most recent backup. The management groups are standard.
147
Copyright information
Copyright © 1994–2017 NetApp, Inc. All rights reserved. Printed in the U.S.
No part of this document covered by copyright may be reproduced in any form or by any means—
graphic, electronic, or mechanical, including photocopying, recording, taping, or storage in an
electronic retrieval system—without prior written permission of the copyright owner.
Software derived from copyrighted NetApp material is subject to the following license and
disclaimer:
THIS SOFTWARE IS PROVIDED BY NETAPP "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL NETAPP BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
NetApp reserves the right to change any products described herein at any time, and without notice.
NetApp assumes no responsibility or liability arising from the use of products described herein,
except as expressly agreed to in writing by NetApp. The use or purchase of this product does not
convey a license under any patent rights, trademark rights, or any other intellectual property rights of
NetApp.
The product described in this manual may be protected by one or more U.S. patents, foreign patents,
or pending applications.
RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to
restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 252.277-7103 (October 1988) and FAR 52-227-19 (June 1987).
148
Trademark information
Active IQ, AltaVault, Arch Design, ASUP, AutoSupport, Campaign Express, Clustered Data ONTAP,
Customer Fitness, Data ONTAP, DataMotion, Element, Fitness, Flash Accel, Flash Cache, Flash
Pool, FlexArray, FlexCache, FlexClone, FlexPod, FlexScale, FlexShare, FlexVol, FPolicy, Fueled by
SolidFire, GetSuccessful, Helix Design, LockVault, Manage ONTAP, MetroCluster, MultiStore,
NetApp, NetApp Insight, OnCommand, ONTAP, ONTAPI, RAID DP, RAID-TEC, SANscreen,
SANshare, SANtricity, SecureShare, Simplicity, Simulate ONTAP, Snap Creator, SnapCenter,
SnapCopy, SnapDrive, SnapIntegrator, SnapLock, SnapManager, SnapMirror, SnapMover,
SnapProtect, SnapRestore, Snapshot, SnapValidator, SnapVault, SolidFire, SolidFire Helix,
StorageGRID, SyncMirror, Tech OnTap, Unbound Cloud, and WAFL and other names are
trademarks or registered trademarks of NetApp, Inc., in the United States, and/or other countries. All
other brands or products are trademarks or registered trademarks of their respective holders and
should be treated as such. A current list of NetApp trademarks is available on the web.
http://www.netapp.com/us/legal/netapptmlist.aspx
149
Index
.TRN files C
changing to .TRB 34 centralized transaction log backups
setting up a network location 59
A using SnapManager share 59
change list files
application formatting requirements 13, 47
settings 72 clone replica
application settings creating 50
restriction for configuring cloned databases
restriction for changing 72 cloning 51
archived backup deleting 53
cloning databases from 48 splitting 53
AutoSupport cloning databases
enabling 75 limitations for VMDKs 46
Availability Group overview of 46
creating a clone replica 50 cmdlets
Availability Group transaction log backup accessing 91
managing 25 common parameters 91
Availability Groups guidelines 91
considerations for configuring 24 new-backup 121
split-clone 140
commands
B arguments for preoperation and postoperation 76
backing up databases reseed-backup 129
for the first time 16 setting defaults for preoperation and postoperation
using a schedule 19 75
backup comments
cloning databases from 48 how to send feedback about documentation 149
backup deletion Configuration wizard
automatic setting for 22 moving multiple SnapInfo directories to a single
backup management group directory 58
changing 26 configuring
backup operations Availability Groups, considerations for 24
defining settings for 72 email notifications
backup set configuring 55
changing backup management group 26 fractional space reservation policies 82
backup sets considerations
deleting using SnapManager 23 for configuring Availability Groups 24
how SnapManager deletes them 22 control file
prerequisites and requirements for verifying VMDK, exporting 60
on SnapMirror destination volumes 12, 46 importing 60
verifying the initial set 18 sample XML schema 61
verifying with a schedule 21 custom policies
backup types configuring for fractional space-reserved LUNs 82
overview of 14
backups D
how SnapManager backs up
stream-based method database cloning
online Snapshot copy method 8 prerequisites and requirements for VMDK, on
using the Find Backups wizard 35 SnapMirror destination volumes 12, 46
benefits and features database reseeding
overview of 6 on an Availability Group 40
busy Snapshot copy database states
avoiding during a SnapManager operation 26 non-operational 34
deleting 26 operational 34
read-only 34
database verification
modifying settings for 73
Index | 151