Professional Documents
Culture Documents
2. Define policy:
tsm: SERVER1>define policy sql sql_pol
ANR1510I Policy set SQL_POL defined in policy domain SQL.
tsm: SERVER1>
4. Ensure that you have defined one or more storage pools. For an overview of storage pool types and instructions about
using the command line to define storage pools, see DEFINE STGPOOL. To use the Operations Center to define storage
pools, follow the instructions in Configuring storage.
6. Activate policy:
tsm: SERVER1>activate policy sql sql_pol
ANR1554W DEFAULT Management class SQL_MGMTCLASS in policy set SQL SQL_POL does not have an ARCHIVE copygroup:
files will not be archived by default if this set is activated.
Do you wish to proceed? (Yes (Y)/No (No)) y
ANR1554W DEFAULT Management class SQL_MGMTCLASS in policy set SQL SQL_POL does not have an ARCHIVE copygroup:
files will not be archived by default if this set is activated.
ANR1514I Policy set SQL_POL activated in policy domain SQL.
tsm: SERVER1>
Tip: The VSS Requestor, Data Protection for SQL, and the Always On node are registered on the IBM Spectrum Protect server along with their proxy
relationships in a subsequent step. This is done by using a macro during the Data Protect for SQL configuration:
➢ The VSS Requestor node is the node that communicates with the VSS service to access the SQL server data. (In this document, we use SQLNODE1.)
➢ The Data Protection for SQL node is the node that is used to store the Data Protection for SQL backups of databases that are not part of the Always On
Availability Group. (In this document, we use SQLNODE1_SQL.)
➢ The Always ON node is used when availability databases are backed up in an Always On Availability Group. (In this document, w e use SQLCLUSTER.)
2. Click Install.
If you are prompted to do so,
restart the computer.
3. Click Next.
4. Click Next.
7. Click Install.
8. Click Finish.
2. Click OK.
3. Click Install.
If you are prompted to do so,
restart the computer.
4. Click Next.
6. Click Next.
7. Click Install.
8. Click Finish.
3. After the requirements check is complete, take action on any outstanding items.
(In this example, the VSS Hardware provider is not installed. Therefore, warnings
about VSS Providers can be ignored.)
4. Click Next.
5. Click Next.
6. Enter the IBM Spectrum Protect server address (DNS name or IP address) and port
(default: 1500) and click Yes to configure the IBM Spectrum Protect server.
7. Enter the IBM Spectrum Protect administrator credentials.
8. To modify the macro, click Review/Edit.
32 © 2017 IBM Corporation
Data Protection for SQL Server configuration
This macro is for the first node in the cluster, SQLNODE1. This macro is for the second node in the cluster, SQLNODE2.
12. To monitor the configuration process, click Show Details. Ensure that the
configuration status is Passed for all items and click Next.
36 © 2017 IBM Corporation
Data Protection for SQL Server Configuration
13. Ensure that the Run VSS diagnostics when this wizard exits box is selected
and click Finish.
Tip: If VSS backups exist, this process deletes all of them.
37 © 2017 IBM Corporation
Data Protection for SQL Server configuration
14. Select the volumes that you would like to test and click Next.
16. Ensure that a test status of Passed is displayed for all items
and click Next.
40 © 2017 IBM Corporation
Data Protection for SQL Server configuration
18. On the Data Protection for SQL console GUI, right-click the SQL server
and click Properties.
20. In the left pane, click SQL Login, select the appropriate authentication method, and click Apply.
Tip: The preferred method is to create a Windows Domain User account as a service account that has full access to
the SQL server (and is a member of the sysadmin group) to perform backup and restore functions.
44 © 2017 IBM Corporation
Data Protection for SQL Server Configuration
21. In the left pane, click General and specify the name of the SQL server if it is not the default instance.
VSS backup is set as the default backup method.
22. If you prefer to use the previous backup method as default, clear the Use VSS backup as the default
backup method check box.
Requirement: When using a named instance, you must specify local-computername\instance.
45 © 2017 IBM Corporation
Data Protection for SQL Server Configuration
23. Validate the scheduled backup preferences. To edit the preferences, click the drop-down arrow, select the
appropriate preferred replica backup preference, and click Apply.
46 © 2017 IBM Corporation
Data Protection for SQL Server configuration
24. Verify that Data Protection for SQL is configured properly. Click the Automate tab
and select the Command Line option.
47 © 2017 IBM Corporation
Data Protection for SQL Server configuration
25. In the command line pane, type query tsm and click the red check mark to execute
the command. Ensure that you see rc=0.
26. In the command line pane, type query tdp and click the red check mark
to execute the command. Ensure that you see rc=0.
27. In the command line pane, type query sql and click the red check mark
to execute the command. Ensure that you see rc=0.
When you start a backup operation by using the GUI, you can run the operation on either
the primary or secondary node. Ideally, run the backup operation on the secondary node in the cluster.
Tip: In the example, you see that the WideWorldImporters database on the secondary replica
is in a sync state of synchronized.
On the Task List tab, monitor the backup progress until the State column displays
Completed and the Result column displays Succeeded.
54 © 2017 IBM Corporation
Restoring the SQL Database
by Using the GUI
You can restore a single database or multiple databases (including those in an Always On
Availability Group) to the original location.
Ensure that any databases that you plan to restore no longer exist.
Procedure
2. In the Name field, enter a meaningful name for the schedule and click Next.
1. Confirm the entries in the dsm.opt file in the C:\Program Files\Tivoli\TSM\TDPSql directory on the
SQLNODE1 and SQLNODE2 nodes as follows:
NODENAME SQLNODE1_SQL Your SQL node name
PASSWORDACCESS GENERATE
TCPSERVERADDRESS CSIPDC ensure that you specify the correct IBM Spectrum Protect server
TCPPort 1500
HTTPport 1581
CLUSTERnode yes
2. Install the IBM Spectrum Protect Scheduler Service on each node in the cluster by issuing the following
command:
C:\Program Files\Tivoli\TSM\baclient>dsmcutil install sched /name:”SP Client Scheduler - SQL” /optfile:”C:\Program
Files\Tivoli\TSM\TDPSql\dsm.opt” /autostart:yes /node:sqlnode1_sql /password:T_3_m_p_P_w /errorlog:”C:\Program
Files\Tivoli\TSM\TDPSql\dsmerror_sql.log” /schedlog:”C:\Program Files\Tivoli\TSM\TDPSql\dsmsched_sql.log”
/startnow:yes /ntaccount:Administrator /ntdomain:CSI /ntpassword:xxxxxxxxx
Requirement: Ensure that you modify the /node value accordingly for sqlnode2_sql.
Tip: The previous example assumes that the user is defined in Active Directory (CSI\Administrator), which has sysadmin rights in SQL.
For this reason, the values /ntaccount:Administrator and /ntdomain:CSI are used.
TSM Windows NT Client Service Configuration Utility TSM Windows NT Client Service Configuration Utility
Command Line Interface – Version 8, Release 1, Level 0.0 Command Line Interface – Version 8, Release 1, Level 0.0
(C) Copyright IBM Corporation, 1990, 2016, All rights (C) Copyright IBM Corporation, 1990, 2016, All rights
Reserved. Reserved.
Last Updated Nov 11 2016 Last Updated Nov 11 2016
TSM Api Version 8.1.0 TSM Api Version 8.1.0
Command: List Installed TSM Client Services Command: List Installed TSM Client Services
Machine: SQLNODE1(Local Machine) Machine: SQLNODE2(Local Machine)
1 TSM Client Service was located. 1 TSM Client Service was located.
1. To create a SQL full backup script, leverage a sample script. On the Microsoft SQL server,
double-click the sqlfull.smp file by using the WordPad program. The file is located in the
C:\Program Files\Tivoli\TSM\TDPSql directory.
2. Create a Windows Command Script by clicking Save as and typing sqlfull.cmd.
3. Edit the sqlfull.cmd file and modify the following line:
tsm: SERVER1>
tsm: SERVER1>
9. Optionally, you can view more detailed information about the backup operation in the C:\Program
Files\Tivoli\TSM\TDPSql\sqlsched.log file. The content should look similar to the example.