﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 High Availability  / Log Shipping Failover Test / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 02:22:30 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>Because you do "Tail log backup on ServerA with "NORECOVERY"".</description><pubDate>Mon, 22 Apr 2013 18:03:27 GMT</pubDate><dc:creator>pan123au</dc:creator></item><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>Last night while migrating a 2TB database we came across the same issue:Database 'DBname' cannot be opened. It is in the middle of a restore.Error: 927, Severity: 14, State: 2.A system process, SPID 46, with sa login and task as DBMIRROR was "connected" to the old database that is in restoring mode.  How does that happen when I put it into Single User and then did a TAIL backup of the log and put it into restoring mode?  Every two minutes in the error log SPIDS 14, 15, 16, 17 alternately keep trying to open the restoring database and generating that error.  The migrate strategy we used was database log shipping to the new disk and last night we brought the secondary online as primary.  This database also was mirroring to a partner server, I removed that at the very beginning.  These are the steps taken to migrate the database:--ensure most recent log shipped backup was restored--via GUI remove MIRRORING from the primary--put in SINGLE_USER mode--via GUI, change name of db from Primary to Primary_OLD--take TAIL of log backup, Primary_OLD goes into restoring mode--restore TAIL to Primary_NEW WITH RECOVERY--via GUI, rename Primary_NEW to Primary--put back into MULTI_USER modeSo it is now successfully working on the new disk, but we have the lingering error every two minutes as noted.  We have checked all the mirroring monitors/tables and even ran ALTER DB...PARTNER OFF etc and it all states there is no mirroring configured.This will be resolved when we decide to drop the Primary_OLD database...but it is a little bothersome seeing that connection and the open errors when they should not be happening, would be nice to know what is causing this.  Thanks.</description><pubDate>Sat, 20 Apr 2013 10:39:48 GMT</pubDate><dc:creator>louislamour2673</dc:creator></item><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>Literally all I have is a SQL Error Log full of:Database 'DBname' cannot be opened. It is in the middle of a restore.Error: 927, Severity: 14, State: 2.I see nothing when I run profiler, no stored procedure calls just that exception approximately every 2 minutes.  As I mentioned in my previous post I'm wondering if it is, indeed anything to do with log shipping.  As far as both servers were concerned, log shipping was correctly configured in one direction with SPs and reports showing expected results.  Having failed back I'm not now having this issue on the new (original) secondary despite following exactly the same process.</description><pubDate>Thu, 14 Feb 2013 16:31:21 GMT</pubDate><dc:creator>MissTippsInOz</dc:creator></item><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>[quote][b]MissTippsInOz (2/14/2013)[/b][hr]However I did, and still believe its necessary[/quote]The idea is to keep the 2 way configuration in place as the document states.From the error it sounds like an agent task is trying to access the new secondary database. Can you post more detail from the logs please.</description><pubDate>Thu, 14 Feb 2013 16:17:31 GMT</pubDate><dc:creator>Perry Whittle</dc:creator></item><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>You're absolutely right; it doesn't.  However I did, and still believe its necessary, and ran them again on failback and have no problems so, rightly or wrongly, it doesn't help in getting to the bottom of my issue.</description><pubDate>Thu, 14 Feb 2013 16:07:22 GMT</pubDate><dc:creator>MissTippsInOz</dc:creator></item><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>The link I posted does not tell you to run sp_delete_log_shipping_primary_secondary or sp_delete_log_shipping_primary_database for the role reversal!!</description><pubDate>Thu, 14 Feb 2013 15:51:45 GMT</pubDate><dc:creator>Perry Whittle</dc:creator></item><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>Just thought I'd add that I failed back this morning using exactly the same process and I'm not now seeing these errors occur on the secondary.  Suspect that the errors may have been unrelated to log shipping in the first place, but still not got to the bottom of it.</description><pubDate>Thu, 14 Feb 2013 15:38:39 GMT</pubDate><dc:creator>MissTippsInOz</dc:creator></item><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>Sorry I gave general process when I should have been specific. All steps in that article are covered. Databases all appear in the correct log shipping system tables and don't appear anywhere they shouldn't. As far as everything I know and can see goes, I am running with reverse log shipping and only reverse log shipping. And yet..every two minutes I get the error in the log.</description><pubDate>Thu, 14 Feb 2013 05:14:11 GMT</pubDate><dc:creator>MissTippsInOz</dc:creator></item><item><title>RE: Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>[quote][b]MissTippsInOz (2/13/2013)[/b][hr]HiI'm currently running some DR testing and have failed over a couple of databases to our DR site.  Generally the process was:Tail log backup on ServerA with NORECOVERYRESTORE with RECOVERY on ServerB[/quote]Correct up to and including this point. When failing over Log Shipping scenarios, consult the following documentation [url=http://msdn.microsoft.com/en-us/library/ms178117(v=sql.105).aspx][u][b]http://msdn.microsoft.com/en-us/library/ms178117(v=sql.105).aspx[/b][/u][/url]</description><pubDate>Thu, 14 Feb 2013 02:23:32 GMT</pubDate><dc:creator>Perry Whittle</dc:creator></item><item><title>Log Shipping Failover Test</title><link>http://www.sqlservercentral.com/Forums/Topic1419754-1549-1.aspx</link><description>HiI'm currently running some DR testing and have failed over a couple of databases to our DR site.  Generally the process was:Tail log backup on ServerA with NORECOVERYRESTORE with RECOVERY on ServerBRan sp_delete_log_shipping_primary_secondary and sp_delete_log_shipping_primary_database on ServerACreated reverse log shipping on ServerB to log ship back to ServerAAll looks good and functions.....BUTI've got a log full of 927 errors on ServerA from 'sa':  "Database 'MyDB' cannot be opened. It is in the middle of a restore."What is trying to access it?  Have I not successfully 'killed' log shipping on ServerA?I'm sure (hopeful) this is stupid simple and I'm just being brainless. ThanksClare</description><pubDate>Wed, 13 Feb 2013 15:11:44 GMT</pubDate><dc:creator>MissTippsInOz</dc:creator></item></channel></rss>