TDP For SQL Installation and Configuration
TDP For SQL Installation and Configuration
V0.1
Shyam Rajamanickam
Contents
1. Installing TDP for SQL............................................................................................................2
2. Configuring TDP for SQL.....................................................................................................11
3. Backup of SQL Databases..................................................................................................18
4. Legacy VS VSS.....................................................................................................................18
5. Schedule SQL Backup.........................................................................................................22
6. Common Errors.......................................................................................................................28
1
TDP for SQL Backup
1. Installing TDP for SQL
1) Double click SetupFCM.exe in the installation package folder, then just follow the wizard.
2
3
4
5
6
7
8
9
10
2. Configuring TDP for SQL
11
12
13
14
15
Query the tdp, tsm and sql to confirm everything works fine. Ensure you login account with the admin
permission of the server and SQL.
16
TSM admin to schedule Full and Weekly Backup .
17
3. Backup of SQL Databases
1) Login into TSM_Client01 and launch DP For SQL Management Console (it requires flash copy
manager license).
2) I will start with flash copy manager. Right click the SQL server and choose properties
4. Legacy VS VSS
3) Configure using Legacy policy , Legacy is preferred than VSS due to following Advantages
- Technology:
Legacy uses SQL VDI interface to backup/restore data, whereas VSS uses Volume Shadow Copy
Service to backup/restore data.
- Backup:
- Restore:
18
Legacy can be restored to any SQL instance.
VSS only can be restored to the same SQL instance. VSS supports fast restore
(granularity is at database level), instant restore (volume level). VSS Fast Restore and VSS Instant
Restore can be performed only from a LOCAL (persistent) VSS snapshot. Any VSS backup to the TSM
Server looks and feels the same as a legacy full backup to the Tivoli Storage Manager server.
- Time:
VSS could be much faster when backing up or restoring the large database. But it is only true if you use
backupdestination=LOCAL which requires that you provision enough storage space that the VSS
Provider requires. If you choose backupdestination=TSM or backupdestination=BOTH, the backup will
take longer (the SQL Server will only be in backup mode for a shorter period in time.)
Source : https://www.ibm.com/support/pages/vss-vs-legacy-backups-microsoft-sql-pros-and-cons
4) Configure a SQL login account with sysadmin right in SQL server. ( This is needed only if backups
are begin manually from SQL or FCM GUI
19
5) Grant NTAuthority for Sysadmin priviledge
20
6) Right click the DB name and choose Full Backup.
6) After the full backup completed. The Log size is almost same, this is because the VSS Full backup
does truncate the logs. To truncate log, a log backup has to be done.
7) Any DB with ‘Truncate log on checkpoint’ attribute means the log only can be truncated by SQL
server itself. It is called simple recovery mode. Open the SQL management studio, and run the
following SQL query against the System Database to find it out.
21
9) Click ‘Show Backup Options’ then change the value to ‘True’ in Truncate field.
10) Right click the database and choose Legacy Full backup. The log backup only can be done after a
Legacy full or differential backup.
22
11) After the full backup completed, right click the database and choose Legacy and Log backup.
1) Login into TSM_Client01 to install client scheduler (you still need to do so if there is an existing one
for the normal BA client)
2) Follow the steps described before, and name it TSM SQL Client Scheduler
23
C:\Program Files\Tivoli\TSM\TDPSql should be like this:
NODename XXXXXX
PASSWORDAccess generate
TCPServeraddress X.X.X.X
TCPPort 1500
HTTPport 1581
SCHEDMODE PROMPTED
MANAGEDSERVICES WEBCLIENT SCHEDULE
@ECHO OFF
rem ==================================================================
rem sqlfull.smp sample command file
rem
rem Sample command file containing commands to do a scheduled full
rem backup of all SQL databases to an IBM Tivoli Storage Manager
rem server.
rem
rem This file is meant to be executed by the IBM Tivoli Storage
rem Manager central scheduler in response to a defined schedule on
rem the IBM Tivoli Storage Manager server.
rem
rem ==================================================================
rem ==================================================================
rem Replace “C:” with the drive where Data Protection for SQL
rem is installed. Update the directory to match the installation
rem directory that you chose when you installed the product.
rem ==================================================================
set sql_dir=C:\Progra~1\Tivoli\TSM\TDPSql
C:
cd %sql_dir%
rem ==================================================================
rem The two lines below put a date/time stamp in a log file for you.
rem Note: You can change “sqlsched.log” to whatever you prefer in
rem lines below.
rem ==================================================================
rem ==================================================================
rem Now call the command-line interface to do the backup:
rem
rem Replace “srvrname” with the name of the options file name you
rem plan to use.
rem
rem If SQL authentication is being used and the SQL login settings have
rem not been stored via the GUI, you must also specify the /sqluser and
rem /sqlpassword options on the command below.
24
rem
rem In this example, we use the ‘*’ to back up all of the databases
rem on the SQL server. Note that database ‘tempdb’ will not
rem be backed up.
rem
rem Note: You can change “sqlsched.log” and “sqlfull.log” to
rem whatever you prefer.
rem ==================================================================
set RC=%ERRORLEVEL%
echo ——————— >> %sql_dir%\sqlsched.log
echo Return code was %RC% >> %sql_dir%\sqlsched.log
echo ===================== >> %sql_dir%\sqlsched.log
exit %RC%
4) Double click the batch file to run a test. Check the sqlsched.log file after it completed.
25
Beginning full backup for database QoEMetrics, 5 of 7.
Full: 0 Read: 5335808 Written: 5335808 Rate: 6,892.53 Kb/Sec
ANS0102W Unable to open the message repository tdpsena.txt. The American English repository will
be used instead.
26
Backup of LcsCDR completed successfully.
———————
Return code was 0
=====================
5) Login to the TSM TESTto create a SQL backup schedule for this job, and associate
TSM_Client01_SQL to this schedule.
27
or check the event on the TSM TESTby running:
28
6. Common Errors
The following error is logged in the Data Protection for Microsoft SQL log file :
ACO5426E The SQL log on does not have the Sysadmin role: CSqlApi::LogonServer:6638:1904
Server:IsSysadmin:false
The QUERY EVENT Tivoli Storage Manager administrative command shows the schedule as
Cause
Windows account running the scheduler service does not have the sysadmin role on the SQL server.
Review the “C:\Program files\Tivoli\TSM\tdpsql\tdpsql.cfg” file. Verify what value is specified for the
SQLAUTHentication option. In this case, the option was not configured and the following default value
was used : [SQLAUTHentication INTegrated
Review the Tivoli Storage Manager client scheduler in Windows and verify which account is used to
run the service. In this case, the scheduler service was configured to run with the “Local System
Account”.
When using the INTegrated option, it means that the userid doing the backup (or the account running
the Data Protection for Microsoft SQL scheduler service) must have the sysadmin role on the SQL
server. When the scheduler service is run with the “Local System Account”, you need to “NT
AUTHORITY\SYSTEM” to the sysadmin role on the SQL server otherwise run the scheduler service
with a different Windows account which has sysadmin role to the SQL server.
Source: http://www-01.ibm.com/support/docview.wss?uid=swg21691523
29