Chapter 1. Introducing Data Protection For SQL: Version Migration and Coexistence Considerations
Chapter 1. Introducing Data Protection For SQL: Version Migration and Coexistence Considerations
Note: You can access only one SQL Server per execution of Data Protection for SQL from either the command line or GUI. Perform any backup using data striping in parallel threads using parallel sessions (up to 32 stripes for SQL Server 7.0 and 64 stripes for SQL Server 2000). Automate scheduled backups. See Appendix A, Using the Storage Manager scheduler. Perform expanded restore operations on backup objects such as relocating, restoring to named marks, and partially restoring full backups. See SQL Server database restore. Restore database backups to a different SQL Server. Retain with a backup the information needed to recreate or move SQL databases or files, such as sort order, code page, and Unicode information, or filegroup and file logical and physical names. The meta object information is retained on the Storage Manager Server separately from the backup data objects. Inactivate all active objects, all objects of a particular backup type, or specific objects. Inactivate objects older than a specified number of days. See SQL Server database inactivate. Set automatic expiration of backup objects based on version limit and retention period. See Storage Manager policy requirements and recommendations. Query any local SQL Server or any connected Storage Manager Server for database, status, and configuration information. See Data Protection for SQL query. Monitor results through the Data Protection for SQL activity log and automatically prune the activity log. Set Storage Manager connection information options to Storage Manager Servers. Set Storage Manager security and performance options. See Data Protection for SQL security. Participate in MSCS and Windows 2000 fail-over clusters. See Running Data Protection for SQL on a MSCS. Apply fail-over clustering (for maintenance or restoring the master database) without unclustering. Obtain online context-sensitive, task, and concept help. See Online Help. View online documentation for Data Protection for SQL.
5. Ends the Storage Manager and SQL Server sessions. Notes: 1. Data Protection for SQL can compress SQL data before sending it to the Storage Manager Server. 2. Meta Data: When a backup is performed, Data Protection for SQL retains information about the SQL Server and database. This information is available for query and restore operations after the backup is completed. The information about the names and sizes of the database filegroups and files is stored along with the database data, as a sub-object. This sub-object is referred to as meta data. You will need this "meta" sub-object only when you need information about individual database filegroups and files. Data Protection for SQL offers an expanded range of backup types beyond full and log backups which allow greater flexibility when you do not want to backup an entire database, or when it is not practical to do so due to available backup time or performance requirements. Data Protection for SQL provides six types of backup: Full database backup Data Protection for SQL backs up an entire SQL Server database and the portion of the transaction log necessary to provide a consistent database state. With both full and differential backups, the copy includes enough information from any associated transaction logs to make a backup consistent with itself. The portion of the log included contains only the transactions that occur from the beginning of the backup until its completion. Note: You do not have to do a full backup to constitute the equivalent of a full backup. Backing up all the groups or files in a database as well as its log are recognized as a full backup by the SQL Server. A base backup may be a full, group, file, or set. Differential backup Data Protection for SQL backs up only the data pages in a SQL Server database changed since the last full backup and a portion of the transaction log. Log backup Data Protection for SQL backs up only the contents of a SQL Server database transaction log since the last successful log backup. To do the first log backup, you need to have done a full backup or its equivalent first. Log backups normally follow full backups. The portion of the log included in full and differential backups is not equivalent to a log backup. Additionally, in full and diff backups, the log is not truncated as it is during a log backup. However, a log backup following a full or differential backup will include the same transactions as a full or differential. Log backups are not cumulative as are differential; they must be applied against a base backup and in the correct order. Note: A log backup in SQL Server terms is not equivalent to an incremental backup in Storage Manager terms. File backup Data Protection for SQL backs up only the contents of a specified SQL Server logical file. This can ease the scheduling for backing up very large databases by allowing you to back up different sets of files during different scheduled backups. File, group, and set backups must be followed by a log backup, but a full is not required. Group backup Data Protection for SQL backs up only the contents of a specified SQL Server filegroup. This allows you to back up just the set of database tables and indexes within a specific group of files. Set backup
Data Protection for SQL backs up the contents of specified SQL Server filegroups and files as a unit. For more on backups using the GUI, see Backing up SQL databases, or for backups using the command line, see Backup command or Chapter 6, Command line parameters. See also Data Protection for SQL backup strategy considerations.
Allows you to move individual database files to a new location without having to first create the files. point-in-time Allows you to restore a transaction log backup to a specific SQL transaction date and time. named-marks For SQL Server 2000, allows you to restore a transaction log backup to or before a named point, possibly after a specified point in time, and recover multiple related databases to the same named mark. partial For SQL Server 2000, allows you to restore just enough of a database into a temporary location to copy a specific table to the active database. Further Data Protection for SQL restore functions include the following: Restore a backup using the same number of data stripes used to create the backup, or fewer stripes for SQL Server 2000. Restore with no recovery until the last restore with recovery. |Restore from any available backup version created by Data Protection |for SQL Version 5.1.5 or Version 2.2. Replace an existing database with the restored database (or replace by relocating the restored database). Restore to a different SQL Server or to a standby SQL Server. Automatically restore all backup objects needed to make a restore complete by using smart selection in the GUI. For more on restores using the GUI, see Restoring SQL databases, or for restores using the command line, see Restore command or Chapter 6, Command line parameters.
Query Storage Manager Server You can query the Storage Manager Server in order to list the following: A summary of backup types and quantities for a specific SQL database or all SQL databases All databases from a particular SQL Server backed up to the current Storage Manager Server and node
|Connection information about the Storage Manager Server. The saved configuration of any backup object All or active versions of all backups, a specific type of backup, or a specific backup Files or file groups
Query Data Protection for SQL This lists the values in effect in the Data Protection for SQL configuration file. For more on Data Protection for SQL query using the command line, see Query command and Query. Using the Data Protection for SQL GUI, you can display information about servers, databases and backup objects through the list control pane of backup and restore windows. See Backup list and Restore list for details.
Accept the default sa account and blank password. Use SQL user ID security and specify both the SQL user name and password. With SQL user ID security, the SQL Server administrator provides the logon ID and the password that provides access to the SQL Server. Use a trusted connection and let Windows NT or 2000 authenticate the logon. Note: The SQL logon user or Windows user name must be added to the SQL Server SYSADMIN fixed server role before it can be used by Data Protection for SQL.
3. |The default values that Data Protection for SQL assigns to buffers, |buffersize, and stripes can be changed in the Data Protection for SQL |configuration file. Use the set command or the Edit menu of |the GUI to modify the configuration file. Virtual Device Interface Microsoft SQL Server 7.0 introduced VDI to back up and restore databases. Data Protection for SQL uses this interface as a high-performance alternative to named pipes interfaces used with earlier server versions. LAN Free |Running Data Protection for SQL in a LAN free environment if you are |equipped to do so avoids network constraints. Specify |enablelanfree yes in the Backup-Archive Client options |file (dsm.opt). For information on setting up a LAN free |environment, refer to the Tivoli publication Managed System for SAN |Storage Agent User's Guide.
pages have changed since the last full backup and does not have to process any pages that will not be included in the differential backup. Full plus differential plus log backup This strategy allows for a faster restore scenario by reducing the number of transaction logs that may need to be restored and applied. If, for example, a full backup is done weekly, a differential nightly, and a log backup every four hours, the restore would involve the full backup, a differential, and at most five log backups. However, simply a full plus log backup scheme on the same cycle could require a full plus up to forty-one log backups to be restored (six days times six log backups per day plus up to five backups on the day the full backup was done). File or group backups Use a file backup strategy when it is impractical to backup an entire database due to its size and accompanying time and performance issues. Note that when performing restore operations for a file or file group, it is necessary to provide a separate backup of the transaction log. File or group options can also save both backup and restore time in cases when certain tables or indexes have more updates than others and need to be backed up more often. It is timeeffective to place such data in their own filegroup or files and then back up only those items.
Data striping: If you use data striping, also use Storage Manager Server filespace collocation to try to keep each stripe on a different storage volume. Use the Storage Manager command update stgpool to set this parameter. It is recommended that meta data (counted as a separate filespace) not be allowed to go to tape media. The maximum number of data stripes you can use must be smaller than the maximum supported by the SQL Server and less than the value of the Storage Manager Server txngroupmax option in the dsmserv.opt file. SQL Server 7.0 allows a maximum of 32 data stripes, and SQL Server 2000 allows a maximum of 64.
Clustering:
If you use Microsoft Cluster Server or Windows 2000 clustering for fail-over support, you must install Data Protection for SQL on each cluster node and configure it identically. Additional setup is required to complete the fail-over installation. You must identify a clustered SQL Server by its virtual server name and use that name in Data Protection for SQL to access that SQL Server. See Running Data Protection for SQL on a MSCS for more information. Truncate log on checkpoint option: When you choose to perform only full backups in SQL, you can also indicate that you want to truncate the log after checkpoints. This will prevent the log from growing without bounds. Truncate log option: When you choose to perform a transaction log backup, you can indicate that you do not want to truncate the log. In general, you do not want to truncate the log when rebuilding a corrupt database. This option enables the server to back up the transaction log but does not try to touch the data in any way. It writes all transaction log entries from the time of the last log backup to the point of database corruption. For SQL Server 7.0, the primary file group must be accessible. Collocation: If you use the full plus log backup strategy, you must decide whether to modify Storage Manager storage management policies to ensure that all log backups are stored together on the Storage Manager Server (collocated). This helps improve restore performance by reducing the number of media mounts necessary for restoring a series of log backups. Consult your Storage Manager administrator for details on collocation. Multiple SQL Servers: If multiple instances of SQL Server are running, the additional instances are identified by name. You must use that name in Data Protection for SQL to access that SQL Server. If you want to restore a backup to a different SQL Server, in SQL Server 7.0, that server must have the same sort order, code page, and Unicode configuration as the original server; otherwise, SQL Server 7.0 will reject the restore and issue an error message.
Various Recommendations: You must use the maxnummp parameter on a Storage Manager register node or update node command to allow a node to use multiple sessions to store data on removable media (which requires multiple mount points to be allocated to that node). Set backups are intended for special circumstances. If you plan to back up a set of file groups and files regularly, back up each separately in order to exploit version limits within the management class. You cannot back up the tempdb database. It is a temporary database that is recreated each time the SQL Server is started. SQL databases with the truncate log on checkpoint option (master or msdb) or that use the SQL Server 2000 Simple recovery model do not have transaction logs that can be backed up. Regardless of the frequency of database backups, it is highly recommended that you always run dbcc checkdb and dbcc checkcatalog on a database just before backing it up to check the logical and physical consistency of the database. See your SQL Server documentation for more information on using the SQL Server database consistency checker. Data Protection for SQL provides backup and restore functions for SQL databases and associated transaction logs. However, Data Protection for SQL does not provide a
complete disaster recovery solution for a SQL Server by itself. There are many other files that are part of the SQL Server installation. These files would need to be recovered in a disaster recovery situation. Examples of these files are executable and configuration files. A comprehensive disaster recovery plan can be obtained by using the normal Storage Manager backup-archive client for Windows, together with Data Protection for SQL. Consult your Microsoft SQL Server documentation for more details on SQL Server backup strategy and planning.
Online Help
Data Protection for SQL provides online help you can view from the GUI. Select Help ->Contents in the GUI Toolbar to launch the online help. The online help includes information about: How to configure Data Protection for SQL. How to back up, restore, and activate a database. Conceptual information about Data Protection for SQL. Note: Data Protection for SQL Version 5.1.5 online help does not support word searches for doublebyte character sets (DBCS). Data Protection for SQL also provides an online version of this Installation and User's Guide in compiled HTML and PDF format. These files are installed in the Program Files\Tivoli\TSM\doc directory.
You must invoke the GUI with the /sqlserver parameter. For example, if the SQL Server name on your MSCS is "sqlvs2", the GUI invocation is: tdpsql /sqlserver=sqlvs2 If you install Data Protection for SQL prior to converting to a Microsoft Cluster Server environment, you need to modify the Start menu shortcut for the Data Protection for SQL GUI program. You can do this by adding the /sqlserver parameter to the invocation of tdpsql. For example, if you installed Data Protection for SQL to the default location and your virtual SQL Server name is sqlvs2, you would modify the shortcut to be: "C:\Program Files\Tivoli\TSM\TDPSql\tdpsql.exe /sqlserver=sqlvs2" If you have an ACTIVE/ACTIVE SQL Server cluster environment, you should create a Start menu shortcut for each virtual SQL Server that can run on this machine.