professional documents
home
Profile
Upload
docsters
Blogs
Upload
Acrobat PDF

Comprehensive SQL Server Data Protection with Symantec Backup Exec 11d center doc

WHITE PA P E R : E N T E R P R I S E S ECURIT Y Comprehensive Online Microsoft® SQL Server Data Protection with Symantec Backup Exec™ 11d for Windows® Servers Agent for Microsoft SQL Server SQL Server 7.0 SQL Server 2000 SQL Server 2005Contents Executive summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 What’s new in Backup Exec 11d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 Product highlights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 Support for SQL Server 2000 and 2005 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 Usability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 Reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 Why protect Microsoft SQL Server? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Why do you need the Backup Exec Agent for Microsoft SQL Server? . . . . . . . . . . . . . . . . . . . . . . .9 Protecting SQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 Application protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 Backing up the host server for SQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 Backing up SQL Server’s system databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 Protecting clustered SQL Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 Deployment guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 Database protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Determining your database protection needs for SQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 SQL Server storage layout considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 Business Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 Backup Methods and Their Impact during Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 Off-host backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 Backup Exec advantages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 Deployment guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 White Paper: Enterprise Security Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersContents (cont’d) Other Symantec solutions for protecting SQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Symantec Backup Exec Continuous Protection Server (CPS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Symantec Backup Exec Advanced Disk-Based Backup Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Veritas Storage Foundation for Windows and Veritas FlashSnap . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Veritas Cluster Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28Executive summary Symantec Backup Exec 11d for Windows Servers Agent for Microsoft SQL Server protects business-critical online transaction processing (OLTP), online analytical processing (OLAP), and e-business data in case of application or hardware-based corruption or loss. Designed to be flexible and easy to use, this agent gives SQL Server 7.0, 2000, and 2005 users comprehensive and customizable protection down to the individual file group. Is your backup window too small for a full backup? This agent can perform differential as well as transaction log backups with automatic truncation. Restoring to another SQL Server machine is easy, because Backup Exec Agent for Microsoft SQL Server can redirect a restore. The agent supports rollback and single-pass restores, so administrators can restore databases based on a point in time, rather than a specific backup job. Backup Exec leverages Microsoft’s Virtual Device Interface (VDI) to give users the easiest and fastest way to protect the SQL database. To resolve backup window issues, consider using off-host backup (detailed in the Advanced Disk-Based Backup Option white paper) or continuous protection for SQL (detailed in the Continuous Protection for Microsoft SQL Server white paper). For more information, refer to the white papers located at www.backupexec.com. What’s new in Backup Exec 11d • New backup method: Database snapshot—A new feature in SQL Server 2005 is fully supported and used to quickly revert SQL Server databases; grooming and pruning are automatically maintained in the Backup Exec catalog and job history; a fast and reliable snapshot with very little impact to SQL Server operations. • New backup method: Copy-only backups, also known as out-of-band backups—Operates as a full backup but does not disrupt future full or differential backup rotations. • Simplified point-in-time restores—Simply select a database and time to recover, and Backup Exec assembles the necessary full, differential, and log sequenced backups and identifies any user selection or redirection conflicts or if the database could be restored to an even later date than specified. • Full text catalog support—The text catalog is seamlessly protected and recovered as part of any backup/recovery job. • x64 and i386 concurrent instance protection—Protect x64 and i386 instances running at the same time on the same server. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 6 Key benefits • Non-disruptive SQL Server backup and quick restoration • Supports both 32-bit and 64-bit SQL Server installations • Helps maintain the integrity of vital SQL Server data • Increases the chance of data recovery and minimizes data loss without inhibiting daily database activity • Recovers the database to a point in time or last commit point, allowing for quick and reliable data restores• Continuous data protection for SQL Server—Continuously back up and recover SQL Server databases and file groups to any point in time. Product highlights Support for SQL Server 2000 and 2005 • Data recovery to named transaction log marks within the transaction log, so administrators can restore data up to the point at which the data was last committed to the database • Modeling of SQL database backups that can be targeted to fit the individual needs of the business by performing full or differential backups and restores of the file group • Expanded data protection parameters that include multiple and named SQL Server 2000/2005 database instances running concurrently on the same server • Improved performance of database consistency checks (DBCC) with the ability to perform a physical-only DBCC on SQL Server 2000/2005 databases, which greatly enhances backup speeds without sacrificing backup accuracy • Support for SQL Server database mirror data protection Usability • Transparent integration online or with hot SQL Server backups within regularly scheduled network protection routines • Individual file group backup and restore • Support for SQL Server rollback restores to a specific point in time, rather than a specific backup job • Flexible backup launch options for SQL Server, so backup jobs can be launched immediately or on a schedule • On-disk copy, allowing administrators to direct a copy of data streams to disk media for quicker recovery • Restore with errors, enabling administrators to force a restore of the database without failing the job to a suspended state and to allow error correction prior to installation 7 Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersComprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 8Reliability • A Microsoft Certified solution for the protection and recovery of SQL Server 7.0, 2000, and 2005 • Use of native SQL Server APIs for backups, snapshots, and restores, helping to ensure reliable and consistent SQL Server protection • Verify-only restore, a safety feature that automatically validates SQL Server restore selections and job options prior to executing the restore; the process detects restoration selection errors and offers to fix them • Integration with the Symantec Backup Exec Intelligent Disaster Recovery Option, a rapid, bare-metal system disaster recovery to the last full, incremental, or differential backup, complete with identical configuration of the operating system, user profiles, updates, and other applications • Restore improvements that lead to faster and more reliable SQL Server recovery, including verify-only restore and continue restore on error Why protect Microsoft SQL Server? Microsoft SQL Server is a general-purpose relational database server that can scale from hosting simple databases to supporting clustered, mission-critical business applications such as SAP. In fact, SQL Server is the most popular relational database on Microsoft Windows, with a 51 percent market share (Gartner, May 2005). Simply put, the more your business depends on SQL Server, the more important it is to protect it. To maintain Microsoft SQL Server’s availability and protect its databases, you need a working and thoroughly tested data protection and recovery plan, as well as reliable data protection software. Together, they can help ensure recovery of the SQL Server environment and its databases. The key objectives are to minimize downtime for your database environment and to provide the quickest possible data recovery in the event of a system crash, database corruption, or other forms of data loss. This white paper addresses several aspects of an SQL Server data protection plan, focusing on how Symantec Backup Exec 11d for Windows Servers and the Backup Exec Agent for Microsoft SQL Server can meet the needs of this plan. It also introduces several other Symantec products that enhance SQL Server data protection and availability.9 Why do you need the Backup Exec Agent for Microsoft SQL Server? Protecting a database server such as Microsoft SQL Server requires careful thought and planning to meet the availability needs of your company and its budget. The most common method of formalizing these needs is through service level agreements (SLAs). These agreements are contracts between the users and providers (such as the IT department) that outline such factors as expected services, acceptable downtime, and response time for problem resolution. It is critical that you understand these factors during the design phase of your SQL Server deployment, as they can heavily influence the resources you’ll need to support the SLA. IT needs to consider recovery point objectives (the point to which data must be restored) and well as its recovery time objective (the amount of time it takes to come back online) when looking at an overall data protection and disaster recovery strategy. The basic rule of thumb regarding data protection is the higher the requirement for availability, the higher the cost to achieve that will be. Various technology stops along the way toward higher availability include file by file, backup, snapshots, continuous protection, and various forms of server/database replication. The cornerstone of any availability solution is data protection, and choosing a reliable backup product should be paramount, since it may be your last line of defense against data loss. Symantec Backup Exec together with the Agent for SQL Server easily meets the criteria for fast, flexible, and reliable SQL Server data protection. In fact, Backup Exec has supported Microsoft SQL as well as Windows NT and Windows 2000 since its introduction in 1995, giving Symantec significant experience in this market. Protecting SQL Server With most database applications like SQL Server, data protection can be divided into two main objectives: preparation for disaster recovery where all data (the Windows operating system, SQL Server application, and its databases) is destroyed, and preparation for the restoration of all or some of the user database data. Disaster recovery preparation is comprehensive and includes protecting the complete SQL application (including the Windows operating system, System State, the SQL Server application directory, and SQL Server’s system databases) and SQL Server user databases. SQL Server provides several ways to deploy and organize user databases and logs, along with several methods to back up and restore them. Each choice can affect the granularity and speed at which data can be restored, so it is necessary to understand the pros and cons of each. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersApplication protection At the application protection level, the focus is to protect the SQL Server application files and configuration, which include the SQL Server system databases. The goal is to prepare for cases in which you need to simply restore some SQL Server settings that were erroneously made or to ensure you are prepared for a successful disaster recovery of SQL Server. This section presents requirements, options, and guidelines for protecting SQL Server as well as the benefits of using Backup Exec 11d. Backing up the host server for SQL Server Because SQL Server runs on Windows 2000/2003, protecting the underlying Windows operating system and SQL Server’s files and settings is very important for quick disaster recovery. This includes backing up all files on the volumes on which Windows and SQL Server are installed, and backing up the Windows System State (including the Windows Registry). The backup schedules of this data should be coordinated with the backups of SQL Server user data so that you have a consistent set of data for an easier disaster recovery. With Backup Exec, you can easily protect Windows files, the Windows System State, SQL Server files, and SQL databases (including the system databases) within a single schedulable job, or you can break these tasks up into multiple jobs, as appropriate for your environment, performance needs, schedule, or data retention periods. If disaster occurs to your SQL Server, the Backup Exec Intelligent Disaster Recovery Option can help you quickly bring Windows back online in preparation for recovering SQL Server. Backup Exec 11d clearly displays all SQL Server data and lets you easily integrate database backups into your backup scheme (see Figure 1). Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 1011 Figure 1. Backup Exec presents a unified view of the Windows Server and SQL Server resources for backup and recovery. Backing up SQL Server’s system databases SQL Server uses four system databases for configuration and operation: • Master database—This is the most important of the system databases. It must be backed up. The master database is like the Registry within Windows 2000/2003 to SQL Server; it contains configuration information on SQL Server parameters, user databases, security, stored procedures, and other critical data on which SQL Server relies. While the master database can be backed up like any other SQL database, the restore process is not trivial; it requires that SQL Server be put in a special mode (single-user) before restoration so that no other users are accessing SQL Server, and then returned to normal mode afterwards. Thus the recovery process requires special procedures before and after the restore process to properly recover the master database. • MSDB, model, and distribution databases—These system databases are less critical than the master database, but they should still be routinely backed up. The MSDB database is the scheduling database for SQL Server’s internal operations. The model database is the template from which all new user databases are based. The distribution database contains information Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Serversabout the replication operations (the distribution database exists only if you set up SQL replication). Like the master database, these system databases can be backed up like any other database. They do not require SQL Server to be placed in single-user mode. In addition to fully supporting the backup and restore of SQL Server’s system databases in an easy-to-use interface, Backup Exec 11d includes two features that further automate the protection of system databases: • Automated master database restore—This feature reduces the complexity of a master database restore by automating the manual steps that normally would need to be done. It even supports SQL Server in a clustered configuration. • SQL Server intelligent disaster recovery integration—Normally, recovering SQL Server after a complete disaster recovery requires two steps: recover SQL Server’s system databases, and then recover the user databases. With Backup Exec, this is reduced to one step: recover the user databases. Backup Exec backs up the system databases during file backups as offline files (system databases are usually small) and the Intelligent Disaster Recovery Option restores them, so you can skip a step in the disaster recovery process and save valuable time. Protecting clustered SQL Servers An enterprise-level feature of SQL Server is its tight integration with clustering technology such as Microsoft Cluster Services (MSCS) and Windows Foundation Server (WFS). Clustering technology offers the benefit of clustering two or more Windows 2000 Server or Windows Server 2003 servers (called nodes) to serve as one highly available server in case one server becomes unavailable. In a cluster configuration, SQL Server presents itself as one virtual server that can represent all of the servers in the cluster. To properly protect a clustered SQL installation, the backup application must be able to target the virtual server, so that if one SQL Server fails, backup and restore operations can continue. Deployment guidelines The master database should be backed up before and after any significant changes to the SQL Server configuration (such as adding or deleting databases, users, stored procedures, or changing database storage). Because SQL Server’s system databases (master, MSDB, model, and distribution) are usually small, including them in a routine daily backup can save much time and headache if a restore is needed. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 1213 Disaster recovery tip: To restore a consistent snapshot of backup data during disaster recovery, an effective strategy is to coordinate the full backups of the Windows operating system files, SQL Server application files, and the Windows System State with those of SQL Server’s databases. Also follow this strategy for differential or incremental backups of files with differential and log backups of SQL databases. Backup Exec fully supports up to a 32-node cluster of SQL on Windows 2000 Server and Windows Server 2003 (eight is currently the maximum number of nodes that MSCS offers). Backup Exec can automatically restart database backups that were interrupted because of a failover. Database protection Determining your database protection needs for SQL Server SQL Server is a highly scalable relational database platform that can host a single database of only a few megabytes up to a multi-terabyte set of interdependent databases on which a business-critical application like SAP relies. To meet this scalability challenge, SQL Server offers several ways to deploy and protect databases depending on business and availability needs. The following questions can help you determine your general availability and data protection requirements for today and the future. • Is the data that SQL Server will host under an existing SLA? If so, what are the data protection requirements? • What are the availability requirements? What are the tolerable limits that the database can be offline each hour or each day? • If you experience disk or network failure, what is the acceptable downtime? • What is the acceptable downtime in case of a complete disaster? Will you need to replicate the database and provide clustering to fail over to another site? • In the event of a disaster, which databases should be available first? Who should manage the storage for SQL Server: backup administrators or SQL administrators? Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersThe following questions can help you estimate your specific data protection requirements. • What is the size of each database today? What is the growth rate of the database? • How often does the data in each database change? Do you have tables with static data? • Which hours during the day do your users demand the best performance from SQL Server? Are the other hours available for backup? • Do you have enough space for transaction log growth during heavy database activity? • What are your retention policies and archive procedures? • Do your tape drives have enough capacity and performance to back up or restore your largest databases in the allotted time window? Will you need to consider backup to disk for staging or better performance? SQL Server storage layout considerations Once you understand the SQL Server availability and data protection requirements, consider the storage layout of your SQL Server databases. Following is a brief description of the major parts of SQL Server storage and their usage. Database A database is a collection of information, tables, and other objects. Databases can be contained in one single file, or they can be split up to contain subsets of database data. Databases can be set up to automatically expand when needed. Transaction log A transaction log is a file that contains a running grouped list of all database transactions. There is one log file for each database. SQL Server uses these logs to recover from database errors, and they can be either wholly committed or rolled back (erased) to/from the database. Transaction logs can be considered an incremental backup of a database, since log files contain all changes to a database. Each transaction group has a time stamp and can also be named, allowing a highly granular restore to a particular point in time. Transaction logs must be periodically managed (truncated) to ensure they do not consume all available log disk space. Although databases can be configured to not maintain a log (such as SQL Server’s system databases), doing so is not recommended because then you can restore only to the last full or differential backup. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 1415 File group A file group is a group of database files. By default, a database belongs to a primary file group, but SQL Server lets you split up a database into multiple files. These files can be organized into multiple secondary file groups that provide the following advantages: • Increased storage flexibility—File groups let you place specific data (tables) on volumes that can be easily expanded when storage needs arise. This enables you to divide a large database into smaller files that can be managed more easily. SQL Server fills all database files in a file group evenly, so eventually all will be the same size. • Increased performance—File groups let you split a database’s files across multiple physical drives, which can increase performance of the database. This also balances the load (I/O bandwidth) across multiple drives. In addition, if only one drive fails, you may only need to restore that drive’s data and any log data, rather than the entire database. • Increased availability by isolating database activity—File groups let you place static tables in their own database file, which can then be backed up less frequently than the rest. Business Requirements Backup Methods and Their Impact during Restore Hot (online) backup and restore of the SQL Server user databases SQL Server provides several methods that data protection software vendors can use to back up and restore SQL Server databases while they are online. The appropriate methods depend on the availability and performance needs of the database as well as the way you have chosen to configure the database. This section describes the advantages and disadvantages of each method, including their impact on restore. Full database backup Full backups usually transfer the largest amount of data and thus consume more time and resources than other backup methods. However, they are the foundation on which all of the other backup types are based—you must make full backups. Differential and/or transaction log backups are usually performed after full backups. Restoring a full database backup takes longer than other backup methods, but once you are finished, the database is ready to be brought online. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersDifferential database backup Differential database backup transfers only the changed blocks (extents) within the database created since the last full database backup. Because this method backs up only the changed blocks, it is very space efficient and provides a quick way to back up the differences in a large database from the full database backup. Transaction log backups are usually performed after differential backups. The main advantage of using differential database backups is that during restore, you only need to restore the full database backup and the last differential database backup (since they are cumulative) to fully recover the database. For example, if full backups are performed Sunday and differentials during weekdays, then only two (one full plus one differential) sets of data would be needed to recover from a disaster on Friday. The disadvantage to using only full and differential backups is that you cannot recover to a specific point in time as you can with transaction log backups. Transaction log backup This approach backs up the transaction log for the selected database. Transaction logs can be considered an incremental backup of a database, since log files contain all changes to a database. Transaction log backups are typically larger than differential database backups, but they are nonetheless a very efficient way to incrementally back up the database. There are two versions of transaction log backups: truncated and untruncated. The truncated version deletes the uncommitted transactions from the log after the log backup is successful, while the untruncated one does not. Normally, you would only use the truncated version, as it is the best way to manage the transaction log’s size. The untruncated version is typically used when the database is corrupted or offline with a problem. During a full database disaster recovery, you would normally restore a full database backup, a differential database backup (if one was run since the last full backup), and then any log backups that were done after the last full or differential database backup. The key is that transaction logs should be restored after the last full or differential backup since this lets you stop a restore at a specific point in time and/or a specific transaction group label. (This cannot be done with database restores. You cannot perform point-in-time restores or restore to a transaction mark unless you are restoring a log backup.) Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 1617 File group backup This option backs up the selected database files in the primary or secondary file groups. As noted in the “File group” section, SQL Server lets you divide a database into multiple files. In addition to its performance advantages, this approach lets you tailor the frequency of backup to the data being backed up. For example, you could back up static data much less frequently than dynamic data. However, a full understanding of your database’s topology (what data is in which file and file group) is necessary to determine the risk if you implement multiple schedules for certain files. Transaction log backups and an occasional full database backup (for a full database backup image) are normally performed after file group backups. Although performing a restore of all files in a database’s file groups is equivalent to a full database restore in SQL Server 2000/2005 or SQL Server 7.0, you must have a full database backup on hand to restore first (except in SQL Server 2000/2005, which does not have this requirement). If you are restoring only specific data files, consider the effect of the restored data on the existing tables before starting the restore. After any file group restores, bring all file groups to the same point in time by restoring the transaction logs that followed the restored file group backup(s). Copy-only backup Copy-only backup is commonly known as an out-of-band backup. Its function is to enable a copy of the full backup without affecting future differential or transaction log backups. Copy-only backup essentially maintains the status quo for backup management and any subsequent restore process. The intent is to preserve the normal backup rotation scheme while allowing the administrator to perform a full backup at any time for maintenance or testing purposes. On-disk copy To meet the needs of both the database administrator and the IT department, Backup Exec has added support for splitting the data stream coming from SQL Server into two identical streams. One goes to tape or to backup to disk folder, and the second is sent to a disk file in a directory of the database administrator’s choice. This enables IT backup administrators to archive their backups, while database administrators have a backup copy on disk they can use for testing, restores, and so on. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersDatabase administrators can run restores from the command line using only SQL tools. This removes the common objection that the database administrator must go through the backup administrator to receive access to a backup copy of the database. It improves access and allows database administrators to restore quickly without waiting for the IT department to mount the correct tapes. Backup administrators still have copies of the backup in emergency situations as well as copies available for disaster recovery and archival purposes. Snapshot backup Snapshot backup requires more disk overhead, and the footprint of snapshot backups is almost always larger than that of traditional backups. Database snapshot (DS) is a new feature in SQL Server 2005 Enterprise Edition that enables you to quickly revert a SQL Server 2005 database back to the state it was in when the database snapshot was created, without requiring a full restore of the host database. It is a read-only, point-in-time representation of an existing SQL Server database that looks and behaves like a database but that is a replica of the database with reference points back to actual data within it. Each snapshot is a small file representing block changes to the database. The Backup Exec Agent for SQL Server leverages technology to automate creation, pruning, and reverting to snapshots. What makes the database snapshot unique in Backup Exec is that no data is moved to tape when the database snapshot job runs. The snapshots are contained in the SQL Server database and can be used as recovery selection points should the database need to be reverted. Meanwhile, Backup Exec writes job log and job history information for management of the backups to indicate that the job ran successfully. Unique to Agent for SQL Server is the management of database snapshot data. The agent dynamically manages the job and catalog entries based on pruning rules established with the backup setup. What you see in the catalog is currently available for recovery. If you select a data set that has been removed or pruned from the server, Backup Exec will provide an error message detailing the problem. Note that while Backup Exec treats database snapshots on a first-in, first-out basis, snapshots can be deleted in any order by going directly to SQL Server. Before you can revert to a snapshot, all other snapshots of that database must be deleted, which Backup Exec does automatically as part of the revert process. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 1819 Microsoft Volume Shadow Copy Service (VSS) snapshot can be treated much like a traditional backup; however, using VSS technology to snap the database at any time has little impact on the production server’s operations. It’s a convenient method to create recovery points and move them to tape in the event system or database recovery becomes necessary. Restoring from a snapshot backup can cut restore time in half. With traditional restores, SQL Server 7.0 and 2000 must first create a database equal in size to the backed-up database and fill the database with zeros. Only then is the actual data restored. Snapshot backups do not require this step. However, this is no longer the case with SQL Server 2005, in which Microsoft has eliminated the zero-out process. Database snapshots are desirable for several reasons. Backup Exec takes advantage of the ability to revert a host database to the state at which a snapshot was made. This provides a convenient set of restore points from which administrators can recover the SQL Server 2005 database, essentially creating points in time to which the administrator can recover. The following table compares VSS snapshot and database snapshot backup. Table 1. VSS snapshot and database snapshot feature comparison. VSS Snapshot—SQL Server 2000/2005 Database Snapshot (DS)—SQL Server 2005 Only • It provides a full database copy that can be backed up to tape or disk; equivalent to a traditional backup. • It is generally slightly larger than a traditional backup. • Backup time is comparable to a traditional backup, but there is a negligible impact on SQL Server operations. • Restore time can be half that of a traditional backup on SQL Server 2000 because VSS snapshot eliminates the file zeroing process performed by SQL Server 2000. • It can be used along with differentials and log backups for point-in-time recovery. • VSS snapshots include full text catalogs in the backup restore process. • It is almost instantaneous to create and has an insignificant impact on production servers. • It is not a true backup but rather a point-in-time view of the database that can be quickly rolled back to if needed. • It uses almost zero disk space initially, but the longer it exists and the more the database changes, the larger the DS becomes on disk, eventually reaching the size of the original database. • If the SQL Server host disk dies or the host database becomes corrupted, the DS becomes invalid and useless. • It offers very fast restore depending on the size to which the DS has grown since its creation; Agent for SQL Server allows you to groom/prune the database as snapshots are created. • It creates a read-only copy of the host database that can be used for queries. • All full text catalogs must be regenerated if a restore (revert) is done. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersDatabase size and activity considerations The SQL database backup scheme that works best is based on the size of your environment, the number of transactions processed each day, and the expectations of your users when a recovery is required. To decide which database backup methods to use, consider the following scenarios. Small database environments With relatively small numbers of transactions, consider running a daily full database backup each evening, as well as daily transaction log backups. Or, use the simple recovery model in SQL Server 2000/2005 (or set the truncate-on-checkpoint database option in SQL Server 7.0) and perform a daily full database backup in the evening. Setting the database to this mode causes SQL Server to automatically maintain the transaction log. The downside to this approach is that you lose the ability to restore to a specific time. The upside is that this method will remove transaction log management and keep your backups simple. If you would prefer the option of not losing a whole day’s work, consider adding a differential database backup during lunch or at some other time when the database isn’t busy. Medium database environments Consider running a weekly full database backup, daily differential database backups, and transaction log backups every few hours. Because most large companies have defined requirements on mission-critical backups and restores, your schedule of backups will depend on your requirements. You may need to back up much more or less frequently depending on your SLA. Large database environments In large environments, consider several options. First, consider dividing your database into multiple files within one or two file groups, as outlined in the “File group” section. Try to back up all of the database’s files in the smallest time window possible to maintain consistency between them. Perform transaction log backups at least once each day (some environments back up logs every 10 minutes). If the database architecture lets you back up some data infrequently while concentrating daily backups on dynamic data, it is critical to keep track of which tapes comprise an entire database backup. Consider performing a full database backup periodically to ensure you have a consistent backup of the entire database. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 2021 Another option to consider is off-host backup. Off-host backup solutions provide the benefit of creating software-or hardware-based snapshots that can be split from the production SQL Server, eliminating any backup window. These snapshots are also mounted on the backup server so you can run a high-speed SAN backup as frequently as desired. (See the Advanced Disk-Based Backup Option white paper for complete details.) Figure 2. Backup Exec displays SQL file groups and allows you to easily select the groups you want to include with each backup job. Backup Exec advantages In addition to fully supporting all of the database methods listed in the previous section, Backup Exec offers the following advantages: • Lets an administrator easily view and select this data, along with any other data types, in one schedulable backup job (see Figure 2). This gives you the flexibility of managing jobs per server (for example, Windows, SQL, and Exchange in one backup) or by application (for example, only SQL backups across servers). Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers• Includes ease-of-use features that simplify SQL database restore. If you are selecting a full, a differential, and several transaction log backups for restoration, Backup Exec will automatically apply the restores in the correct sequence and bring the database online. • Offers industry unique “guide me” wizards to help the user determine which SQL backup method is best. Backup Exec offers several restore options to suit your needs. These include the ability to redirect restores to a different SQL instance, SQL Server, or database name; recover to a specific log group label and/or date stamp; recover to various database-ready states (warm standby, no recover, or full recovery); or use the new force-restore feature introduced in this release. Off-host backup Several hardware arrays and volume managers support the concept of volume mirroring (RAID level 1). Windows Server 2003 also supports volume mirroring using VSS technology. A mirrored volume is simply a real-time copy of another volume. Some arrays and volume managers have advanced features that can be manipulated to break off one of the volume copies and mount it on a secondary server. This lets a backup occur on the secondary server without affecting the database server that is still using the original volume. When the backup is finished, the volume can be logically moved back to the original mirror and resynchronized. This backup method is usually performed in enterprise-class data centers that have large, mission-critical databases to protect. SQL Server 2000/2005 supports this backup method by quickly pausing the database so that all files are complete. Only at this time can the mirror be split to create a successful backup. The advantages of a split-mirror backup method are: • Elimination of the backup window problems common to large backups. • Significant reduction of resource usage of the SQL Server. • Potential for significant increase in backup speed, since the backup is simply backing up files and not pulling data through the SQL Server API. This speed can be increased by using many backup devices to back up many database files, allowing a parallel backup of all database files. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 2223 The limitations of a split-mirror backup method are: • Increased complexity, since it is yet another backup type to use, and log backups must still be performed. Also, since split-mirror backups occur outside of SQL Server’s full and differential backups, you must carefully manage what logs you need to restore when split-mirror restores are done. • Larger backup sizes compared with a full database backup, since SQL Server includes space in the files for database expansion. Backup Exec advantages For those organizations that need this advanced backup feature, the Symantec Backup Exec Advanced Disk-Based Backup Option (ADBO) leverages Veritas Storage Foundation™ for Windows, Veritas FlashSnap™, and hardware snapshot providers. These products let companies automatically use volume-mirroring technology to logically copy SQL databases to another server to allow backups. The result is a very low impact database backup, with almost instant recovery and easier disaster recovery. Also, Backup Exec has integrated support for the new ShadowCopy service writers in Windows Server 2003. Backing up or restoring SQL Server 2000/2005 databases via ShadowCopy is as easy as clicking on the desired database. The Backup Exec Agent for SQL Server extends SQL database protection to include NAS configurations, full individual file group backup, differential database and file group backup, transaction log backup, untruncated transaction log backup, advanced transaction log backup options (such as no-recover and standby), and automatic consistency check before and after backup. The Backup Exec Agent for SQL Server also extends SQL recovery to include individual file group restore, automatic master database restore, automatic alternate drive restore, automatic point-in-time log restore including named transactions, read-only recovery support, automatic restore of deleted databases, automatic consistency check after restore, and redirected application restore (including moving data files to specified volumes). All these Backup Exec features are available for both SQL Server 2000/2005 and SQL Server 7.0 configurations using legacy backup APIs. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersUsing the Backup Exec Agent for SQL Server to protect SQL Server is recommended when one of the following is true: • A comprehensive data protection scheme is required (full, differential, transaction log, and file group backup). • SQL Server is configured in a cluster. • SQL Server is configured using NAS. • The database is large. • The database is highly active (in terms of queries and transactions). Using SQL Writer to protect SQL Server 2000 on Windows Server 2003 is appropriate when all of the following are true: • Full backups only are required. • The database is configured using the simple recovery model. • The database is not configured in a cluster. • The database is not configured using NAS. • The database is small and not highly active (in terms of queries and transactions). Note: Intermixing of Backup Exec Agent for SQL Server differential, transaction log, and file group backups with SQL Writer backups in a SQL Server 2000 protection scheme on Windows Server 2003 is neither recommended nor supported. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 2425 Deployment guidelines Try to coordinate the database backups with the Windows operating system and SQL Server system database backups so you have a fairly consistent set of data within a small time window. Following this guideline will help you during disaster recovery. Be sure to run database consistency checks. SQL Server offers several types of checks to ensure that a database is consistent and healthy. Run at least the physical-only check before each database backup to help ensure the copy you have backed up is valid. Options include: • Full consistency check, including indexes—This check significantly slows down SQL performance, so it should be performed during off-peak hours. • Full consistency check with no index check—While not as thorough as a full consistency check, this check is faster and can be done during peak hours with little impact on system performance. • Physical-only check (available in SQL Server 2000/2005 only)—This low-overhead check verifies the integrity of the physical structure of the page and record headers, as well as the consistency between the pages’ object ID and index ID and the allocation structures. This fast check finds most of the common database consistency problems. Disable the SQL database option “Select into/bulkcopy” so transactions can’t be entered into the database without being entered in the transaction log. Non-logged operations break the sequence of transaction log backups, and database restoration using database and transaction log backups will be successful only if there is an unbroken sequence of transaction log backups after the last database or differential backup. If you have enabled this option, run a database or differential backup and then start running log backups again to save any changes necessary to restore the database. Backup Exec lets you easily integrate file backups with database backups, so you can better maintain sets of data for disaster recovery preparation. In addition, it gives you complete control over SQL database consistency checks. You can select which type of check you want to do before or after the backup or restore. Backup Exec gives you full control of SQL options and even provides a wizard to guide you through the process (see Figures 3 and 4). If the check fails before backup, you can stop the backup or continue; either way, Backup Exec will log or alert the error. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersFigure 3. Restore Job Properties screen. Figure 4. Backup Job Properties screen. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 2627 Other Symantec solutions for protecting SQL Server Backup Exec provides additional methods of protecting SQL Server, as do other solutions from Symantec. Other solutions keep SQL Server available (via clustering, replication, and snapshot management) and backed up (via Backup Exec and Veritas NetBackup™). Symantec Backup Exec Continuous Protection Server (CPS) This complementary application (supplied with Backup Exec 10d and later) combines continuous file protection and access to previous versions via periodic snapshots of SQL Server data. It creates faithful copies of source files from the SQL Server application (source) to a backup destination folder on a protection server (CPS server) target. A system administrator creates a CPS backup job to replicate copies of data from a SQL Server machine to a protection server. CPS can also be used to quickly restore the data from the protection server back to the original business server or to an alternate business server. For more detailed information, refer to the Protecting Microsoft SQL Server Databases with Symantec Backup Exec Continuous Protection Server white paper. Symantec Backup Exec Advanced Disk-Based Backup Option This option, when used with the Backup Exec Agent for SQL Server, can dramatically improve your overall SQL Server data protection strategy. It lets administrators create a mirror of their SQL data, break off the mirror, mount it on their backup server (thus backing up locally), and then resynchronize the mirror with the SQL Server at the end of the backup. This powerful feature eliminates dependencies on backup windows without slowing down SQL Servers during backup. Veritas Storage Foundation for Windows and Veritas Storage Foundation FlashSnap These Symantec solutions are for organizations that require uninterrupted and consistent access to mission-critical data. They let system administrators more efficiently manage storage environments by virtualizing storage with logical volume management. Logical volume management removes the physical limitation of storage, so administrators can build higher performance, highly available storage configurations. Once virtualized, the storage can be managed more flexibly, so it can be kept online during many of the operations in which the server previously had to be taken offline. This greatly simplifies disk administration tasks, reducing cost of ownership. Storage Foundation for Windows (advanced volume management technology for Windows Server 2003) eliminates planned and unplanned downtime, helps ensure quick recovery from failures, provides optimized storage I/O performance, and protects current storage investments while providing freedom of choice for future storage hardware investments. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersVeritas™ Cluster Server Veritas Cluster Server is the industry’s leading open-systems clustering solution. It eliminates both planned and unplanned downtime, facilitates server consolidation, and effectively manages a wide range of applications, including SQL Server, in heterogeneous environments. Supporting up to 32 nodes, Veritas Cluster Server has the power and flexibility to protect everything from a single critical database instance to very large multi-application clusters in networked storage environments. Conclusion The range of options for backing up SQL Server data can make administration of the backup process very complex. That’s why organizations need to create a data protection plan and select a reliable backup product that is suited to their environment. Formulating a data protection plan should include the following steps: • Determine your SQL Server SLA needs. • Research the SQL Server solutions and determine which ones best suit the needs defined in your SLA. • Create a data protection plan that outlines how the solutions will work with your plan. • Implement the plan and closely monitor the results. Because SQL Server implementations can scale to very large and complex installations, you may need to consider consulting services to help ensure that your implementation is scalable and can be easily recovered in case of disaster. Regardless of the size or complexity of the SQL Server, the Symantec Backup Exec 11d Agent for Microsoft SQL Server offers a highly reliable and easy-to-use solution to protect your data. When disaster strikes, the Backup Exec Intelligent Disaster Recovery Option can help get SQL Server back up and running fast. And when the fast is not fast enough, Symantec offers several other solutions to keep SQL Server available at a higher state than restore utilities can achieve. Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 2829 Comprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows ServersComprehensive Online Microsoft SQL Server Data Protection with Symantec Backup Exec 11d for Windows Servers 30For specific country offices and contact numbers, please visit our Web site. For product information in the U.S., call toll-free 1 (800) 745 6054. Symantec Corporation World Headquarters 20330 Stevens Creek Boulevard Cupertino, CA 95014 USA +1 (408) 517 8000 1 (800) 721 3934 www.symantec.com Copyright © 2007 Symantec Corporation. All rights reserved. Symantec, the Symantec Logo, Backup Exec, FlashSnap, NetBackup, Veritas, and Veritas Storage Foundation are trademarks or registered trademarks of Symantec Corporation or its affiliates in the U.S. and other countries. Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other names may be trademarks of their respective owners. Printed in the U.S.A. 01/07 11851971 About Symantec Symantec is a global leader in infrastructure software, enabling businesses and consumers to have confidence in a connected world. The company helps customers protect their infrastructure, information, and interactions by delivering software and services that address risks to security, availability, compliance, and performance. Headquartered in Cupertino, Calif., Symantec has operations in 40 countries. More information is available at www.symantec.com.
rate this doc
email this doc
embed this doc
add to folder
digg reddit stumble delicious
flag this doc
125
3
not rated
0
2/1/2008
English
search termpage on Googletimes searched
Preview

Comprehensive SQL Server Data Protection with Symantec Backup Exec 11d[1]

anonymous 2/1/2008 | 78 | 3 | 0 | technology
Preview

SQL Server Advanced Protection and Fast Recovery

anonymous 2/1/2008 | 186 | 9 | 0 | technology
Preview

Performance of Microsoft SQL Server 2005

anonymous 2/1/2008 | 193 | 19 | 0 | technology
Preview

Deploying Microsoft SQL Server 2005 Business Intelligence and Data Warehousing

anonymous 2/1/2008 | 213 | 24 | 0 | technology
Preview

Microsoft SQL Server 2005 Deployments and tests in an iSC SI SAN

anonymous 2/1/2008 | 100 | 4 | 0 | technology
Preview

Microsoft SQL Server 2005 Deplyments and tests in an isc SI SAN

anonymous 2/1/2008 | 140 | 3 | 0 | technology
Preview

Disk Based Data Protection Achieving Faster Backups Restores and Reducing Backup Windows

anonymous 2/1/2008 | 240 | 7 | 0 | technology
Preview

Nearstore VTL Integration with Symantec NetBackup

anonymous 2/1/2008 | 127 | 15 | 0 | technology
Preview

Longhorn Exchange 2007 vista Sql Server 2007 How Can You Take Advantage of Microsoft Upgrade Cycle

anonymous 2/1/2008 | 106 | 1 | 0 | technology
Preview

Remote Server Management for Small and Mid Sized Server Rooms and Data

anonymous 2/1/2008 | 120 | 6 | 0 | technology
Preview

Remote Server Management for Small and Mid-sized Server Rooms and Data

anonymous 2/1/2008 | 109 | 4 | 0 | technology
Preview

Symantec Backup Exec 11d for Windows Servers

LisaB1982 4/6/2008 | 347 | 5 | 0 | technology
Preview

Data Protection Guide for Microsoft Environments

anonymous 2/1/2008 | 79 | 0 | 0 | technology
Preview

Deduplicaiton in Data Protection Assessing the Benefits

anonymous 2/1/2008 | 99 | 2 | 0 | technology
Preview

Duplication in Data Protection assessing the Benefits

anonymous 2/1/2008 | 97 | 1 | 0 | technology
backupexec cps mirror31
 
review this doc