Home > SQL Server Tips > Database Management and Administration > Achieving high availability and disaster recovery with SharePoint databases
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATABASE MANAGEMENT AND ADMINISTRATION

Achieving high availability and disaster recovery with SharePoint databases


Ross Mistry and Shirmattie Seenarine, Contributors
08.28.2009
Rating: -3.89- (out of 5)


Expert advice on database administration
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Microsoft SQL Server is the back-end repository for Microsoft Office SharePoint Server 2007, or MOSS. As a result, it is important to consider SQL Server when designing a high availability and disaster recovery option for your SharePoint databases.

SQL Server offers four options for high availability or disaster recovery: failover clustering , database mirroring, log shipping and replication. Of these technologies, failover clustering and database mirroring are regularly used with SharePoint. Both options offer automatic failover, which is seamless for the MOSS application and its clients.

SharePoint and SQL Server failover clustering

A failover cluster is achieved when two or more servers (also known as nodes) connect to shared disk resources. Failover clustering with SQL Server 2008 provides server level redundancy for an entire instance of SQL Server by leveraging the shared-nothing cluster model included with Windows Server.

When SQL Server is installed on a failover cluster, it appears on the network as a single computer. This is independent of how many physical nodes are actually within the cluster.

During SQL Server failover clustering, one node manages a specific SQL Server instance, a set of disks and any associated services. To achieve high availability within a physical site, all SharePoint-related databases should be placed on a SQL Server instance residing on a failover cluster.

If the node hosting the SQL Server failover cluster application fails, another node within the cluster will take on its responsibilities. This will also be the case if a SQL Server node hosting the MOSS-related databases fails. The failover is automatic and seamless to end users and the SharePoint application.

SharePoint and SQL Server database mirroring

SQL Server database mirroring increases protection and availability for SharePoint-related databases by providing -- and maintaining -- a hot s...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
SQL Server Backup and Recovery
SQL Server Mailbag: Data restoration and DB property management
How to 'do' SQL Server disaster recovery
The keys to database backup protection for SQL Server
Choosing a SQL Server disaster recovery solution
Licensing a standby server for SQL Server replication
Can I encrypt and restore a database backup in SQL Server 2005?
SQL Server errors, failures and other problems fixed from the trenches
Get SQL Server log shipping functionality without Enterprise Edition
SQL Server 2008 backup compression pros and cons
SQL Server backups using SAN database snapshots
SQL Server Backup and Recovery Research

SQL Server Business Intelligence (BI) and Data Warehousing
Using the Pivot transformation in SQL Server Integration Services
DBA career paths could lead to business intelligence
Are data warehouses made for the cloud?
Q&A: Business intelligence gets a facelift in SQL Server 2008 R2
Project Gemini gets a new name, Madison earns buzz
Speed up reports in SQL Server Reporting Services with caching
Data Transformation Services vs. SSIS: The key differences
Using package configurations in SQL Server Integration Services (SSIS)
How SQL Server 2008 components impact SharePoint implementations
Recommended practices for SQL Server Analysis Services aggregations

Database Management and Administration
Using traces in SQL Server Profiler
Meet compliance requirements with improved database security practices
Hardening the network and OS for SQL Server security
Securing the server and database in SQL Server
How SQL Server 2008 components impact SharePoint implementations
Troubleshooting Distributed Transaction Coordinator errors in SQL Server
Clearing the Windows page file and its effect on server performance
Deploying a SQL Server virtual appliance for Microsoft Hyper-V
How to create SQL Server virtual appliances for Hyper-V
Push vs. pull: Configuring SQL Server replication

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
rollback  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


tandby database on a separate instance of SQL Server. This mirrored instance of SQL Server can live in either the same site as the principal server or in another geographical location. Since the mirrored database is a copy of the principal database, all changes made on the principal are automatically synchronized to the mirror.

With database mirroring, a SharePoint database will have continuous support, bolstering operations by decreasing downtime and reducing data loss on a specific database.

Companies have a choice of the following three database mirroring operating modes:

  1. High availability with automatic failover. This mode, also known as the high availability mode, provides maximum availability for a database mirroring session. A witness server is necessary for automatic failover between the principal and mirrored database.
  2. High safety without automatic failover. This mode is very similar to the high availability mode since it provides maximum availability through synchronous operations. However, a witness server is not required as the failover between principal and mirror database. This mode is also referred to as High Safety - Synchronous without a Witness.
  3. High performance. This mode operates in an asynchronous fashion since transactions commit on the principal without waiting for the mirror server to write the log to disk. While this mode offers superior performance, it also increases the possibility of data loss. In this mode, you must force the failover between principal and mirror.

Using mirroring to protect MOSS-related databases allows you to implement database mirroring within or across a farm. From a performance, compatibility and support standpoint, the best practice is to maintain one-to-one mappings of a principal server and mirror server.

The high availability mode is a practical alternative when the principal and mirror server are within the same physical location, while the high performance mode is great for disaster recovery scenarios -- providing the network has at least 1 millisecond latency and 1 GB between SQL Server and MOSS front-end Web servers.

Overall, failover clustering should be used for local server redundancy within a site because a failover cluster provides high availability for the entire SQL Server instance. This translates into protection for all MOSS-related databases within the SQL Server instance. Furthermore, since the failover is automatic and seamless to the SharePoint application, there are no interruptions or downtime to worry about.

Database mirroring is configured at the database level, however, which means you must ensure all databases affiliated with the MOSS high availability strategy are mirrored or you will not achieve high availability and disaster recovery.

Take note: SharePoint options are not mirroring aware. Therefore, it is up to you to ensure front-end Web servers are connected to the active database (the principal).

In addition, combining failover clustering and database mirroring provides maximum availability. For example, all databases can be placed on a failover cluster within a site and then the databases can be mirrored to another SQL Server instance in the disaster recovery site.

Ultimately, Microsoft SQL Server and Microsoft Office SharePoint Server have an intricate relationship. In the end, it is up to you to select how high availability and disaster recovery will be handled in your environment.

[IMAGE]
[IMAGE] SQL SERVER AND MICROSOFT SHAREPOINT
[IMAGE] Part 1: How SQL Server recovery models impact MOSS
[IMAGE] Part 2: Achieving high availability and disaster recovery
[IMAGE] Part 3: The effects of SQL Server components on MOSS


Ross Mistry is a principal consultant at Convergent Computing, a best-selling author and a SQL Server MVP. He installs SQL Server, Active Directory, SharePoint and Exchange Server software within Fortune 500 organizations in the Silicon Valley. His SQL Server and SharePoint specialties include high availability, security, migrations and virtualization. You can follow him on twitter @RossMistry.


Shirmattie Seenarine is an independent technical writer with more than 10 years of experience. She has contributed to many books, including Windows Server 2008 Unleashed, Exchange Server 2007 Unleashed, SharePoint Server 2007 Unleashed and SQL Server 2008 Management and Administration.


Rate this Tip
To rate tips, you must be a member of SearchSQLServer.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SQL Server Development - .NET, C#, T-SQL, Visual Basic
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts