<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Manhar Sharma</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/manhar/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/manhar/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 04:11:01 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Disaster Recovery for SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/manhar/disaster-recovery-for-sharepoint-2010</link>
      <pubDate>Mon, 29 Oct 2012 17:57:00 GMT</pubDate>
      <dc:creator><![CDATA[Manhar Sharma]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/manhar/2012/10/29/disaster-recovery-for-sharepoint-2010/</guid>
      <description><![CDATA[What is Disaster Recovery:
Disaster recovery is a approach which consists of the precautions/steps...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;"><strong>What is Disaster Recovery:</strong></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Disaster recovery is a approach which consists of the precautions/steps taken so that the effects of a disaster will be minimized and the organization will be able to quickly resume back. </span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">When one of the web application, site collection or a Web Front End goes down this does not mean it is a disaster recovery situation. DR approach Is used when the entire farm goes down. </span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Approaches/models varies between different organization depending on&nbsp; cost,&nbsp; customizations,&nbsp; Recovery time,&nbsp; Recovery Point, size of data and other factors.</span></span></p>
<p><strong><span style="font-size: small;">Scenario:</span></strong></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">You have a SharePoint 2010 Farm which is running some business processes. You want to be prepared for replicate of the SP farm for disaster recovery scenarios so in case of any Disaster you can bring your farm back to online in minimum data loss,&nbsp; least failover time and also cost effective.<br />Model used here is Hot Stand By it has minimum Recovery Time to bring the farm online. <br />Hot StandBy Sharepoint 2010 Disaster Recovery can be done by different ways :- Log Shipping,&nbsp; Mirroring.<br />In this article I have configured the DR using the log shipping&nbsp; (more preferred).<br /></span></span></p>
<p><span style="font-size: small;"><b>Log Shipping in DR:</b></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Log Shipping&nbsp; performs three Task to perform the operation : Backup Transactional Logs, Copy these logs to secondary Server and Restore the log backup to the database. <br />2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Each task creates a Job, all the jobs run in regular interval scheduled.<br />3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The primary server instance runs the backup job to backup the transaction log on the primary database and then it places the log backup in the primary log backup file location.<br />4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The secondary server instance runs its job to copy the primary log-backup file to its own local destination folder.<br />5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Now secondary server run its own restore job to restore the log backup from destination folder to secondary database<br /></span></span></p>
<p><span style="font-size: medium;"><span size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span size="3"><span style="font-family: Calibri;" face="Calibri"><span style="text-decoration: underline;">Points to Note:-</span></span></span></span></p>
<ul>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Log Shipped Databases can be attached to web application while they are log shipping.</span></span></li>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Multiple Secondary Database can be configured in log shipping database.</span></span></li>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Log shipping Database can be queried if it is in standby Mode.</span></span></li>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">This is a Low Cost solution.</span></span></li>
</ul>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: medium;" size="3"><span style="font-family: Calibri;" face="Calibri"><span style="text-decoration: underline;">Limitations:</span></span></span></p>
<ul>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Chances of some amount of data loss is always.</span></span></li>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">By default, the failover process for log shipping is manual. You can create scripts to automate failover. </span></span></li>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Database must use the full or bulk-logged only to configure log shipping database. </span></span></li>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Database account need to have control on the shared path.</span></span></li>
<li><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Bit more complex the mirroring.</span></span></li>
</ul>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="text-decoration: underline;"><span style="font-size: small;"><b>Before you Start:</b></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;In the example we are considering that both Farm(Production and DR) are part of same Domain.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b><span style="text-decoration: underline;">Preparing the farm</span></b></span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="64">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 1.</span></span></p>
</td>
<td valign="top" width="1112">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Before you start installing and configuring the new sharepoint farm make sure all the new DR Servers configuration are same&nbsp; like==&gt;&nbsp; OS version, Security patches and Hot Fixes as of Production Servers.&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="64">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 2.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
<td valign="top" width="1112">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Install and configure a new sharepoint server 2010 farm, keep the same version of Service Pack and CU for SharePoint and SQL.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b>&nbsp;Check SharePoint Build version</b>:&nbsp; Launch Central Administration | System Settings | Servers in Farm | Check Build Version Example: &ldquo;14.0.6029&rdquo;</span></span></p>
<p><span style="font-family: Calibri;" face="Calibri"><span style="font-size: small;" size="3"><b>&nbsp;Check SQL Server version</b>:&nbsp; Run this query on SQL Management Studio: </span></span><span style="font-size: small;" size="3">&nbsp;'<span style="font-family: Calibri;" face="Calibri">Select&nbsp; @@version'</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="64">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step3.</span></span></p>
</td>
<td valign="top" width="1112">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Plan for service accounts (Farm admin, Setup accounts, Application pool accounts and others.)</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="64">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step4.</span></span></p>
</td>
<td valign="top" width="1112">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Primary SQL Server has to write transactions to a network path\ backup folder , so make sure SQL Prod account has read and write access to this network share.&nbsp; </span></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b><span style="text-decoration: underline;">&nbsp;SharePoint supports Log Shipping for following Databases:</span></b></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Config DB and Admin Content DB are not supported to be log shipped. You should create a new Configuration Database in DR farm (Same Configuration Database cannot be shared or used in two different farms)</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<table style="width: 440px; height: 514px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b>Databases Type</b></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
<td valign="top" width="220">
<p align="center"><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b>Supports Log Shipping</b></span></span></p>
<p align="center"><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b>&nbsp;(</b><b>Yes/No)</b></span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Config Database</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">No</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Admin Content Database (Central Administration Site)</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">No</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">State Service Database</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">No</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Content Databases</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Yes</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Managed Metadata Service</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Yes</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Web Analytics&nbsp; Reporting and Staging Database</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Yes</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Secure Store Database</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Yes</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Search Service Application Databases </span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">(Databases: Crawl, Property, Search Administration)</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">No</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Project Server Database</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Yes</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">User profile Service&nbsp; Application Databases </span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">(Profile/ Syn/Social) </span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">No</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="411">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Business Data Connectivity database</span></span></p>
</td>
<td valign="top" width="220">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">No</span></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><b>Step by step configuration of DR. (Configuring the log shipping)</b><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b>&nbsp;</b></span></span></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="64">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step1.</span></span></p>
</td>
<td valign="top" width="1112">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Login to the SQL management Studio and right click on the content database -&gt; Properties -&gt;&nbsp; Transaction Log Shipping-&gt;</span></span></p>
<p><a href="https://msdn.microsoft.com/en-us/library/ms190640.aspx">https://msdn.microsoft.com/en-us/library/ms190640.aspx</a>&nbsp; (<span style="font-family: Calibri;" face="Calibri">use the following link for configuring the basic steps log shipping)</span><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></p>
</td>
</tr>
<tr>
<td valign="top" width="64">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 2</span></span></p>
</td>
<td valign="top" width="1112">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Database State:</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Under &lsquo;Restore Transactional Log&rsquo; &nbsp;<b>Select the Standby Mode</b> as below in settings of log shipping configuration.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/6237.dr1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/6237.dr1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/6237.dr1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/6237.dr1.jpg" width="458" height="410" /></a></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b>No Recovery:</b></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp; If you are selecting the &lsquo;No Recovery Mode&rsquo; the database will be in&nbsp; <b>Restoring mode</b> and it cannot be attached to the web application from Sharepoint.&nbsp; </span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/7317.dr2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/7317.dr2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/7317.dr2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/7317.dr2.jpg" width="342" height="57" /></a></span></span></p>
<p align="center"><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b>------------OR------------&nbsp;</b></span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><b>&nbsp;</b></span></span></p>
<p><strong><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Standby Mode:&nbsp;</span></span></strong></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">If you select the &lsquo;Standby Mode&rsquo;&nbsp; database can be attached with the web application and you can browse the site collection. But you cannot make any changes or upload files. Only few options will be&nbsp; available.&nbsp; Also you can run select queries from the SQL during the standby mode.&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/4237.dr3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/4237.dr3.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/4237.dr3.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/4237.dr3.jpg" width="349" height="32" /></a></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">SharePoint UI will also not show some operations like, Edit Page, Create Item etc.</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/1581.dr4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/1581.dr4.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/1581.dr4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/1581.dr4.png" width="468" height="141" /></a></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="64">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 4.</span></span></p>
</td>
<td valign="top" width="1112">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Create all the web application with the same name, url and database name as in production and attach the content database (if standby&nbsp; mode is selected).</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="64">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step5.</span></span></p>
</td>
<td valign="top" width="1112">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Create and configure the service applications which you are using in your production and which cannot be log shipped like User profile Service app, Search service and others.</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"></span></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small; text-decoration: underline;"><b>Steps to failover: </b></span></p>
<p>&nbsp;<span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Changes Need to be done when you failover from Production SharePoint 2010 to SharePoint 2010 DR Farm.</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="73">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Step 1.</span></span></p>
</td>
<td valign="top" width="1104">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Disable the log shipping for all the databases on which you configured log shipping.&nbsp; Uncheck the below option from Transaction Log Shipping.&nbsp;&nbsp; </span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Login to the SQL management studio -&gt; Select the database -&gt; Right click Properties-&gt; Transaction Log Shipping =&gt;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/6303.dr5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/6303.dr5.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/6303.dr5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/6303.dr5.png" width="494" height="52" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/1106.dr6.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/1106.dr6.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/1106.dr6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/1106.dr6.png" width="512" height="243" /></a></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp; </span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">And this will disable the job on the primary Server.</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="73">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 2</span></span></p>
</td>
<td valign="top" width="1104">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Copy and restore the latest T-log backups to make sure all is in sync on DR side by running the copy and restore jobs on DR server.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><i>&nbsp;Example: Last copy ran at 1:00 PM and SQL crashed at 1:10. This means that the transactions between 1:00 to 1:10 are not shipped to Log shipped databases.</i></span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="73">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 3.</span></span></p>
</td>
<td valign="top" width="1104">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Run the following SQL query on master&nbsp;database to bring the database available and online.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp; "</span><b>RESTORE DATABASE &lt;database_name&gt; WITH RECOVERY</b><span style="font-family: Calibri;" face="Calibri">"</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp; </span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">One the DB is in online mode, its Icon should look like below</span></span><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/6170.dr7.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/6170.dr7.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/6170.dr7.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/6170.dr7.jpg" width="291" height="31" /></a><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="73">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 4.&nbsp;&nbsp;</span></span></p>
</td>
<td valign="top" width="1104">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Detach and attach all the content database from sharepoint central administration. (in case if any new site collections /sub sites are created in the web application)&nbsp; Or Run the&nbsp; script to refresh the site&nbsp;&nbsp; map table in the config database.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Dismount-SPContentDatabase "&lt;ContentdBName&gt;"</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Mount-SPContentDatabase "MyDatabase" -DatabaseServer "MyServer" -WebApplication <a href="https://sitename/">https://sitename</a></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Repeat this for all content databases. </span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;Why? </span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">We know that out configuration database was not log shipped, so any new site collection that is created in Prod web application will not be added in DR Config Database automatically. When&nbsp; content database is detached and reattached, all its site collections are registered in Site Map table of Config DB.</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="73">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 5.</span></span></p>
</td>
<td valign="top" width="1104">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp; Install the WSP solutions which you have installed on production farm and make other manual changes as done in production sharepoint farm like AAM settings, IIS bindings, Web.config changes.</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="73">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 6.</span></span></p>
</td>
<td valign="top" width="1104">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp; Associate the service applications with web application and configure the remaining settings needed for the service applications.</span></span></p>
</td>
</tr>
<tr>
<td valign="top" width="73">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Step 7.&nbsp;&nbsp;&nbsp;&nbsp;</span></span></p>
</td>
<td valign="top" width="1104">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;Test the result on the DR SP farm and then change the DNS entry from the production farm to the new DR farm.</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"></span></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small; text-decoration: underline;"><strong><span size="3"><span style="font-family: Calibri;" face="Calibri">Some Common Queries:</span></span></strong></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><strong>Q1:</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is The performance of the sharepoint primary server will effect during the log shipping?<br /><strong>A1:&nbsp;</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yes, You might also face performance issue if the system takes to ship log consistently more then time that is required to create new logs. It is better to backup and copy many small transaction logs compared to large transaction logs.&nbsp;<br />&nbsp;<br /><strong>Q2:</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In the event of an unplanned failover, some data loss is possible ?<br /><strong>A2:</strong>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Yes, depending on the frequency of log shipping and the time of failure. It is possible to lose data from the last log shipping interval before a failure. <br />&nbsp;<br /><strong>Q3:</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Is log shipping method feasible with more than 10 number of databases? <br /><strong>A3:</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This is subjective to hardware, network throughput and resources available on servers. SQL Performance Counters can be used to find the optimized level for your environment.<br />&nbsp;<br /><strong>Q4:</strong>&nbsp;&nbsp;&nbsp;&nbsp; How can we verify what solutions custom/3rd party web parts are in the environment in new farm after DR ? <br /><strong>A4:</strong>&nbsp;&nbsp;&nbsp;&nbsp; stsadm -o enumsolutions will give you details on what all solutions are deployed in the farm.&nbsp;OR check CA solutions page.<br />&nbsp;<br /><strong>Q5:</strong>&nbsp;&nbsp;&nbsp; Can we crawl the content before the failover on the DR Farm?<br /><strong>A5:</strong>&nbsp;&nbsp;&nbsp;&nbsp; No we cannot crawl the content before the failover. It is recommended to crawl the content after the failover.<br />&nbsp;<br /><strong>Q6:</strong>&nbsp;&nbsp;&nbsp; Do we need to disable the timer jobs on the failover (secondary) farm?<br /><strong>A6:</strong>&nbsp;&nbsp;&nbsp; Yes, we should always disable the timer job on the failover on secondary farm.<br />&nbsp;<br /><strong>Q7:</strong>&nbsp;&nbsp;&nbsp;&nbsp;Do we need to plan for the SSL certificates on IIS websites on DR Server?<br /><strong>A7:</strong>&nbsp;&nbsp;&nbsp; Yes, if web apps are hosted on SSL then certs should be applied to DR farm IIS Sites respectively.</span></span></p>]]></content:encoded>
    </item>
    <item>
      <title>How to reduce the size of logging database OR How to purge the old data from Logging Database,</title>
      <link>https://docs.microsoft.com/archive/blogs/manhar/how-to-reduce-the-size-of-logging-database-or-how-to-purge-the-old-data-from-logging-database</link>
      <pubDate>Tue, 17 Apr 2012 14:22:00 GMT</pubDate>
      <dc:creator><![CDATA[Manhar Sharma]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/manhar/2012/04/17/how-to-reduce-the-size-of-logging-database-or-how-to-purge-the-old-data-from-logging-database/</guid>
      <description><![CDATA[****************************************************************************************************...]]></description>
      <content:encoded><![CDATA[<p>******************************************************************************************************************************</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">WSS logging database grows very fast and it cause the storage problem most of the time in sharepoint server 2010.</p>
<p>To reduce the size of the logging database or to purge the old data from the logging database we can these steps.&nbsp;</p>
<p>To find the Logging Database Name go to following path:-</p>
<p>Login to Central Administration -&gt; Monitoring -&gt;&nbsp;Configure Usage and health data collection-&gt;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/7774.clip_image002.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/7774.clip_5F00_image002.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/7774.clip_image002.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/7774.clip_5F00_image002.jpg" width="414" height="98" /></a></p>
<p>&nbsp;</p>
<p>The Logging database stores the following things:-</p>
<ul>
<li>
<p>ULS Logs from 14 Hive\LOGS</p>
</li>
<li>
<p>Raw Resource Usage Data</p>
</li>
</ul>
<p>&nbsp;This data is used by Web Analytics in Sharepoint. Two timer jobs Microsoft SharePoint Foundation Usage Data Import and Microsoft SharePoint Foundation Usage Data Processing are used for importing and processing the raw data in the web analytics database.</p>
<p>By Default the system retains 14 days of Usage data in this database. By following PowerShell command we can check and change the value of retention days of this database. Get-spusagedefinition and&nbsp;Set-SPUsageDefinition&nbsp;&nbsp;</p>
<p>Try&nbsp;&nbsp;Get-SPUsageDefinition</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/8510.clip_image003.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/8510.clip_5F00_image003.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/8510.clip_image003.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/8510.clip_5F00_image003.jpg" width="508" height="206" /></a></p>
<p>&nbsp;Now you need to find which table is taking most of the space inside the WSS logging Database.&nbsp;</p>
<p>&nbsp;</p>
<p>You Can check the same from the <strong>SQL Server</strong></p>
<p>Login to Sharepoint Management Studio -&gt; Select your logging Database (Right Click) -&gt; Reports- &gt; Standard Reports -&gt; Disk Usage by Top Tables.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/8463.clip_image005.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/8463.clip_5F00_image005.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/8463.clip_image005.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/8463.clip_5F00_image005.jpg" width="494" height="251" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;Say RequestUsage* is taking most of the space inside WSS Logging database so&nbsp; you can bring&nbsp;down the retention period of&nbsp; Page Request Event.</p>
<p>Or if you want you can bring down the retention period for all the Events for any number of days from 14 to 1.&nbsp;</p>
<p>Use the following command to do so.</p>
<p style="margin: 0in; color: #cbcbcb; font-family: Tahoma; font-size: 10pt;"><span style="background: #333333; font-weight: bold;">Set-SPUsageDefinition -Identity"Page Requests" -DaysRetained 3</span></p>
<p><span style="background: #333333; font-weight: bold;"></span>Run the same Power Shell command again to cross check "Get-SPUsageDefinition" and check the Retention period is changed or not.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/5228.Untitled%20picture.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/5228.Untitled-picture.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/5228.Untitled%20picture.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/5228.Untitled-picture.png" width="509" height="161" /></a></p>
<p><br />After that we need to run the two timer jobs to clean the old data 'Microsoft SharePoint Foundation Usage Data Import' and 'Microsoft SharePoint Foundation Usage Data Processing'.</p>
<p>Go to Sharepoint Central Administration -&gt; Monitoring -&gt;&nbsp;Configure Usage and health data collection-&gt; Log Collection Schedule.</p>
<p>And it will take you to the timer jobs.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/4137.Untitled%20picture1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/4137.Untitled-picture1.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/4137.Untitled%20picture1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/4137.Untitled-picture1.png" width="530" height="144" /></a></p>
<p><br />&nbsp;Now Click on both the Job Definitions one by one and hit 'Run Now' to run the timer jobs</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/5873.Untitled%20picture3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/5873.Untitled-picture3.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/37/5873.Untitled%20picture3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-37/5873.Untitled-picture3.png" width="530" height="122" /></a></p>
<p>&nbsp;</p>
<p>Once the timer jobs is run you can check and confirm database has released the space.</p>
<p>******************************************************************************************************************************</p>]]></content:encoded>
    </item>
  </channel>
</rss>